Skip to content

Instantly share code, notes, and snippets.

View f4bio's full-sized avatar

Fabio Tea f4bio

View GitHub Profile

MacOS

Download from here:

http://d.pr/f/QE3d

MD5: 59bab8f71f8c096cd3f72cd73851515d

Rename it to:

@f4bio
f4bio / ferengi-lighttpd.txt
Last active August 29, 2015 14:01
ferengi-lighttpd.txt
# https://github.com/ft11/scripts/blob/master/lighttpd/README.md
$HTTP["remoteip"] == "192.133.125.0/24" {
server.kbytes-per-second = 14
}
$HTTP["remoteip"] == "165.135.0.0/16" {
server.kbytes-per-second = 14
}
$HTTP["remoteip"] == "192.104.54.0/24" {
server.kbytes-per-second = 14
@f4bio
f4bio / gist:db8dd8097591714de57f
Created February 17, 2016 22:14
win10 usb stick
* `$ sudo dd if=/dev/zero of=/dev/sdc bs=446 count=1`
* clear the MBR: dd if=/dev/zero of=/dev/device bs=446 count=1
* run fdisk /dev/device
* remove all partitions and create 1 primary partition, make it bootable then save the changes
* run mkfs.ntfs /dev/device1 (partition 1)
* copy the entire contents of the windows install iso on to the partition you created
thanks [Raymond](http://serverfault.com/a/126857)
@f4bio
f4bio / gist:9fb53f84c11ec56f0f764c4eff6a580a
Last active September 1, 2016 09:52
Windows 10 x64 node-gyp/bcypt
#!/bin/bash
echo "better use: https://github.com/f4bio/linux-rescuemode.git"
#mount /dev/sda3 /mnt/custom
#mount --bind /dev /mnt/custom/dev
#mount --bind /proc /mnt/custom/proc
#mount --bind /sys /mnt/custom/sys
@f4bio
f4bio / RPi-aria2-with-webui.sh
Last active August 9, 2018 12:37 — forked from akaxxi/RPi-aria2-with-webui.sh
Install Aria2 and webui on Raspberry Pi with one simple script.
#!/bin/sh
DOWNLOAD_DIR="${HOME}/MiniDLNA"
CONFIG_DIR="${HOME}/.aria2"
RPC_TOKEN="changeIt"
RPC_PORT="6800"
change_apt_source(){
if [ -f /etc/apt/sources.list ]; then
sudo cp /etc/apt/sources.list /etc/apt/sources.list.bak
@f4bio
f4bio / keybase.md
Last active February 11, 2019 13:57
keybase.md

Keybase proof

I hereby claim:

  • I am f4bio on github.
  • I am f4bio (https://keybase.io/f4bio) on keybase.
  • I have a public key whose fingerprint is 6E18 EF36 05B4 C52B 1245 37B5 E864 FE9E C0B7 8300

To claim this, I am signing this object:

Keybase proof

I hereby claim:

  • I am f4bio on github.
  • I am f4bio (https://keybase.io/f4bio) on keybase.
  • I have a public key ASCc3F_Ih1DnPDrKfRtAm6KBDyfFE5n4Ff45F40C-_JgXwo

To claim this, I am signing this object:

BEGIN MESSAGE.
gcsgXr77sf3pt8z yEtwcVFPnPetS5I VwUW1oK0vfzjSJd FAT5f0vdgFhdrEz
qRPi67EQtgcbor6 W4E15UprMsHTCKq 6Xr2MZHgg6ei33r KqwKzuC8bSm61aF
q3mCtH4seCbymoE 8BlMNOvV8WwhRAI VP6mWBvsvfVZ1Gs JnIKJBUSytZ4ExC
2z9z1nM1jZ5oVQl ygibBxOH7PBtrK2 BJpHx.
END MESSAGE.
@f4bio
f4bio / gist:380d696f6a560020ea96f4a7ba071c97
Created August 29, 2022 12:30
php-build install fedora deps
sudo dnf install \
plocate \
autoconf \
bison \
re2c \
libxml2-devel \
sqlite-devel \
libcurl-devel \
gd-devel \
gcc \