Skip to content

Instantly share code, notes, and snippets.

View swapi's full-sized avatar
🏊‍♂️
Swimming

Swapnil swapi

🏊‍♂️
Swimming
View GitHub Profile
#!/bin/sh
# Some things taken from here
# https://github.com/mathiasbynens/dotfiles/blob/master/.osx
# Set the colours you can use
black='\033[0;30m'
white='\033[0;37m'
red='\033[0;31m'
green='\033[0;32m'
#run this in bash. somehow the wildcards dont work on zsh
#for nemo file manager instead of nautilus
sudo add-apt-repository ppa:noobslab/mint
#for latest git.
sudo apt-add-repository ppa:git-core/ppa
#for gnome-shell... cos unity will suck up all your memory
#plus https://extensions.gnome.org/ !!!
@swapi
swapi / link_list
Created April 10, 2013 16:50 — forked from hemanth/link_list
@swapi
swapi / sync.py
Created December 20, 2012 13:01 — forked from anonymous/sync.py
from java.io import File
from java.nio.file import Files
from java.nio.file import FileSystems
from java.nio.file.StandardWatchEventKinds import *
from java.nio.file.StandardCopyOption import *
from java.nio.file import Paths
source = '/source/file/path'
target = '/dest/file/path'