Skip to content

Instantly share code, notes, and snippets.

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)
sudo launchctl load -w /Library/LaunchDaemons/org.macports.nginx.plist
sudo launchctl remove org.macports.nginx
#!/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
## 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
git stash
git pull
git stash apply
@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
#!/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 \
#!/usr/bin/env python
import mailbox
mailbox_root = 'your_mailbox'
mailbox_type = mailbox.Maildir
###########################################
###########################################
## Configuration section finished. ##
from vimpy import Command
class AwesomeCommand(Command):
def run(self):
print('I ran!')
"""Package resource API
--------------------
A resource is a logical file contained within a package, or a logical
subdirectory thereof. The package resource API expects resource names
to have their path parts separated with ``/``, *not* whatever the local
path separator is. Do not use os.path operations to manipulate resource
names being passed into the API.
The package resource API is designed to work with normal filesystem packages,