copy vcard_splitter.sh chmod +x vcard_splitter.sh ./vcard_splitter.sh yourFile.vcf insert the number of part you want and tada
This file contains hidden or 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
# My pretty prompt: | |
# - Truncates the first few dirs in long paths | |
# - red/green prompt based on return value of previous command | |
# - inserts git branch name if in a repo | |
# Developed primarily for debian/ubunu systems | |
# First, some stuff from the Ubunutu .bashrc | |
# set variable identifying the chroot you work in (used in the prompt below) | |
if [ -z "$debian_chroot" ] && [ -r /etc/debian_chroot ]; then |
[source]
This manual page is for Mac OS X version 10.9
If you are running a different version of Mac OS X, view the documentation locally:
In Terminal, using the man(1) command
Reading manual pages
This file contains hidden or 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
// install entware | |
installentware // for coreelec | |
wget -O - http://bin.entware.net/armv7sf-k3.2/installer/generic.sh | sh // for libreelec rasbperry 3 | |
// update && install zerotier | |
opkg update | |
opkg install zerotier | |
// start the daemon |
This file contains hidden or 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
# this located in /storage/.config/autostart.sh on a CoreELEC box, run chmod +x to make it executable | |
# use nohup to run the script in the backgroud | |
# nohup /storage/freemyip/updateDynDNS.sh & | |
# use this to run once off tasks | |
( | |
# pause few seconds to wait for network & time services to start | |
sleep 5 | |
DT=$(date +"%m-%d-%Y, %r") | |
echo "Box rebooted on $DT, running tasks in autostart.sh" >> /storage/freemyip/DynDNSUpdate.log |
This file contains hidden or 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
# ~/.screenrc | |
# | |
# https://unix.stackexchange.com/questions/700451/linux-gnu-screen-remap-ctrl-a-default-command-key-to-alt-a-in-one-go | |
escape ^Xa | |
# | |
# https://unix.stackexchange.com/questions/40242/scroll-inside-screen-or-pause-output | |
# Enable mouse scrolling and scroll bar history scrolling | |
termcapinfo xterm* ti@:te@ |
This file contains hidden or 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
// List all remotely tracked branches that do not exist in the remote repo | |
git remote prune origin --dry-run | |
// Prune all remotely tracked branches that do not exist in the remote repo | |
git remote prune origin | |
// List all local branches that were merged into master, explicitly exclude master from that list | |
git branch --merged master | grep -v 'master' | |
/* |
This file contains hidden or 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
= (ZIPFile) => | |
// expects full path to the ZIP file, only extracts the first data file after getting its size from the central directory | |
// https://en.wikipedia.org/wiki/Zip_(file_format)#Structure | |
let | |
//read the entire ZIP file into memory - we'll use it often so this is worth it | |
Source = Binary.Buffer(File.Contents(ZIPFile)), | |
// get the full size of the ZIP file | |
Size = Binary.Length(Source), | |
//Find the start of the central directory at the sixth to last byte |
ip addr sh zt0 | grep 'inet'
ip a
ip addr sh zthnhjmvln | grep 'inet'
sudo nems-quickfix
sudo sysctl net.ipv4.ip_forward
sudo nano /etc/sysctl.conf
sudo sysctl -p
sudo sysctl net.ipv4.ip_forward
ip link show
NewerOlder