If you want to use the latest available version of Squid, you can Build a Squid anonymous proxy from source code
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
Object.defineProperty(Number.prototype, 'fileSize', { | |
value: function humanFileSize(si = false) { | |
const divider = si ? 1e3 : 1024; | |
const i = Math.floor(Math.log(this) / Math.log(divider)); | |
const fileSize = | |
(this / Math.pow(divider, i)).toFixed(2) + | |
' ' + ['', 'k', 'M', 'G', 'T', 'P', 'E', 'Z', 'Y'][i] + | |
(si ? 'i' : ''); | |
return fileSize.toString(); | |
}, |
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 e7d on github. | |
* I am e7d (https://keybase.io/e7d) on keybase. | |
* I have a public key whose fingerprint is 6324 5E8E 75A6 2FA4 17C2 81D3 F320 BE00 7C0B 8881 | |
To claim this, I am signing this object: |
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
#!/bin/bash | |
# read input | |
domain=$1 | |
if [ -z $domain ]; then | |
read -p "domain: " domain | |
fi | |
rsa=$2 | |
if [ -z $rsa ]; then | |
rsa=2048 # 2048 bits by default |
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
# Tail with proper line breaks in log files | |
function tail_linebreak() { | |
tail $@ | sed "s/\\\n/\\n/g" | |
} | |
alias tailn=tail_linebreak |
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
/** | |
* @author Michaël "e7d" Ferrand | |
* @description custom style for Visual Studio Code | |
* @see https://gist.githubusercontent.com/e7d/34cf097cd1fc3a7bbb7300b8fcd70d1c | |
*/ | |
/***** RESOURCES *****/ | |
@font-face { | |
font-family: 'Font Awesome'; |
Ensure necessary dependencies are installed:
sudo apt-get update
sudo apt-get install cifs-utils
Add post-up /etc/network/if-up.d/cifs-mount
to your interface (here eth0
) in /etc/network/interfaces
file:
# This file describes the network interfaces available on your system
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
ssh-rsa AAAAB3NzaC1yc2EAAAABJQAABAEAvIqr0ppZfI1SO5+iVrCHv7nF9bz2vaOkkZC7pOZL64aYEaf/xcfP5WLupC7P/aazIIpzfspWdwVWlel6VBkpVqad69seUI6t8aqklQBMHGX7lCSIukhRi+Uo9yARoDxvGf4cgb1/evVv1U6V0GOb6i0gO1gti1bYJNPB0nkOVdtq1u9317xKmMVOqFriXhHJXlcWbZj53vxZLJ2YWEfS/k7sCpWolRzY2D1fzo/VoyIQvEFOnsSjTXtEwvi80DigTX/cx9HaYmlJmHklrHq4e93y5eWRULRg4BgwnokQwwODRVmkOJ1HSNsaaUrTPYLG/LimmgwNDNHFzxlDePGatfdpTbNzm+4Rby9c6gMu+ijUQMvOY7RLFC4tYcZ8E3xe21c82e5QWud0jkIcYRLhFumArUFk9Zp2ohBXxBFmr3bYpB3gOXYLpXIdwgid/txZk1aiZuFGDZDdE9kClpGIETTVLgV7oXjfP3Iknmt9Q5rZs6/jRINppw/Vo/lj9PiEUis/iaXzEQnoukGPMAXphc17/JR6I9SInPi0DszAlj4tzx1VtW2tYnahRYSSmINY+z3eCP2BHyjTzkeeuLiDQJQe1FhPRNxM4kqT8tvIGkfIMnAV7hj2T/kbbfXGnsmUAJNfXvIJe2ibjtx2ks9Y59TDy96QPWs60ZPj6cJ6nKuQVejZ/2x4lywWZ/KKhSLeZ9kHqi8wdz/MyXsm6cjvp7A0KoXmfPmtUSM+H5Sg1aFLdMCG9vbWuqXiPNr96DQCeGhHIba63aQ/WL6gok8lDhsh9UB6QRyflwU89XC6IjeFDpv7hOm/lrOJFmPRIw0mBBiDIt8rAEreaUQwz/m2ivMEI9XEZvuWKOC9xCdHK2oOpFA+jqeavAAdR9otrF/3HiMetZZnpghDJDFFEBJLz0FReqdPefkOT3PfnlN3eD9trBvX3RrONBdGA6V4YXIwWCDhnZuAJ9f8oHWAavdCk07YiqAN |
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
#!/bin/sh | |
maxBlockSize=1073741824 # 1 GB | |
maxBlockCount=1024 | |
testSize=1073741824 # 1 GB | |
testDir=$1 | |
if [ -z "$1" ]; then | |
testDir="/tmp" | |
fi | |
testFile="${testDir}/dd.dat" |
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
#!/bin/sh | |
# Ensure dpkg availability | |
if ! command -v dpkg &> /dev/null; then | |
sudo pacman -Syy dpkg | |
fi | |
# Download and update DBeaver with latest deb file | |
TMP_DIR="$(mktemp -d)" | |
wget -qO $TMP_DIR/dbeaver-ce_latest_amd64.deb https://dbeaver.io/files/dbeaver-ce_latest_amd64.deb |