Skip to content

Instantly share code, notes, and snippets.

View aquigni's full-sized avatar
:octocat:

Glitch aquigni

:octocat:
View GitHub Profile
@aquigni
aquigni / TFcheck.sh
Created August 11, 2020 12:10
Check TestFlight app link for joining availability
if [ `curl -s https://testflight.apple.com/join/7lt2tesn | grep -q "tap the link on your iPhone or iPad after you install TestFlight."` ]; then
echo "OK";
else
echo "NOT OK";
fi
@aquigni
aquigni / ports
Created June 2, 2018 22:43
Useful ports
20 FTP
21 FTP
42 WINS [old]
# !!!
123 NTP
143 IMAP
445 AD
@aquigni
aquigni / dot_config.sh
Last active May 22, 2018 20:49
Linux Debian 4.16.5 Kernel Configuration
#
# Automatically generated file; DO NOT EDIT.
# Linux/x86 4.16.5 Kernel Configuration
#
CONFIG_64BIT=y
CONFIG_X86_64=y
CONFIG_X86=y
CONFIG_INSTRUCTION_DECODER=y
CONFIG_OUTPUT_FORMAT="elf64-x86-64"
CONFIG_ARCH_DEFCONFIG="arch/x86/configs/x86_64_defconfig"
@aquigni
aquigni / di-fm-premium-account-generator.sh
Last active June 8, 2018 07:58 — forked from jimdi/di-fm-premium-account-generator.sh
Generate di.fm premium account and playlist. Also supports radiotunes.com (ex sky.fm), jazzradio.com, rockradio.com, classicalradio.com
#!/bin/bash
#------------------------------------------------------------------------------#
#--- MAIN SCRIPT ---#
#------------------------------------------------------------------------------#
AGENT="Mozilla/5.0 (Macintosh; Intel Mac OS X 10_12_3) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/56.0.2924.87 Safari/537.36"
COOKIES="./cookies.txt"
DOMAIN=gmail.com
PLAYLISTDI="di.fm.m3u"
@aquigni
aquigni / MaruMagick.sh
Last active June 2, 2018 22:45
ImageMagick commands for Maru
### Check Homebrew
command -v brew >/dev/null 2>&1 || {
echo >&2 "Installing Homebrew:"
/usr/bin/ruby -e "$(curl -fsSL https://raw.githubusercontent.com/Homebrew/install/master/install)"
}
### Make thumbnails
mkdir thumbs
wdth=180 #Thumbnail width
hght=135 #Thumbnail width
@aquigni
aquigni / rclone_sync.sh
Last active September 19, 2023 12:31
Rclone syncing bash script
#!/bin/bash
##############################################################
### RCLONE SYNC SCRIPT
##############################################################
### crontab -e every 4 hours:
# 0 */4 * * * root /root/scrpts/rclone_sync.sh >/dev/null 2>&1
### Useful rclone commands:
# rclone config show
@aquigni
aquigni / configure_nginx.sh
Last active March 2, 2018 03:50
Compile Nginx with standard Debian package paths & more_headers module
./configure \
--prefix=/etc/nginx \
--sbin-path=/usr/sbin/nginx \
--modules-path=/usr/lib/nginx/modules \
--conf-path=/etc/nginx/nginx.conf \
--error-log-path=/var/log/nginx/error.log \
--http-log-path=/var/log/nginx/access.log \
--pid-path=/var/run/nginx.pid \
--lock-path=/var/run/nginx.lock \
--http-client-body-temp-path=/var/cache/nginx/client_temp \
@aquigni
aquigni / OneFileLinux.sh
Created February 24, 2018 05:54
OneFileLinux.efi installation script for macOS
#!/bin/sh
cd ~/Downloads/
### Checking if Homebrew is installed:
command -v brew >/dev/null 2>&1 || {
echo >&2 "Installing Homebrew:"
/usr/bin/ruby -e "$(curl -fsSL https://raw.githubusercontent.com/Homebrew/install/master/install)"
}
### Getting wget: