Skip to content

Instantly share code, notes, and snippets.

View turbo's full-sized avatar

Pierre turbo

View GitHub Profile

Keybase proof

I hereby claim:

  • I am turbo on github.
  • I am summarity (https://keybase.io/summarity) on keybase.
  • I have a public key ASC5Q6LSQZZbPDrDDBF50nd843R0xlR60h5vD3lyHqFgkAo

To claim this, I am signing this object:

@turbo
turbo / c.md
Last active September 17, 2020 23:30

The Comic

This is an irregularly updated comic about things. It might contain inside jokes. The strips all have alt text.

#2 Job Golfing

#1 Adventures of Uberman

import { createContext } from './hotkeys';
const c = createContext();
// Alerts when "no way" is typed in.
c.register('n o space w a y', () => {
alert('Yes way!');
});
/*
@turbo
turbo / hotkeys.js
Created May 15, 2020 13:47 — forked from abuduba/hotkeys.js
Hotkey library
const isEqual = (a, b) => {
const aKeys = Object.keys(a);
if (aKeys.length !== Object.keys(b).length) {
return false;
}
return aKeys.every(
(k) => Object.prototype.hasOwnProperty.call(b, k)
&& a[k] === b[k],
@turbo
turbo / shellcode.js
Created April 28, 2017 11:54
Execute ShellCode Via Jscript.NET
import System;
import System.Runtime.InteropServices;
import System.Reflection;
import System.Reflection.Emit;
import System.Runtime;
import System.Text;
//C:\Windows\Microsoft.NET\Framework\v2.0.50727\jsc.exe Shellcode.js
//C:\Windows\Microsoft.NET\Framework\v4.0.30319\jsc.exe Shellcode.js
XS-1X: &xs-1x
limits:
memory: "490Mi"
cpu: "240m"
requests:
memory: "490Mi"
cpu: "240m"
XS-2X: &xs-2x
limits:
(macro make [receiver classtable bodyfn]
`(local ,receiver (doto (class ,(tostring receiver) ,classtable)
(,bodyfn))))
; Handler that takes a single argument 'username'
(make UserHandler turbo.web.RequestHandler #(-> $1
(tset :get (fn [self name]
(self:write (.. "Username is " name))))))
(let [app (turbo.web.Application:new [
; No arguments, will work for 'localhost:8888' and 'localhost:8888/'
["/$" IndexHandler]
; Use the part of the url after /user/ as the first argument to
; UserHandler:get
["/user/(.*)$" UserHandler]
; Find two int's separated by a '/' after /add in the url
; and pass them as arguments to AddHandler:get
@turbo
turbo / test_file_loader.lua
Created October 14, 2019 15:17
busted no moon
local s = require 'say'
return function(busted, loaders)
local path = require 'pl.path'
local dir = require 'pl.dir'
local tablex = require 'pl.tablex'
local fileLoaders = {}
for _, v in pairs(loaders) do
if v ~= "moonscript" then
Google Bombs Removed All - Short News: There Is Shit Wrong with Your Article
====================
UX blogs for business: Part 1
====================
Next wave of encryption protection coming either as daylight savings tracker or a tool for sharing rich data
====================
Apple Makes MacBooks Gone Bad — With Free iOS Devices
====================
Lakewood Under Launch Requires Exposure of Detailed Development
====================