Skip to content

Instantly share code, notes, and snippets.

@Preetam
Preetam / change_selection_background.js
Created November 13, 2020 16:01
Change selection background
javascript:(function(){var sheet = window.document.styleSheets[0]; sheet.insertRule('::selection { background: #ff9;%20}',%20sheet.cssRules.length);})();
@Preetam
Preetam / deserlab_exploit.py
Created February 14, 2019 16:23 — forked from DiabloHorn/deserlab_exploit.py
Exploit for the DeserLab vulnerable implementation
#!/usr/bin/env python
"""
DiabloHorn - https://diablohorn.com
References
https://nickbloor.co.uk/2017/08/13/attacking-java-deserialization/
https://deadcode.me/blog/2016/09/02/Blind-Java-Deserialization-Commons-Gadgets.html
https://deadcode.me/blog/2016/09/18/Blind-Java-Deserialization-Part-II.html
http://gursevkalra.blogspot.nl/2016/01/ysoserial-commonscollections1-exploit.html
https://foxglovesecurity.com/2015/11/06/what-do-weblogic-websphere-jboss-jenkins-opennms-and-your-application-have-in-common-this-vulnerability/
https://www.slideshare.net/codewhitesec/exploiting-deserialization-vulnerabilities-in-java-54707478
.PHONY: prep
prep:
echo "Prep"
.PHONY: build-docker-image
build-docker-image: prep
echo "Building Docker image"
build-app%: build-docker-image
echo "Building $@"
package main
import (
"fmt"
"io/ioutil"
"log"
"os"
"strconv"
"github.com/dgraph-io/badger"

Papers

This list is adapted from the lecture plan for the "Advanced Topics in Computer Systems" course at Berkeley, which is available here: https://people.eecs.berkeley.edu/~kubitron/cs262/index_lectures.html

Thanks to Anthony Joseph and John Kubiatowicz for putting the original list together.

Introduction to the course, some basic philosophy, UNIX system.

@Preetam
Preetam / svg.svg
Last active September 15, 2016 20:25
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
package main
import (
"fmt"
"log"
"math/rand"
"runtime"
"time"
"github.com/Preetam/lm2"
package main
import (
"bytes"
"encoding/json"
"flag"
"fmt"
"log"
"net/http"
"strings"
package main
import (
"flag"
"log"
"strings"
"github.com/Preetam/libab/go/ab"
"github.com/digitalocean/godo"
"golang.org/x/oauth2"
@Preetam
Preetam / gist:a657bbd393b7d088c75bbdf7fa6cb610
Created April 10, 2016 21:00
Sort files in bash by number with a prefix
∂ migrations (change-schema): ls | sort -n -t - -k 2
update-1.sql
update-99.sql
update-100.sql
update-123.sql
update-1000.sql