Skip to content

Instantly share code, notes, and snippets.

@alexisrobert
alexisrobert / webserver.go
Created May 20, 2011 10:13
Tiny web server in Go for sharing a folder
/* Tiny web server in Golang for sharing a folder
Copyright (c) 2010-2014 Alexis ROBERT <alexis.robert@gmail.com>
Contains some code from Golang's http.ServeFile method, and
uses lighttpd's directory listing HTML template. */
package main
import "net/http"
import "net/url"
@sschuberth
sschuberth / adb_kill.py
Created July 25, 2012 10:04 — forked from marshall/adb_kill.py
kill a running android process without eclipse
#!/usr/bin/python -O
# Kill a running Android JDWP (debuggable) process without Eclipse.
import sys
import socket
import struct
import uuid
import random
import subprocess
@manishtpatel
manishtpatel / main.go
Last active October 18, 2023 03:12
GoLang Encrypt string to base64 and vice versa using AES encryption.
package main
import (
"crypto/aes"
"crypto/cipher"
"crypto/rand"
"encoding/base64"
"fmt"
"io"
)