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/sh | |
GITOLITE_REPO_PATH="/home/gitolite/repositories" | |
GITOLITE_ADMIN_PATH="$GITOLITE_REPO_PATH/gitolite-admin.git" | |
debug () | |
{ | |
echo "[D]: $1" > /dev/null | |
} |
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
/* | |
A portion of this began as an example sketch from anologReadSerial | |
AnalogReadSerial | |
Reads an analog input on pin 0, prints the result to the serial monitor | |
This example code is in the public domain. | |
*/ | |
/* From http://www.arduino.cc/cgi-bin/yabb2/YaBB.pl?num=1267245927 |
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
Using the nc command you can scan a port or a range of ports to verify whether a UDP port is open and able to receive traffic. | |
This first command will scan all of the UDP ports from 1 to 65535 and add the results to a text file: | |
$ nc -vnzu server.ip.address.here 1-65535 > udp-scan-results.txt | |
This merely tells you that the UDP ports are open and receive traffic. | |
Perhaps a more revealing test would be to actually transfer a file using UDP. |
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
{ | |
"Description" : "RadiantBlue Drupal 7 CloudFormation template from a make file V.0.0.1", | |
"Parameters" : { | |
"KeyName" : { | |
"Description" : "Name of an existing EC2 KeyPair to enable SSH access to the instances", | |
"Type" : "String", |
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
# if not re.match("^[a-z]*$", input_str): | |
import random | |
import os | |
import re | |
os.system('cls' if os.name=='nt' else 'clear') | |
while (1 < 2): | |
print "\n" | |
print "Rock, Paper, Scissors - Shoot!" |
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 script requires the Quantum Random library https://github.com/lmacken/quantumrandom | |
# Use pip: pip install quantumrandom http://pypi.python.org/pypi/quantumrandom | |
for i in {1..100}; | |
do qrandom --int --max 1 --min 1000 >> 100-numbers.txt; | |
done; | |
echo "Complete!"; |
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
import quantumrandom | |
i = 1 | |
numberofNumbers = input("How many random numbers to you want to generate? ") | |
lowNumberRange = input("Enter the lowest number in the range: ") | |
highNumberRange = input("Enter the highest number in the range: ") | |
print "Generating " + str(numberofNumbers) + " Quantum Random numbers " + \ | |
"in range " + str(lowNumberRange) + " and " + str(highNumberRange) |
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
// A Simple nod.js chat server using telent from O'reilly's node up and running | |
var net = require('net') | |
var chatServer = net.createServer() | |
clientList = [] | |
chatServer.on('connection', function(client) { | |
client.name = client.remoteAddress + ':' + client.remotePort |
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
Drupal.behaviors.myModuleBehavior = function (context) { | |
//do some fancy stuff | |
}; |
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 all_projects_block($op = 'list', $delta = 'all_projects_link') { // Make the delta a string, it is easier! | |
$block = array(); | |
switch ($op) { | |
case 'list':// This lists the block in the admin>blocks page | |
$block['all_projects_link'] = array( //You have to reference the delta for $op 'list' otherwise it won't work | |
'info' => t('2.1-All Projects Block'), | |
'weight' => 0, | |
'status' => TRUE, |
OlderNewer