duplicates = multiple editions
A Classical Introduction to Modern Number Theory,Kenneth IrelandMichael Rosen
A Classical Introduction to Modern Number Theory,Kenneth IrelandMichael Rosen
| DELIMITER $$ | |
| CREATE FUNCTION `haversine` (lat1 DECIMAL(8,6), lng1 DECIMAL(8,6), lat2 DECIMAL(8,6), lng2 DECIMAL(8,6)) RETURNS DECIMAL(8,6) | |
| BEGIN | |
| DECLARE R INT; | |
| DECLARE dLat DECIMAL(30,15); | |
| DECLARE dLng DECIMAL(30,15); | |
| DECLARE a1 DECIMAL(30,15); | |
| DECLARE a2 DECIMAL(30,15); | |
| DECLARE a DECIMAL(30,15); | |
| DECLARE c DECIMAL(30,15); |
| command: ['/bin/bash', '-c', 'trap : TERM INT; sleep infinity & wait'] |
| # ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ | |
| # | |
| # Downloads all of your alexa audio files to `output_dir` with the filenames | |
| # flattened (vs storing as sub-directories as implied by the file name). | |
| # | |
| # For example, the following id: | |
| # - A3S5CH1HU6KAYF:1.0/2019/01/18/17/G090LF1174270LM2/39:31::TNIH_2V.6c04473c-3160-4012-9719-63ca63396288ZXK | |
| # Will be saved to: | |
| # - ${output_dir}/A3S5CH1HU6KAYF_1_0_2019_01_18_17_G090LF1174270LM2_39_31__TNIH_2V_6c04473c-3160-4012-9719-63ca63396288ZXK.wav | |
| # |
| # Example of using etcdctl w/TLS | |
| kubectl exec -it -n kube-system $(kubectl get pods -n kube-system | grep etcd-manager-main | awk '{print $1}') bash | |
| CLUSTER=my-cluster.k8s.local | |
| cd /opt/etcd-v3.2.18-linux-amd64 | |
| ETCDCTL_API=3 ./etcdctl \ | |
| --key /rootfs/etc/kubernetes/pki/kube-apiserver/etcd-client.key \ | |
| --cert /rootfs/etc/kubernetes/pki/kube-apiserver/etcd-client.crt \ |
| sudo SKIP_PACKAGE_UPDATE=1 /var/cache/kubernetes-install/nodeup --conf=/var/cache/kubernetes-install/kube_env.yaml --v=10 |
| # Show stats | |
| sudo du -d1 -h /var/lib/docker | sort -h | |
| # Cleanup images | |
| sudo docker rmi $(sudo docker images --filter "dangling=true" -q --no-trunc) | |
| # Cleanup volumes | |
| sudo docker ps -a | awk 'NR>1 {print $1}' | xargs sudo docker rm | |
| sudo docker volume rm $(sudo docker volume ls -qf dangling=true) |
| # https://docs.aws.amazon.com/AWSEC2/latest/UserGuide/mon-scripts.html | |
| #.ebextensions/01-memorymon.config | |
| packages: | |
| yum: | |
| perl-Switch: [] | |
| perl-DateTime: [] | |
| perl-Sys-Syslog: [] | |
| perl-LWP-Protocol-https: [] | |
| perl-Digest-SHA.x86_64: [] |
| #!/bin/bash | |
| ### | |
| ### my-script — does one thing well | |
| ### | |
| ### Usage: | |
| ### my-script <input> <output> | |
| ### | |
| ### Options: | |
| ### <input> Input file to read. | |
| ### <output> Output file to write. Use '-' for stdout. |