Skip to content

Instantly share code, notes, and snippets.

View nym3r0s's full-sized avatar
👋

Gokul Srinivas nym3r0s

👋
View GitHub Profile
@bjorgvino
bjorgvino / yosemite ntfs read+write.txt
Last active September 22, 2025 15:45
osxfuse + ntfs-3g + Yosemite = NTFS R/W
Remove osxfuse if installed via homebrew:
> brew uninstall osxfuse
Install osxfuse binary and choose to install the MacFUSE compatibility layer:
http://sourceforge.net/projects/osxfuse/files/latest/download?source=files
Reboot (optional but recommended by osxfuse)
Install ntfs-3g via homebrew:
> brew update && brew install ntfs-3g
#!/usr/bin/python
import sys;
import imaplib;
host = 'webmail.nitt.edu';
port = 143;
uname = sys.argv[1];
passwd = sys.argv[2];
conn = imaplib.IMAP4(host,port);
try:
@supr
supr / gist:1166302
Created August 23, 2011 19:50
For golang http.Handler to serve static files on /foo mounted at /xyz/foo
package main
import (
"http"
)
func main() {
http.Handle("/foo/", http.StripPrefix("/foo", http.FileServer(http.Dir("/xyz/foo/"))))
http.ListenAndServe(":6543", nil)
}