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
#!/bin/bash | |
# Updates the Sao_Paulo Timezone (2012..2016) and does some basic checking after that | |
echo -n 'Checking for zic: ' | |
which zic &>/dev/null | |
if [ ${?} -eq 0 ] | |
then | |
echo -ne 'OK\n' | |
else |
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
Rule Brazil 2012 only - Feb 26 00:00 0 S | |
Rule Brazil 2012 only - Oct 21 00:00 1 D | |
Rule Brazil 2013 only - Feb 17 00:00 0 S | |
Rule Brazil 2013 only - Oct 20 00:00 1 D | |
Rule Brazil 2014 only - Feb 16 00:00 0 S | |
Rule Brazil 2014 only - Oct 19 00:00 1 D | |
Rule Brazil 2015 only - Feb 22 00:00 0 S | |
Rule Brazil 2015 only - Oct 18 00:00 1 D | |
Rule Brazil 2016 only - Feb 21 00:00 0 S | |
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 | |
# -*- coding: utf-8 -*- | |
import MySQLdb as mdb | |
import sys | |
from time import sleep | |
class TimedInsert: |
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
#!/bin/bash | |
user='root' | |
password='default' | |
mysql_bin='mysql' | |
function set_up_bin() { | |
if [ "${user}" == "" ]; then |
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
altscreen on | |
term screen-256color | |
bind ',' prev | |
bind '.' next | |
hardstatus alwayslastline | |
hardstatus string '%{= kG}%-Lw%{= kW}%50> %n%f* %t%{= kG}%+Lw%< %{= kG}%-=%c:%s%{-}' |
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/perl -T | |
# $Id: makebib.perl,v 1.18 2006/02/06 05:34:04 t Exp $ | |
# | |
# This program is free software; you can redistribute it and/or modify | |
# it under the terms of the GNU General Public License as published by | |
# the Free Software Foundation; either version 2 of the License, or | |
# (at your option) any later version. | |
# | |
# This program is distributed in the hope that it will be useful, | |
# but WITHOUT ANY WARRANTY; without even the implied warranty of |
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/env bash | |
## Usage: swappy [-t|--total] | |
## Identify the processes that use swap | |
# Usage | |
test "$1" = "-h" -o "$1" = "--help" && { | |
grep '^##' <"$0" | cut -c4- | |
exit 2 | |
} |
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
# This is an example config that assumes tagger.py is either in | |
# $HOME/.starcluster/plugins or lives somewhere in your $PYTHONPATH | |
[plugin tagger] | |
setup_class = tagger.TaggerPlugin | |
# add as many key=value pairs as you like separated by ',' | |
tags = 'mykey=myvalue, mykey2=myvalue2' | |
[cluster default] | |
... |
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
#!/bin/bash | |
# Install dockviz: | |
# https://github.com/justone/dockviz | |
# You can import it from .bashrc with the following commands (assuming you saved this script in '~/bin': | |
# echo ". ~/bin/dockviz-containers-images.sh" >>~/.bashrc | |
# source ~/.bashrc | |
function dockviz_containers() { |
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
########################## | |
### ONLY 'OCV_OPTION's ### | |
########################## | |
# Getting OpenCV Flags | |
curl https://raw.githubusercontent.com/Itseez/opencv/2.4.10/CMakeLists.txt | grep -i OCV_OPTION | cut -d'(' -f2 | awk '{print $1}' | |
# Getting OpenCV Flags and Formatting for CMake | |
curl https://raw.githubusercontent.com/Itseez/opencv/2.4.10/CMakeLists.txt | grep -i OCV_OPTION | cut -d'(' -f2 | awk '{print $1}' | xargs -I XXX echo "-D XXX=OFF \\" |
OlderNewer