Are you interested in bypassing the complexities of Network Address Translation (NAT) and deploying containers without the need for IP address translation? The solution lies in acquiring ample public IP addresses, although the high cost of each IPv4 address makes it impractical to assign one to every container. Conversely, IPv6 offers an abundance of addresses,… Continue reading AWS and IPv6 only solution
Install Docker on Amazon Linux old AMIs
UPDATE (March 2020, thanks @ic): I don’t know the exact AMI version but yum install docker now works on the latest Amazon Linux 2. The instructions below may still be relevant depending on the vintage AMI you are using. Amazon changed the install in Linux 2. One no-longer using ‘yum’ See: https://aws.amazon.com/amazon-linux-2/release-notes/ Docker CE Install sudo amazon-linux-extras install… Continue reading Install Docker on Amazon Linux old AMIs
Update npm with nvm for windows
Rename npm.cmd to npm1.cmd and then deleted other npm files: npm, npx.cmd, npx. Then I ran npm1 install -g npm Pay attention, v8.40+ of npm not working with windows
EC2 Mac
# # On your laptop, connect to the Mac instance with SSH (similar to Linux instances) # ssh -i ec2-user@ # # On the Mac # # Set a password for ec2-user sudo passwd ec2-user # Enable VNC Server (thanks [email protected] for the feedback and tests) sudo /System/Library/CoreServices/RemoteManagement/ARDAgent.app/Contents/Resources/kickstart \ -activate -configure -access -on \ -configure… Continue reading EC2 Mac
Linux check occupied space in folder
hidden files sudo du -sch /home/ec2-user/.[!.]* |sort -h all files except hidden sudo du -sch /home/ec2-user/* |sort -h
View all npm global packages installed
npm list -g –depth 0
How to add your repo branch to npm proj
npm i –save github:frank10gm/react-native-material-textfield#bugfix/proptypes-deprecation
Nginx configuration
nginx.conf user francesco staff; worker_processes 1; events { worker_connections 1024; } http { include mime.types; default_type application/octet-stream; log_format main ‘$remote_addr – $remote_user [$time_local] “$request” ‘ ‘$status $body_bytes_sent “$http_referer” ‘ ‘”$http_user_agent” “$http_x_forwarded_for”‘; access_log logs/access.log main; sendfile on; #tcp_nopush on; #keepalive_timeout 0; keepalive_timeout 65; #gzip on; include /usr/local/etc/nginx/sites-enabled/*.conf; } [windows] nginx.conf #user nobody; worker_processes 1; error_log logs/error.log;… Continue reading Nginx configuration
CRC16 in big endian order
// CRC16 in big endian order const crcArr = new Uint8Array(2); crcArr[0] = crcByte1; crcArr[1] = crcByte2; const buffer = crcArr.buffer; const datav = new DataView(buffer); const uint16 = datav.getUint16(0, false); // big endian byteArr[index++] = uint16 & 0xff; byteArr[index++] = uint16 >> 8;
Android local.properties for Windows
Path for windows: sdk.dir=C\:\\android-sdk