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 | |
function bronto_menu($may_cache) { | |
$items = array(); | |
if ($may_cache) { | |
$items[] = array( | |
'path' => 'admin/mymodule/settings/bronto', | |
'access' => user_access('administer site configuration'), | |
'title' => t('Bronto settings'), |
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
function dealwithit() { | |
echo "( °_°)" | |
sleep 1 | |
tput cuu1 | |
tput el | |
echo "( °_°)‿‑●‑●" | |
sleep 2 | |
tput cuu1 | |
tput el | |
echo "(‑●‑●)>" |
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
function _totheleft() { | |
echo "(°_°)" | |
echo "<) )╯" | |
echo ' / \' | |
} | |
function _totheright() { | |
echo " (°_°)" | |
echo "\( (>" | |
echo ' / \' |
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
package main | |
import "os/exec" | |
import "fmt" | |
import "bytes" | |
func main() { | |
cmd := exec.Command("/bin/ls", "-al") | |
var out bytes.Buffer | |
cmd.Stdout = &out |
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 python | |
import RPi.GPIO as GPIO | |
import datetime | |
import socket | |
import time | |
import os | |
metric_path = "sun.loc1" |
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
set nocompatible | |
if has("syntax") | |
syntax on | |
endif | |
if has("autocmd") | |
" Automatically reload vimrc after saving | |
autocmd bufwritepost .vimrc source $MYVIMRC | |
" Remember last position in file |
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
isc-dhcpd-4.1.1-P1 | |
authoritative; | |
option domain-name "int.domain.com"; | |
option domain-search "int.domain.com"; | |
option domain-name-servers 10.50.10.74, 10.50.10.75, 10.50.10.20, 10.50.10.21; | |
ddns-updates on; | |
ddns-update-style interim; | |
update-static-leases on; |
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
tune2fs -l /dev/sda1 | awk -F" +" '/Filesystem created/ { print $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
#!/bin/bash | |
# This file can be wget'ed at http://is.gd/vimme | |
realpath() { | |
[[ $1 = /* ]] && echo "$1" || echo "$PWD/${1#./}" | |
} | |
if ! command -v git; then | |
echo "You really need git." | |
exit 1 |
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
// These were written specifically for the Adafruit 8x8 LED matrix, | |
// https://www.adafruit.com/product/870 but they could be used anywhere you need | |
// 64 bit character representations. I wasn't happy with any of the characters I | |
// found, so I created these. They're nice and bold, not silly line letters. | |
B00110000,B01111000,B11001100,B11001100,B11111100,B11001100,B11001100,B00000000,25, // A | |
B11111100,B01100110,B01100110,B01111100,B01100110,B01100110,B11111100,B00000000,25, // B | |
B00111100,B01100110,B11000000,B11000000,B11000000,B01100110,B00111100,B00000000,25, // C | |
B11111000,B01101100,B01100110,B01100110,B01100110,B01101100,B11111000,B00000000,25, // D | |
B11111110,B01100010,B01101000,B01111000,B01101000,B01100010,B11111110,B00000000,25, // E |