- people from all over have come; isreal, prague, LA.
- jenkins evolved from a few shell scripts, beginning in 2004, because the creator kept embarrassing himself with faulty builds.
This file contains 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/local/bin/python | |
import argparse | |
import os | |
# User configuration | |
# ------------------ | |
_MNT_DIR = "~/mnt/dev" # e.g. mount at ~/mnt/dev6 | |
# ------------------ |
This file contains 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
/* | |
* concise, but cryptic for the first two minutes you see this | |
*/ | |
(function ($) { | |
$(selector).each(function () { | |
// code | |
}); | |
$(selector).each(function () { |
This file contains 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/python | |
def hrs(curr_entry, left, started): | |
amt_sub = (24. - left) + started | |
return curr_entry - amt_sub | |
if __name__ == '__main__': | |
import sys | |
usage = ( |
This file contains 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
<?php | |
/** | |
* Internal function for mapping a section term to a node given a term name. | |
*/ | |
private function map_section_from_tax(&$node, $item, $term_names) { | |
$term_names = new ArrWrap($term_names); | |
$section_tids = $term_names | |
->map(array($this->tax_util, 'get_term')) | |
->map(function ($p) { return $p->field_tref_section[LANGUAGE_NONE][0]['tid']; }) |
This file contains 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 selenium import webdriver | |
import time | |
def get_chase_amazon_driver(username, password): | |
"""Return a logged-in Chase Amazon card selenium driver instance.""" | |
driver = webdriver.Firefox() | |
driver.get("http://www.chase.com") | |
time.sleep(2) |
Total expenses: -26153.759856
Profile of expenses:
rent+utils -14160.00 ------------------------------------------------------
lunch -2920.00 -----------
dinner -2920.00 -----------
breakfast -1460.00 -----
unforeseen -1423.40 -----
This file contains 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/python | |
""" | |
Script that checks to see that disk usage is below a certain threshold. | |
Designed to be invoked by cron. | |
""" | |
from sh import df | |
import re |
OlderNewer