Skip to content

Instantly share code, notes, and snippets.

Oleku Konko olekukonko

Block or report user

Report or block olekukonko

Hide content and notifications from this user.

Learn more about blocking users

Contact Support about this user’s behavior.

Learn more about reporting abuse

Report abuse
View GitHub Profile
View array-to-texttable.php
<?php
/**
* Array to Text Table Generation Class
*
* @author Tony Landis <tony@tonylandis.com>
* @link http://www.tonylandis.com/
* @copyright Copyright (C) 2006-2009 Tony Landis
* @license http://www.opensource.org/licenses/bsd-license.php
*/
class ArrayToTextTable
View alt.go
package main
import (
"html/template"
"io"
"net/http"
"os"
)
//Compile templates on start
View example.go
package main
import (
"code.google.com/p/go.net/websocket"
"net/http"
"log"
)
// all code is in an init function to avoid any name collisions
View example_wrapio.go
package main
import (
"bytes"
"crypto/aes"
"crypto/cipher"
"crypto/rand"
"fmt"
"github.com/icub3d/wrapio"
"io"
View progress.go
import(
"fmt"
"io"
"os"
"time"
)
const DEFAULT_FORMAT = "\r%s % 3d %% %d kb %0.2f kb/s %v "
View example.go
import (
"net/url"
"github.com/dougblack/sleepy"
)
type Item struct { }
func (item Item) Get(values url.Values) (int, interface{}) {
items := []string{"item1", "item2"}
data := map[string][]string{"items": items}
View account.go
type Account struct {
balance float64
deltaChan chan float64
balanceChan chan float64
errChan chan error
}
func NewAccount() (a *Account) {
a = &Account{
balance: balance,
deltaChan: make(chan float64),
View gist:9574562
# Download Sublime Text 2 from http://www.sublimetext.com/2
# If you aren't root, sudo su
tar -xvjf Sublime\ Text\ 2*.tar.bz2
mv Sublime\ Text\ 2/ /opt/sublime-text-2/
ln -s /opt/sublime-text-2 /usr/local/sublime-text-2
ln -s /usr/local/sublime-text-2/sublime_text /usr/local/bin/sublime_text
rm Sublime\ Text\ 2*.tar.bz2
# Sublime Text 2 can now be run as normal user with command "sublime_text"
View build.md

Hide console Window when go applcation is lunched

go build -ldflags="-H windowsgui" -o prog.exe prog.go
View slowloris.php
#! /usr/bin/env php
<?php
/* PHP Slowloris
* Adapted from the script found here: http://seclists.org/fulldisclosure/2009/Jun/207
* Contains get based attack (slow headers) and post based attack (long content length)
*
* Author: Seppe vanden Broucke
*/
function usage($argv){
You can’t perform that action at this time.