Skip to content

Instantly share code, notes, and snippets.

View draperjames's full-sized avatar

James Draper draperjames

View GitHub Profile
@draperjames
draperjames / .gitconfig
Last active March 20, 2018 20:09
my gitconfig alias
[alias]
ad = add -A
cm = commit
co = checkout
st = status
br = branch
lg = !git --no-pager log --pretty --oneline -n 10
pu = push
pl = pull
hist = log --pretty=format:\"%h %ad | %s%d [%an]\" --graph --date=short
@draperjames
draperjames / gitignore_jupyter_nb.cmd
Created February 28, 2018 16:15
Create a Jupyter Notebook .gitignore into your repo from windows cmd.
powershell iwr -outf .gitignore https://raw.githubusercontent.com/github/gitignore/master/Python.gitignore
echo #Jupyter notebook checkpoint files. >> .gitignore
echo .ipynb_checkpoints/* >> .gitignore
@draperjames
draperjames / firefox_file_explorer.cmd
Created February 28, 2018 15:21
Firefox file explorer access from the command line.
set path=%path%;%programfiles%\Mozilla Firefox
firefox %userprofile%
@draperjames
draperjames / RemoveAppsPostUpdateTo1709.ps1
Created February 25, 2018 00:42
RemoveAppsPostUpdateTo1709.ps1
##############################################################################################
# Remove unwanted appes that are installed after the upgrade of Windows 10 from 1703 to 1709 #
# Run using SCCM task sequence after the system has been upgraded #
# Apps and Features white listed will not be removed #
##############################################################################################
# LS 2017 #
##############################################################################################
### White list of appx packages to keep installed ###
$WhiteListedApps = @(
@draperjames
draperjames / DisableWindowsConsumerFeatures.reg
Created February 25, 2018 00:39
DisableWindowsConsumerFeatures.reg
Windows Registry Editor Version 5.00
[HKEY_LOCAL_MACHINE\SOFTWARE\Policies\Microsoft\Windows\CloudContent]
"DisableWindowsConsumerFeatures"=dword:00000001
@draperjames
draperjames / custom.css
Created January 16, 2018 03:59
jupyter notebook one dark theme
@-moz-document url-prefix("http://localhost:8888/")
{
:root
{
--main-font-family: Consolas, monaco, monospace;
--main-bg-color: #282C34;
--atom-one-dark-cyan: #56B6C2;
--atom-one-dark-blue: #61AFEF;
--atom-one-dark-bg-1: #121417;
@draperjames
draperjames / git_recipes.md
Created October 4, 2017 15:02
Git Recipes

Git add and untrack deleted files.

git -A

Pull and delete untracked files.

git pull && git clean -fd
@draperjames
draperjames / scrape_the_docs.ipynb
Created September 25, 2017 17:19
Scrape the docs - How to convert the Python Standard Library Docs into a Jupyter notebook file
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
@draperjames
draperjames / ProgrammaticNotebook.ipynb
Created September 20, 2017 20:46 — forked from fperez/ProgrammaticNotebook.ipynb
Creating an IPython Notebook programatically
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
@draperjames
draperjames / .gitignore
Created August 30, 2017 18:17
Standard Python .gitignore
# Byte-compiled / optimized / DLL files
__pycache__/
*.py[cod]
*$py.class
# C extensions
*.so
# Distribution / packaging
.Python