Skip to content

Instantly share code, notes, and snippets.

:octocat:
brewing

Stas Kosatuhin fire1ce

:octocat:
brewing
Block or report user

Report or block fire1ce

Hide content and notifications from this user.

Learn more about blocking users

Contact Support about this user’s behavior.

Learn more about reporting abuse

Report abuse
View GitHub Profile
@fire1ce
fire1ce / cloudflare-update-record.sh
Created Feb 26, 2019 — forked from benkulbertis/cloudflare-update-record.sh
Cloudflare API v4 Dynamic DNS Update in Bash
View cloudflare-update-record.sh
#!/bin/bash
# CHANGE THESE
auth_email="user@example.com"
auth_key="c2547eb745079dac9320b638f5e225cf483cc5cfdda41" # found in cloudflare account settings
zone_name="example.com"
record_name="www.example.com"
# MAYBE CHANGE THESE
ip=$(curl -s http://ipv4.icanhazip.com)
@fire1ce
fire1ce / brewup
Last active Nov 27, 2018
BrewUP - Upgrades Brew & Casks Packages, macOS AppStore Apps
View brewup
#!/bin/bash
DATE=`date '+%Y%m%d.%H%M'`
# checks if mas, terminal-notifier are installed, if not will promt to install
if [ -z $(which mas) ];
then
brew install mas
fi
@fire1ce
fire1ce / Bash stdout to file - Logger.md
Last active Apr 8, 2018
Bash stdout to file - Logger
View Bash stdout to file - Logger.md

Add the code below to .sh file.

# Optional:
# exec 1<&- # Close STDOUT file descriptor
# exec 2<&- # Close STDERR FD

parent_path=$( cd "$(dirname "${BASH_SOURCE[0]}")" ; pwd -P ) 
LOG_FILE=$parent_path'/error.log' #log file name
@fire1ce
fire1ce / Raspberry Pi 3 TOR Access Point Router.md
Last active Jul 15, 2019
Raspberry Pi 3 TOR Access Point Router
View Raspberry Pi 3 TOR Access Point Router.md

THIS GIST WON'T BE UPDATED ANY MORE (24/10/18)

Follow the progress of this project here 3os.org Raspberry Pi 3 TOR Access Point Router Project

Network: Router RJ45 <--> Ethernet Port on Raspberry <--> TOR <--> Raspberry WIFI AC <--> WIFI CLIENT

# -- Download Rasbian Strech Lite from: https://www.raspberrypi.org/downloads/raspbian/
@fire1ce
fire1ce / MacOS SMB Mount Speed fix.md
Last active Mar 17, 2018
Fix Slow SMB File Transfers on mac OS
View MacOS SMB Mount Speed fix.md

Mount the SMB share. Run the command

smbutil statshares -a

look for "SIGNING_ON TRUE", if "TRUE" run this command:

printf "[default]\nsigning_required=no\n" | sudo tee /etc/nsmb.conf >/dev/null

remount the smb share. run this command again:

@fire1ce
fire1ce / oh-my-zsh on openwrt or lede-project.md
Last active Jun 2, 2019
Install oh-my-zsh on openwrt/lede-project
View oh-my-zsh on openwrt or lede-project.md
opkg update && opkg install ca-certificates zsh curl git-http
sh -c "$(curl -fsSL https://raw.githubusercontent.com/robbyrussell/oh-my-zsh/master/tools/install.sh)" 
sed -i -- 's:/bin/ash:/usr/bin/zsh:g' /etc/passwd


# -- reboot, all done. 
@fire1ce
fire1ce / linkedin auto-inviter
Created Apr 25, 2017 — forked from maksii/linkedin auto-inviter
Script to automatically add connections from "People You May Know" page
View linkedin auto-inviter
var inviter = {} || inviter;
inviter.userList = [];
inviter.className = 'mn-person-card__person-btn-ext button-secondary-medium';
inviter.refresh = function () {
window.scrollTo(0, document.body.scrollHeight);
window.scrollTo(document.body.scrollHeight, 0);
window.scrollTo(0, document.body.scrollHeight);
};
You can’t perform that action at this time.