Skip to content

Instantly share code, notes, and snippets.

View nlf's full-sized avatar

nlf nlf

  • Code4rena
  • Kennewick, WA
View GitHub Profile
_color_dark_gray=$(tput setaf 238)
_color_light_gray=$(tput setaf 244)
_color_red=$(printf "\e[31m")
_color_blue=$(printf "\e[34m")
_color_green=$(printf "\e[32m")
_color_normal=$(printf "\e[0m")
_short_pwd() {
if [ "$PWD" == "/" ]; then
export __short_pwd="/"
class EventEmitter {
constructor() {
this.listeners = {}
}
addListener(event, fn) {
if (!this.listeners[event]) {
this.listeners[event] = []
}
this.listeners[event].push(fn)

Keybase proof

I hereby claim:

  • I am nlf on github.
  • I am nlf (https://keybase.io/nlf) on keybase.
  • I have a public key ASDsxPM_E4yKABTEaGzZoNoROOqryI8bSDijfCYmV7smdQo

To claim this, I am signing this object:

description "drone agent"
start on started docker
stop on runlevel [!2345]
respawn
pre-start script
docker pull drone/drone:0.5.0-rc
docker rm drone-agent || true
end script
from burp import IBurpExtender, ITab
from javax import swing
import os
class BurpExtender(IBurpExtender, ITab):
def registerExtenderCallbacks(self, callbacks):
self._callbacks = callbacks
self._callbacks.setExtensionName("Markdown Exporter")
self.tab = swing.JPanel()
from burp import IBurpExtender
from burp import IHttpListener
from burp import IExtensionStateListener
from java.io import PrintWriter
class BurpExtender(IBurpExtender, IHttpListener, IExtensionStateListener):
def registerExtenderCallbacks(self, callbacks):
callbacks.setExtensionName("spider2scanner")

Keybase proof

I hereby claim:

  • I am nlf on github.
  • I am nlf (https://keybase.io/nlf) on keybase.
  • I have a public key whose fingerprint is 83A3 EA6C B58F 67F5 6DF9 B06C 5783 6672 4C2E 5469

To claim this, I am signing this object:

- name: sshd.socket
command: restart
content: |
[Socket]
ListenStream=2042
Accept=yes
@nlf
nlf / .profile
Created February 26, 2016 00:46
short_pwd() {
if [ "$PWD" == "/" ]; then
export __short_pwd="/"
return
fi
# this is where we'll accumulate our result
local path
# and where we'll accumulate a denormalized result
local fullpath
{ _id: 'grunt-po2json',
_rev: '1-94067eba43e20c23dd74b6e4a7b94628',
bugs: { url: 'https://github.com/rockykitamura/grunt-po2json/issues' },
name: 'grunt-po2json',
time:
{ '0.0.1': '2013-05-31T21:32:37.947Z',
'0.2.0': '2014-01-24T17:26:40.811Z',
'0.3.0': '2015-02-23T15:47:07.380Z',
created: '2013-05-31T21:32:36.816Z',
modified: '2015-02-23T15:47:07.380Z' },