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
// author: tyndyll | |
// Simple script/binary that prints a message at a prescribed --interval either infinitely or | |
// for --count number of times. | |
// It is being used a simple service target for setting up and testing systemd files. To that | |
// end it handles SIGINT | |
// | |
// To use: | |
// | |
// ~GOPATH go run src/cheerleader.go --interval 1 --count 1 | |
// I am the cheerleader, I will save the world |
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 | |
# Requirements: BeautifulSoup - http://www.crummy.com/software/BeautifulSoup/ | |
# Example: | |
# overcast_downloader (~) python download.py https://overcast.fm/podcasts/episode/101217043409120 | |
# http://traffic.libsyn.com/oneyoufeed/Mini_Episode_7.mp3#t=0 | |
# | |
# overcast_downloader (~) python download.py https://overcast.fm/podcasts/episode/101217043409120 | xargs wget | |
# --2014-09-18 11:53:45-- http://traffic.libsyn.com/oneyoufeed/Mini_Episode_7.mp3 | |
# Resolving traffic.libsyn.com... 204.16.245.39 | |
# Connecting to traffic.libsyn.com|204.16.245.39|:80... connected. |
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 ( | |
"bufio" | |
"io" | |
) | |
type LoggedPipe struct { | |
Stdin *io.PipeReader | |
Stdout *PipeCloner |
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 | |
from SimpleCV import Camera, Display, Color | |
cam = Camera() | |
display = Display(resolution = (800, 600)) | |
while display.isNotDone(): | |
img = cam.getImage() |
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 | |
# | |
# Copyright (c) 2012 Tyndyll | |
# All rights reserved. | |
# | |
# Redistribution and use in source and binary forms, with or without | |
# modification, are permitted provided that the following conditions are met: | |
# | |
# 1. Redistributions of source code must retain the above copyright notice, this | |
# list of conditions and the following disclaimer. |
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 | |
# Copyright (c) 2013, Tyndyll | |
# All rights reserved. | |
# | |
# Redistribution and use in source and binary forms, with or without | |
# modification, are permitted provided that the following conditions are met: | |
# | |
# 1. Redistributions of source code must retain the above copyright notice, this | |
# list of conditions and the following disclaimer. |
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 hashlib | |
import logging | |
import optparse | |
import os | |
import sys | |
import urllib2 | |
import xml.dom.minidom |
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 ( | |
"bytes" | |
"encoding/json" | |
"errors" | |
"flag" | |
"fmt" | |
"io/ioutil" | |
"log" |
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
""" | |
Run Selenium headless tests against Django test server | |
------------------------------------------------------ | |
Creates and destroys a test environment each time. | |
Requires Xvfb and IceWeasel to be installed. For Debian flavours: | |
sudo apt-get install xvfb iceweasel |
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
# Add the following 'help' target to your Makefile | |
# And add help text after each target name starting with '\#\#' | |
help: ## Show this help. | |
@fgrep -h "##" $(MAKEFILE_LIST) | fgrep -v fgrep | sed -e 's/\\$$//' | sed -e 's/##//' | |
# Everything below is an example | |
target00: ## This message will show up when typing 'make help' | |
@echo does nothing |
OlderNewer