Skip to content

Instantly share code, notes, and snippets.

View fire1ce's full-sized avatar

Stas Yakobov fire1ce

View GitHub Profile
fire1ce / config
Created April 11, 2022 10:00
SSH Agent Config to Ignore Known Hosts: "Warning: the ECDSA host key for 'hostname.exmaple' differs from the key for the IP address
Host *
AddKeysToAgent yes
IdentityFile ~/.ssh/id_ed25519
StrictHostKeyChecking no
LogLevel ERROR
fire1ce / Bash stdout to file -
Last active November 4, 2023 06:40
Bash stdout to file - Logger

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 / Raspberry Pi 3 TOR Access Point
Last active November 4, 2023 06:39
Raspberry Pi 3 TOR Access Point Router


Follow the progress of this project here 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:
fire1ce / MacOS SMB Mount Speed
Last active March 17, 2018 18:04
Fix Slow SMB File Transfers on mac OS

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 / oh-my-zsh on openwrt or
Last active April 26, 2024 05:00
Install oh-my-zsh on openwrt/lede-project

Install oh-my-zsh on OpenWrt

Install Requirements Packages

opkg update && opkg install ca-certificates zsh curl git-http

Install oh-my-zsh

fire1ce / linkedin auto-inviter
Created April 25, 2017 06:15 — forked from maksii/linkedin auto-inviter
Script to automatically add connections from "People You May Know" page
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);