Skip to content

Instantly share code, notes, and snippets.

@6LYTH3
6LYTH3 / ldap_auth.go
Last active August 29, 2015 14:19 — forked from sfreiberg/ldap_auth.go
package main
import (
"github.com/jbcrail/ldap"
"fmt"
)
func main() {
server := "ldap01.example.com:389"
#!/usr/bin/python
from fabric.api import *
from fabric.contrib.console import confirm
import sys
import os
import subprocess
env.hosts = ['192.168.1.8']
env.user = 'root'
@6LYTH3
6LYTH3 / hb-test.py
Last active August 29, 2015 13:59 — forked from takeshixx/hb-test.py
#!/usr/bin/python
# Quick and dirty demonstration of CVE-2014-0160 by Jared Stafford (jspenguin@jspenguin.org)
# The author disclaims copyright to this source code.
import sys
import struct
import socket
import time
import select
@6LYTH3
6LYTH3 / mysql
Last active August 29, 2015 13:56 — forked from johnantoni/mysql.txt
username: vagrant
password: vagrant
sudo apt-get update
sudo apt-get install build-essential zlib1g-dev git-core sqlite3 libsqlite3-dev
sudo aptitude install mysql-server mysql-client
sudo nano /etc/mysql/my.cnf
change:
@6LYTH3
6LYTH3 / tmux.md
Created January 25, 2014 15:40 — forked from andreyvit/tmux.md

tmux cheat sheet

(C-x means ctrl+x, M-x means alt+x)

Prefix key

The default prefix is C-b. If you (or your muscle memory) prefer C-a, you need to add this to ~/.tmux.conf:

remap prefix to Control + a

oaudard@work:~/Projects/sample-grails-project$ grailsenv
GRAILS_HOME=/home/oaudard/dev-utils/grails
grails
grails-1.3.7
grails-1.3.8
grails-2.0.0
grails-2.0.1
grails-2.0.3
grails-2.0.4
grails-2.1.0
@6LYTH3
6LYTH3 / find.java
Created July 25, 2011 02:43 — forked from wingyplus/find.java
command package
package command;
import java.io.File;
public class find {
public static void main(String[] args) {
if (args.length == 0) System.out.println("please input path ...");
else {
find(args[0]);
}