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
| <? | |
| /* | |
| TiVo To-Do List to iCal | |
| Requires iCalcreator (http://www.kigkonsult.se/iCalcreator/) | |
| See your recording schedule in Google Calendar! | |
| */ | |
| ini_set('display_errors','Off'); |
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
| declare -A FIPS | |
| declare -A STNAME | |
| FIPS[AK]=02; STNAME[AK]=Alaska | |
| FIPS[AL]=01; STNAME[AL]=Alabama | |
| FIPS[AR]=05; STNAME[AR]=Arkansas | |
| FIPS[AS]=60; STNAME[AS]=American Samoa | |
| FIPS[AZ]=04; STNAME[AZ]=Arizona | |
| FIPS[CA]=06; STNAME[CA]=California | |
| FIPS[CO]=08; STNAME[CO]=Colorado | |
| FIPS[CT]=09; STNAME[CT]=Connecticut |
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 | |
| set -e | |
| set -x | |
| # This is an example script for updating Phabricator, similar to the one used to | |
| # update <https://secure.phabricator.com/>. It might not work perfectly on your | |
| # system, but hopefully it should be easy to adapt. This script is not intended | |
| # to work without modifications. |
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 | |
| ## | |
| # 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 | |
| # |
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
| <?php | |
| declare(ticks=1); | |
| function formatBytes($size, $precision = 2) | |
| { | |
| $base = log($size) / log(1024); | |
| $suffixes = array('', 'k', 'M', 'G', 'T'); | |
| return round(pow(1024, $base - floor($base)), $precision) . $suffixes[floor($base)]; |
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
| function &array_merge_recursive_distinct(array &$array1, &$array2 = null) | |
| { | |
| $merged = $array1; | |
| if (is_array($array2)) | |
| foreach ($array2 as $key => $val) | |
| if (is_array($array2[$key])) | |
| $merged[$key] = is_array($merged[$key]) ? array_merge_recursive_distinct($merged[$key], $array2[$key]) : $array2[$key]; | |
| else | |
| $merged[$key] = $val; |
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
| worker_processes 1; | |
| error_log logs/error.log; | |
| events { | |
| worker_connections 1024; | |
| } | |
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/perl | |
| $childpid = open(NETSNMP_F, "snmptranslate -L o -M . cdrqCmtsCmStatusTable |"); | |
| while (<NETSNMP_F>) { | |
| if ($_ =~ /^Cannot find module/) { | |
| @mib = split(/[\(\)]/, $_); | |
| if (!$z{$mib[1]}) { | |
| print $mib[1]."\n"; | |
| system("curl -O -f http://www.circitor.fr/Mibs/Files/".$mib[1].".mib"); | |
| system("curl -O -f http://download.intermapper.com/thirdparty/libsmi-0.4.8/mibs/iana/".$mib[1].".txt"); |
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
| brew install node --without-npm | |
| curl https://npmjs.org/install.sh | sh |
OlderNewer