Skip to content

Instantly share code, notes, and snippets.

Project Title

One Paragraph of project description goes here, this can be pulled from the GTM/Taglines etc

Getting Started

These instructions will get you a copy of the project up and running on your local machine for development and testing purposes. See deployment for notes on how to deploy the project on a live system.

Prerequisites

@chpwssn
chpwssn / journals.txt
Created August 8, 2019 03:43
Linux Journal Download
http://download.linuxjournal.com/pdf/get-doc.php?code=a22a831b5d4fe645dd9a629a5820c524&tcode=pdf-301-
http://download.linuxjournal.com/pdf/get-doc.php?code=2c230d54e20e7cb595c660da48be7622&tcode=epub-301-
http://download.linuxjournal.com/pdf/get-doc.php?code=35908ea3af093a50519e64b11c0f3103&tcode=mobi-301-
http://download.linuxjournal.com/pdf/get-doc.php?code=b82d90348a189bef5b1770e69577487e&tcode=pdf-300-
http://download.linuxjournal.com/pdf/get-doc.php?code=ce1807ada91d3c55f62b99b8b73877e3&tcode=epub-300-
http://download.linuxjournal.com/pdf/get-doc.php?code=f44a8ee8a93f0e64808ce8d138db3f3e&tcode=mobi-300-
http://download.linuxjournal.com/pdf/get-doc.php?code=af133cd32ac67ccd163f1fc6cf95b772&tcode=pdf-299-
http://download.linuxjournal.com/pdf/get-doc.php?code=8cb231b5c350c2585bcf4a53fbbf1f87&tcode=epub-299-
http://download.linuxjournal.com/pdf/get-doc.php?code=8f171b9ae9bda98c87555f059a7f5a3a&tcode=mobi-299-
http://download.linuxjournal.com/pdf/get-doc.php?code=00a26238351cd1dbdc827c3db74168a2&tcode=pdf-298
@chpwssn
chpwssn / debian.sh
Created June 18, 2019 03:31
SACK mitigation
# Disable SACK
sudo sysctl -w net.ipv4.tcp_sack=0
# Drop connections with an MSS less than 500
sudo iptables -A INPUT -p tcp -m tcpmss --mss 1:500 -j DROP
# Validate, should return: net.ipv4.tcp_mtu_probing = 0
sysctl net.ipv4.tcp_mtu_probing
@chpwssn
chpwssn / howto.md
Last active February 17, 2020 23:07
Humble Book Bundle Download

Open the humblebook bundle download page and get the list of download URLs via the inspector's console with

Array.from(document.getElementsByClassName("a")).map(element => element.getAttribute('href')).filter(value => value && value.indexOf('dl.humble') != -1).join('\n')

Touch a files.txt and fill it with the contents from the oneliner above. Then wget the files with wget -i files.txt

Rename the PDF, epub, and mobi files with

for i in *.epub?*; do mv $i ${i/\?*/}; done

for i in .pdf?; do mv $i ${i/?*/}; done

### Keybase proof
I hereby claim:
* I am chpwssn on github.
* I am chipw (https://keybase.io/chipw) on keybase.
* I have a public key whose fingerprint is A0BA 8F9C 9879 7E29 AC87 356B CA4F 971B 5F6C AAE1
To claim this, I am signing this object:
@chpwssn
chpwssn / nohome2.py
Last active October 28, 2015 16:29 — forked from vitzli/nohome2.py
nohome2.py: Reads from user3.txt because I cannot neither parse sys.args nor use argparse module >.<
#!/usr/bin/python3.4
# -*- coding: UTF-8 -*-
import urllib.parse
# import os.path
import pathlib
import re
import sys
from optparse import OptionParser