Skip to content

Instantly share code, notes, and snippets.

View ericfourrier's full-sized avatar
🦉
Building neat tools to secure cloud and source code

Eric Fourrier ericfourrier

🦉
Building neat tools to secure cloud and source code
View GitHub Profile
conda clean -t # will remove the old tarballs
conda clean -p # will remove outdated packages
# conda clean -tp # if you want both
#!/usr/bin/env bash
#The MIT License (MIT)
#Copyright (c) 2014 Oak Ridge National Laboratory
#Permission is hereby granted, free of charge, to any person obtaining a copy
#of this software and associated documentation files (the "Software"), to deal
#in the Software without restriction, including without limitation the rights
#to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
source ~/.zshrc #reload your zsh config
vboxmanage --version # check virtualbox version
clang++ -std=c++11 -stdlib=libc++ -Wno-c++98-compat main.cpp

cache credential for 1 hour : git config --global credential.helper "cache --timeout=3600"

mydict[new_key] = mydict.pop(old_key)
def flatten_list(x):
return [y for l in x for y in flatten_list(l)] if isinstance(x,list) else [x]
arp -na | grep -i b8:27:eb
# unmount card on mac
diskutil unmount /dev/disk2s1
# copy data
sudo dd bs=4m if=2015-11-21-raspbian-jessie.img of=/dev/rdisk2 # 2 is the number of the volume, put your own path after if