Skip to content

Instantly share code, notes, and snippets.

from vimpy import Command
class AwesomeCommand(Command):
def run(self):
print('I ran!')
#!/usr/bin/env python
import mailbox
mailbox_root = 'your_mailbox'
mailbox_type = mailbox.Maildir
###########################################
###########################################
## Configuration section finished. ##
#!/usr/bin/env sh
sudo port -fp uninstall installed
sudo rm -rf \
/opt/local \
/Applications/DarwinPorts \
/Applications/MacPorts \
/Library/LaunchDaemons/org.macports.* \
/Library/Receipts/DarwinPorts*.pkg \
@urielm
urielm / git1.php
Created July 18, 2013 21:31 — forked from valguss/git1.php
git pull
git push
git branch
git commit
git checkout
git status
git log
git stash
git pull
git stash apply
## execute manualy, step by step
##
export OPENSSL_CONF=/etc/ssl/openssl.cnf
openssl genrsa -out server.key 2048
openssl req -new -key server.key -out server.crt -x509 -days 365
#!/bin/sh
sudo svn co http://svn.macports.org/repository/macports/trunk/dports /usr/local/dports
cd /usr/local/dports
sudo portindex /usr/local/dports
sudo launchctl load -w /Library/LaunchDaemons/org.macports.nginx.plist
sudo launchctl remove org.macports.nginx
port -y install git-core
---> Computing dependencies for git-core
---> Dependencies to be installed: curl curl-ca-bundle perl5 perl5.8 libidn gettext expat libiconv gperf ncurses ncursesw openssl zlib pkgconfig p5-error python26 bzip2 db46 gdbm readline sqlite3 rsync popt
For perl5.8: skipping org.macports.main (dry run)
For perl5: skipping org.macports.main (dry run)
For curl-ca-bundle: skipping org.macports.main (dry run)
For expat: skipping org.macports.main (dry run)
For gperf: skipping org.macports.main (dry run)
For libiconv: skipping org.macports.main (dry run)
For ncursesw: skipping org.macports.main (dry run)