🏳️⚧️
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 | |
header('Content-type: application/json'); | |
if ( array_key_exists('addr', $_GET) ) | |
$ip = $_GET['addr']; | |
else | |
$ip = $_SERVER['REMOTE_ADDR']; | |
$v6 = preg_match("/^[0-9a-f]{1,4}:([0-9a-f]{0,4}:){1,6}[0-9a-f]{1,4}$/", $ip); | |
$v4 = preg_match("/^([0-9]{1,3}\.){3}[0-9]{1,3}$/", $ip); |
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 | |
# Dropbox setup on a headless Ubuntu Server | |
# Script written by Jesse B. Hannah (http://jbhannah.net) <[email protected]> | |
# Based on http://wiki.dropbox.com/TipsAndTricks/UbuntuServerInstall | |
### | |
# Permission is hereby granted, free of charge, to any person obtaining a copy | |
# of this software and associated documentation files (the "Software"), to deal | |
# in the Software without restriction, including without limitation the rights | |
# to use, copy, modify, merge, publish, distribute, sublicense, and/or sell |
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
# The following redirects all non-existing subdomains and the "www." prefix to | |
# the top domain. Change 'sub' below to a vertical-bar (|)-delimited list of | |
# subdomains. | |
$HTTP["host"] !~ "^((sub)\.)?example1\.com" { | |
$HTTP["host"] =~ "^(.+\.)example1\.com" { | |
url.redirect = ( "^/(.*)" => "http://example1.com/$1" ) | |
} | |
} | |
# If you don't have any subdomains you want to be web-accessible, comment 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
# | |
# udev rules file for the thinkfinger fingerprint scanner | |
# | |
# gives access to the fingerprint reader to those in the "fingerprint" group | |
# | |
# Taken from: | |
# http://www.thinkwiki.org/wiki/How_to_enable_the_fingerprint_reader_with_ThinkFinger | |
# which was taken and modified from: | |
# http://article.gmane.org/gmane.linux.drivers.thinkfinger/329 | |
# |
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 | |
header('Content-type: application/json'); | |
if ( array_key_exists('username', $_GET) ) | |
$user = $_GET['username']; | |
else | |
$user = ""; | |
$curl = curl_init("http://mystatus.skype.com/${user}.num"); | |
curl_setopt($curl, CURLOPT_RETURNTRANSFER, true); |
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
# Beware! This file is rewritten every time htop exits. | |
# The parser is also very primitive, and not human-friendly. | |
# (I know, it's in the todo list). | |
fields=0 48 17 18 38 39 40 2 46 47 49 1 | |
sort_key=47 | |
sort_direction=1 | |
hide_threads=0 | |
hide_kernel_threads=1 | |
hide_userland_threads=0 | |
shadow_other_users=0 |
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
[Desktop Entry] | |
Type=Application | |
Exec=rotate.py monitor | |
Hidden=false | |
NoDisplay=false | |
X-GNOME-Autostart-enabled=true | |
Name[en_US]=Monitor Screen Rotation | |
Name=Monitor Screen Rotation | |
Comment[en_US]=Monitor the rotation of the display and rotate the screen to match. | |
Comment=Monitor the rotation of the display and rotate the screen to match. |
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 | |
# Hurricane Electric IPv6 Tunnel Broker script for Ubuntu | |
# /etc/network/if-up.d/he-ipv6.sh | |
# Written by Jesse B. Hannah (http://jbhannah.net) <[email protected]> | |
# Based on instructions provided by Hurricane Electric (http://tunnelbroker.net) | |
### | |
# Permission is hereby granted, free of charge, to any person obtaining a copy | |
# of this software and associated documentation files (the "Software"), to deal |
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
processes = [] | |
psef = [] | |
`ps -ef`.lines.each { |r| psef << r } | |
headers = psef.shift.split | |
psef.each do |row| | |
row = row.split | |
p = {} |
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 | |
header('Content-type: application/json'); | |
if ( array_key_exists('char', $_GET) && array_key_exists('realm', $_GET) ) { | |
$char = $_GET['char']; | |
$realm = $_GET['realm']; | |
} else { | |
echo json_encode(array()); | |
return; | |
} |
OlderNewer