Skip to content

Instantly share code, notes, and snippets.

View kpfromer's full-sized avatar
🏠
Working from home

Kyle Pfromer kpfromer

🏠
Working from home
View GitHub Profile
source /usr/share/zsh/scripts/zplug/init.zsh
alias ls='lsd'
export EDITOR=vim
# load the good parts from oh-my-zsh
zplug "lib/completion", from:oh-my-zsh
zplug "lib/git", from:oh-my-zsh
zplug "lib/history", from:oh-my-zsh
zplug "lib/key-bindings", from:oh-my-zsh

Zip excluding specific directories

Exclude .git file and node_modules directory

$ zip -r9 [target_file] [source_file] -x *.git* node_modules/\*

Exclude .git file and files in node_modules directory, but keep node_modules directory

$ zip -r9 [target_file] [source_file] -x *.git* node_modules/**\*
@kpfromer
kpfromer / rPi3-ap-setup.sh
Created September 3, 2018 16:46 — forked from Lewiscowles1986/rPi3-ap-setup.sh
Raspberry Pi 3 access-point-setup
#!/bin/bash
#
# This version uses September 2017 august stretch image, please use this image
#
if [ "$EUID" -ne 0 ]
then echo "Must be root"
exit
fi
@kpfromer
kpfromer / calender.py
Last active August 29, 2015 14:27
School Calendar Program
# coding: utf-8
import ui, datetime, os, operator, notification, time
def createnotification(message, month, day, hour, minute):
shortt = str(datetime.datetime.now()).split()[1].split(':')
ct = (int(str(datetime.datetime.now().timetuple().tm_yday))*24*60*60) + (int(shortt[0])*60*60) + (int(shortt[1])*60) + float(shortt[2])
dt = (datetime.datetime(year=int(str(datetime.datetime.now().year)),month=month,day=day).timetuple().tm_yday*24*60*60)+hour*60*60+minute*60
print(dt-ct)
notification.schedule(message,dt-ct,'Clock_2')