I hereby claim:
- I am colinmcintosh on github.
- I am colinmcintosh (https://keybase.io/colinmcintosh) on keybase.
- I have a public key whose fingerprint is 8677 7BE8 2F3B 4345 6B86 2837 B0BD 806E 5D45 F2FF
To claim this, I am signing this object:
def max_in_list(list_of_numbers): | |
x = list_of_numbers.pop() | |
for i in list_of_numbers: | |
if i > x: x = i | |
return x |
def second_largest(list_of_numbers): | |
return sorted(set(list_of_numbers))[-2] | |
def second_largest_two(list_of_numbers): | |
x = None | |
for i in list_of_numbers: | |
if x is None or i > x: | |
x, y = i, x | |
return y |
find / -name '*' -type f -print0 | xargs -0 ls -l | awk '{ total += $5; count += 1}; END { print (total/count)/1024/1024 " GB" }' |
I hereby claim:
To claim this, I am signing this object:
I hereby claim:
To claim this, I am signing this object:
worker_processes auto; | |
worker_rlimit_nofile 65535; | |
events { | |
multi_accept on; | |
worker_connections 65535; | |
} | |
http { | |
charset utf-8; |
adduser colin | |
usermod -aG sudo colin | |
sudo visudo | |
# %sudo ALL=(ALL:ALL) NOPASSWD: ALL | |
mkdir /home/colin/.ssh | |
cp ~/.ssh/authorized_keys /home/colin/.ssh/ | |
chown -R colin:colin /home/colin/.ssh | |
exit |
pkg install nginx | |
pkg update | |
pkg install vim py27-certbot py27-certbot-dns-cloudflare | |
mkdir ~/.secrets | |
vim ~/.secrets/cloudflare.ini | |
##### BEGIN INI FILE | |
# Cloudflare API credentials used by Certbot | |
dns_cloudflare_email = cloudflare-email@youremail.com |
sudo apt update | |
sudo apt install ax25-tools ax25-apps | |
sudo vim /etc/ax25/axports | |
# Add the following line (replace MYCALL with your callsign): | |
# thd72a MYCALL 9600 255 7 TH-D72A (MYCALL) | |
# Install the latest release of Pat from here: https://github.com/la5nta/pat/releases. E.g. | |
wget https://github.com/la5nta/pat/releases/download/v0.6.1/pat_0.6.1_linux_amd64.deb | |
sudo dpkg -i pat_0.6.1_linux_amd64.deb | |
sudo /usr/share/pat/ax25/install-systemd-ax25-unit.bash |
// Copyright 2020 Netflix Inc | |
// Author: Colin McIntosh (colin@netflix.com) | |
// Copyright 2015 Google Inc. | |
// | |
// Licensed under the Apache License, Version 2.0 (the "License"); | |
// you may not use this file except in compliance with the License. | |
// You may obtain a copy of the License at | |
// | |
// http://www.apache.org/licenses/LICENSE-2.0 |