Disable:
sudo launchctl unload -w /System/Library/LaunchDaemons/com.apple.metadata.mds.plist
Enable:
sudo launchctl load -w /System/Library/LaunchDaemons/com.apple.metadata.mds.plist
| # "Understanding Python's closures". | |
| # | |
| # Tested in Python 3.1.2 | |
| # | |
| # General points: | |
| # | |
| # 1. Closured lexical environments are stored | |
| # in the property __closure__ of a function | |
| # | |
| # 2. If a function does not use free variables |
| # encoding: UTF-8 | |
| import sys | |
| import datetime | |
| class ProgressBarError(Exception): | |
| pass | |
| class AlreadyFinishedError(ProgressBarError): | |
| pass |
Disable:
sudo launchctl unload -w /System/Library/LaunchDaemons/com.apple.metadata.mds.plist
Enable:
sudo launchctl load -w /System/Library/LaunchDaemons/com.apple.metadata.mds.plist
| { | |
| "cmd" : ["$file"], | |
| "selector" : "source.shell", | |
| "shell" : "bash" | |
| } |
| #!/usr/bin/env sh | |
| ## | |
| # This is script with usefull tips taken from: | |
| # https://github.com/mathiasbynens/dotfiles/blob/master/.osx | |
| # | |
| # install it: | |
| # curl -sL https://raw.github.com/gist/2108403/hack.sh | sh | |
| # |
| #!/usr/bin/env sh | |
| ## | |
| # This is script with usefull tips taken from: | |
| # https://github.com/mathiasbynens/dotfiles/blob/master/.osx | |
| # | |
| # install it: | |
| # curl -sL https://raw.github.com/gist/2108403/hack.sh | sh | |
| # |
(The below text is licensed with CC0, which means that if you want to use or translate it, that is OK by me.)
Ok, I geeked out, and this is probably more information than you need. But it completely answers the question. Sorry. ☺
Locally, I'm at this commit:
$ git show
commit d6cd1e2bd19e03a81132a23b2025920577f84e37
Author: jnthn <[email protected]>
Date: Sun Apr 15 16:35:03 2012 +0200
| // Using the Jenkins Groovy Post build plugin to execute the following after every build | |
| // https://wiki.jenkins-ci.org/display/JENKINS/Groovy+Postbuild+Plugin | |
| // It would be nice not to have to specify these here... the repo name should be available within the hudson | |
| // api somehow, but I didn't know how to get it. The access token should maybe be saved in a config file, and | |
| // read in at runtime? | |
| GITHUB_REPO_NAME = 'myusername/myreponame' | |
| GITHUB_ACCESS_TOKEN = 'my_github_api_v3_access_token' |
| project(testlink) | |
| add_executable(testlink main.cpp) | |
| target_link_libraries(testlink) |
| #!/bin/bash | |
| aptitude -y install expect | |
| // Not required in actual script | |
| MYSQL_ROOT_PASSWORD=abcd1234 | |
| SECURE_MYSQL=$(expect -c " | |
| set timeout 10 |