This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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) |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
sudo launchctl load -w /Library/LaunchDaemons/org.macports.nginx.plist | |
sudo launchctl remove org.macports.nginx | |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/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 |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
## 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 | |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
git stash | |
git pull | |
git stash apply |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
git pull | |
git push | |
git branch | |
git commit | |
git checkout | |
git status | |
git log |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/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 \ |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/usr/bin/env python | |
import mailbox | |
mailbox_root = 'your_mailbox' | |
mailbox_type = mailbox.Maildir | |
########################################### | |
########################################### | |
## Configuration section finished. ## |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
from vimpy import Command | |
class AwesomeCommand(Command): | |
def run(self): | |
print('I ran!') |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
"""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, |
OlderNewer