This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
{ | |
"Description": "Bring up an EC2 that runs apache HTTP server", | |
"AWSTemplateFormatVersion": "2010-09-09", | |
"Parameters": { | |
"InstanceType": { | |
"Description": "EC2 instance type", | |
"Type": "String", | |
"Default": "t2.nano" | |
}, | |
"InstanceAMI": { |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Source: laitos | |
Section: devel | |
Priority: optional | |
Maintainer: Houzuo (Howard) Guo <[email protected]> | |
Build-Depends: debhelper (>= 9), dh-golang, golang-go | |
Standards-Version: 3.9.8 | |
Homepage: https://github.com/HouzuoGuo/laitos | |
XS-Go-Import-Path: github.com/HouzuoGuo/laitos | |
Package: laitos |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/usr/bin/make -f | |
export DH_VERBOSE = 1 | |
export DH_GOPKG := github.com/HouzuoGuo/laitos | |
%: | |
dh $@ --buildsystem=golang --with=golang | |
override_dh_auto_install: | |
dh_auto_install -- --no-source |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
openssl req -x509 -sha512 -nodes -extensions v3_ca -newkey rsa:4096 -keyout ca-cert-and-key.pem -days 7320 -out ca-cert-and-key.pem |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# Reinstall SpaceVim along with useful bunch of tools that work well together with SpaceVim. | |
# This is for Ubuntu 20.04 | |
sudo apt install -y ctags miscfiles python3-dev python3-pip rsync shellcheck software-properties-common wbritish wbritish-huge ruby ruby-dev nodejs gcc g++ make universal-ctags python3-pygments ripgrep | |
sudo select-default-wordlist | |
sudo apt-get update | |
sudo apt-get install -y --reinstall neovim | |
sudo update-alternatives --install /usr/bin/vi vi /usr/bin/nvim 5 | |
sudo update-alternatives --install /usr/bin/vim vim /usr/bin/nvim 5 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
ansible | |
apache2-utils | |
autoconf | |
automake | |
ca-certificates-mozilla | |
caca-utils | |
cloc | |
conemu | |
cscope | |
ctags |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Intermediate proxy, the initial receipient of HTTP traffic: | |
coredump_dir /var/spool/squid | |
pid_filename /var/run/squid-http.pid | |
access_log /var/log/squid-http.log | |
cache_log /var/log/squid-http.log | |
via off | |
cache_peer 127.0.0.1 parent 13129 0 default no-query no-digest | |
never_direct allow all | |
http_access allow all |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
void setup() | |
{ | |
Serial.begin(1200); | |
Serial.setTimeout(1000); | |
Serial.println("Microcontroller has started"); | |
} | |
int seqNum = 0; | |
String lastRead = ""; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
debug_options ALL,2 | |
coredump_dir /var/spool/squid | |
pid_filename /var/run/squid-https.pid | |
access_log /var/log/squid/access.log | |
cache_log /var/log/squid/cache.log | |
# Avoid interfering with timeout behaviour of TCP client applications | |
# The timeout values are 10x their default | |
shutdown_lifetime 10 seconds |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
### Keybase proof | |
I hereby claim: | |
* I am HouzuoGuo on github. | |
* I am hguo (https://keybase.io/hguo) on keybase. | |
* I have a public key whose fingerprint is 60BD 93B6 F0C4 FCC7 1735 08D4 4132 7BD9 50FA B38C | |
To claim this, I am signing this object: |
OlderNewer