Skip to content

Instantly share code, notes, and snippets.

$ curl -v https://www.example.com -k --proxy debugproxy.com:8080
* Trying 2a01:4f8:120:6104::2...
* TCP_NODELAY set
* connect to 2a01:4f8:120:6104::2 port 8080 failed: Connection refused
* Trying 178.63.44.71...
* TCP_NODELAY set
* Connected to debugproxy.com (178.63.44.71) port 8080 (#0)
* allocate connect buffer!
* Establish HTTP proxy tunnel to www.example.com:443
> CONNECT www.example.com:443 HTTP/1.1
#!/bin/bash
INCLUDES=${INCLUDES:="less,vim,sudo,openssh-server,acpid,dbus"}
ARCH=${ARCH:=amd64}
IMGSIZE=${IMGSIZE:=80G}
clean_debian() {
echo "Cleaning up.."
[ "$MNT_DIR" != "" ] && chroot $MNT_DIR umount /proc/ /sys/ /dev/ /boot/
sleep 1s
@tarnacious
tarnacious / all_rails_patches
Created September 13, 2018 20:18
How big are all the rails patches combined into a file and compressed?
# clone
git clone https://github.com/rails/rails
# change working dir
cd rails
# grab all the branches
for branch in `git branch -a | grep remotes | grep -v HEAD | grep -v master `; do
git branch --track ${branch#remotes/origin/} $branch
done
@tarnacious
tarnacious / DashRss.ascx
Created November 29, 2011 04:45
More good times with Umbraco
// Good times with Umbraco. This time with the broken link checker plug-in (http://our.umbraco.org/projects/developer-tools/broken-link-checker)
// To be fair I think these problems are mainly due to changes in Umbraco > 4.0.
//
// I wouldn't recommend using the plugin, but I had to put in this hacky fix it for a client who wanted to use it.
//
// Firstly it tries to download some javascript from here:
// http://localhost:50812/umbraco/~/umbraco/plugins/FergusonMoriyama/DashRss/dashrss.js
//
// When the location of the file is:
// http://localhost:50812/umbraco/plugins/FergusonMoriyama/DashRss/dashrss.js
@tarnacious
tarnacious / delete-jobs.py
Created April 30, 2018 15:02
Delete all the CI/CD logs for a gitlab project
# Delete all the CI/CD logs for a gitlab project
#
# Requires:
# python 3
#
# requests==2.18.4
# lxml==4.2.1
# cssselect==1.0.3
#

Keybase proof

I hereby claim:

  • I am tarnacious on github.
  • I am tarnacious (https://keybase.io/tarnacious) on keybase.
  • I have a public key ASA9h55GfuPJFf5iHgJutAMECbPW5r3ga84rlcL5Y108hgo

To claim this, I am signing this object:

@tarnacious
tarnacious / german
Created October 10, 2016 00:38
German learning
bieten etwas an - are offering, offer, bid
Gebot - offer, bid, precept
Aktien - shares, stocks, share
Beschreibung - description
Verlag - publishing house, publishing company, publisher
Zustimmung - consent, approval, agreement
Bericht - report
Meldungen - announcements, messages, reports
Mitteilung - message, note, announcement
Meinung - opinion, view
Wheel circumference = 2136mm (700x28C)
Peak confortable speed = 35km/h
Front sprocket teeth = 48
Brack sprocket teeth = 17
Wheel revolutions per hour = 35 * 1000 * 1000 / 2136
= 16385.7677903
Pedal revolutions per hour = 16385.7677903 / (48 / 17)
5803.29275906
This is ApacheBench, Version 2.3 <$Revision: 1706008 $>
Copyright 1996 Adam Twiss, Zeus Technology Ltd, http://www.zeustech.net/
Licensed to The Apache Software Foundation, http://www.apache.org/
Benchmarking 192.168.33.10 (be patient)
Server Software: nginx/1.6.2
Server Hostname: 192.168.33.10
Server Port: 9100
bootable/newinstaller/Android.mk | 4
bootable/newinstaller/boot/efi/boot/grub.cfg | 27
bootable/newinstaller/boot/isolinux/isolinux.cfg | 14
bootable/newinstaller/install/scripts/1-install | 36
device/consoleos/asus_t100ta/AndroidProducts.mk | 18
device/consoleos/asus_t100ta/BoardConfig.mk | 104
device/consoleos/asus_t100ta/asus_t100ta.mk | 34
device/consoleos/asus_t100ta/overlay/frameworks/base/core/res/res/values/config.xml