Skip to content

Instantly share code, notes, and snippets.

View jameswhite's full-sized avatar
📁
copying files

James S White jameswhite

📁
copying files
View GitHub Profile
@jameswhite
jameswhite / gist:8757326
Created February 1, 2014 19:28
/etc/apache2/vhost.d/public/newton.jameswhite.org.conf
<VirtualHost *:80>
########################################################################
# Stock vhosts stuff
########################################################################
ServerAdmin webmaster@websages.com
ServerName newton.jameswhite.org
ServerAlias newton.jameswhite.org
ErrorLog logs/newton.jameswhite.org-error.log
CustomLog logs/newton.jameswhite.org-access.log combined
600d2bb061b5cee8
03204906fa08fb76
<scaninfo type="connect" protocol="tcp" numservices="1000" services="1,3-4,6-7,9,13,17,19-26,30,32-33,37,42-43,49,53,70,79-85,88-90,99-100,106,109-111,113,119,125,135,139,143-144,146,161,163,179,199,211-212,222,254-256,259,264,280,301,306,311,340,366,389,406-407,416-417,425,427,443-445,458,464-465,481,497,500,512-515,524,541,543-545,548,554-555,563,587,593,616-617,625,631,636,646,648,666-668,683,687,691,700,705,711,714,720,722,726,749,765,777,783,787,800-801,808,843,873,880,888,898,900-903,911-912,981,987,990,992-993,995,999-1002,1007,1009-1011,1021-1100,1102,1104-1108,1110-1114,1117,1119,1121-1124,1126,1130-1132,1137-1138,1141,1145,1147-1149,1151-1152,1154,1163-1166,1169,1174-1175,1183,1185-1187,1192,1198-1199,1201,1213,1216-1218,1233-1234,1236,1244,1247-1248,1259,1271-1272,1277,1287,1296,1300-1301,1309-1311,1322,1328,1334,1352,1417,1433-1434,1443,1455,1461,1494,1500-1501,1503,1521,1524,1533,1556,1580,1583,1594,1600,1641,1658,1666,1687-1688,1700,1717-1721,1723,1755,1761,1782-1783,1801,1805,1812,1839-1840,18
/*
## Widgets
```
<input type="text" ng-model="name" /> {{ name }}
```
</pre>

*/

#
# LDAP Public Key Patch schema for use with openssh-ldappubkey
# Author: Eric AUGE <eau@phear.org>
#
# Based on the proposal of : Mark Ruijter
#
# octetString SYNTAX
attributetype ( 1.3.6.1.4.1.24552.500.1.1.1.13 NAME 'sshPublicKey'
#!/usr/bin/env python
import socket
import sys
if len(sys.argv) != 3:
print "Usage: %s host:port destfile.jpg" % sys.argv[0]
sys.exit(1)
s = socket.socket(socket.AF_INET, socket.SOCK_STREAM)
host, port = sys.argv[1].split(':')
#!/usr/bin/env ruby
require 'base64'
require 'digest'
# get 16 random hex bytes
#
def new_salt
16.times.inject('') {|t| t << rand(16).to_s(16)}
end
ProxyPass /patio http://10.255.2.64:8081/
ProxyPassReverse /patio http://10.255.2.64:8081/
digraph trees {
subgraph ldap {
"write_setup" -> "setup-ds-admin.inf" [label = "always"];
"write_hostentry" -> "hostentry.ldif" [label = "always"];
"setup-ds-admin.inf" -> "check_adminsrv" [label = "if_ok"];
"hostentry.ldif" -> "check_slapd" [label = "repaired"];
"check_adminsrv" -> "slapd_initialized" [label = "repaired"];
olcObjectClasses:
- 2.5.6.0:
NAME: 'top'
DESC: 'top of the superclass chain'
ABSTRACT
MUST: objectClass
- 0.9.2342.19200300.100.4.5
NAME 'account'
SUP top STRUCTURAL
MUST