Skip to content

Instantly share code, notes, and snippets.

@sylvia43
sylvia43 / frc-scouting-spec.json
Last active August 29, 2015 14:13
FRC Scouting App Spec
{
"teams" : {
"1899" : {
"teamName" : "Saints Robotics"
}
},
"competitions" : {
"09091348209384" : {
"name" : "Shoreline",
"type" : "District",
long map(long x, long in_min, long in_max, long out_min, long out_max)
{
return (x - in_min) * (out_max - out_min) / (in_max - in_min) + out_min;
}
@sylvia43
sylvia43 / Jerky.txt
Last active August 29, 2015 14:21
Best crawl run so far, on 0.14.
Dungeon Crawl Stone Soup version 0.14.0 (console) character file.
1649572 Jerky the Invulnerable (level 27, 229/229 (232) HPs)
Began as a Minotaur Berserker on Sept 13, 2014.
Was the Champion of Trog.
Escaped with the Orb
... and 3 runes on Sept 17, 2014!
The game lasted 08:43:59 (76655 turns).
@sylvia43
sylvia43 / Dodgy.txt
Created May 19, 2015 19:34
Current Gargoyle Figher, 0.16.
Dungeon Crawl Stone Soup version 0.16.1 (console) character file.
Dodgy the Acrobat (Gargoyle Fighter) Turns: 79769, Time: 10:04:19
Health: 151/184 AC: 55 Str: 22 XL: 27
Magic: 42/42 EV: 25 Int: 13 God: Qazlal [*****.]
Gold: 2846 SH: 22 Dex: 16 Spells: 1 memorised, 25 levels left
rFire + + . SeeInvis + y - +8 morningstar {crush, rC+ MR+ SInv Stlth+}
rCold + . . Clarity . f - +7 fire dragon armour of the Blue Moon {rF++ rC- rN+ Regen+ Str-3 SInv}
@sylvia43
sylvia43 / resources.md
Last active April 5, 2016 19:14
Penetration Testing and Security Resources

This is a comment by Shane Wilton in this post from HH Information Security.


Start with MicroCorruption to familiarize yourself with reverse engineering and exploit development. It's ~18 challenges, entirely on the website, that task you with reverse engineering MSP-430 programs, and developing exploits against them.

From there, Pwnable.kr has another few dozen exploitation challenges. These are more real-world, but ramp up in difficulty quickly. The first block should be doable by anyone with Linux experience though.

If you're starting from the very beginning, keep Hacking: The Art of Exploitation nearby. It's a very good primer for all of this stuff. Once you work your way through that, [TAOCP](http://www.amazon.com/T

@sylvia43
sylvia43 / 08-13.txt
Last active September 18, 2015 19:38
Count of starred messages by user in the Android SO chat, using https://github.com/anubiann00b/StarCount
653: Ahmad
518: Glitch
507: WarrenFaith
432: nil
424: Reno
362: Pyrodante
342: codeMagic
302: Raghav Sood
244: Carl Anderson
242: Merlin
@sylvia43
sylvia43 / netstat.sh
Last active August 29, 2015 14:27
First one is the server process, second is client
# Proto Local Address Foreign Address State PID
C:\WINDOWS\system32>netstat -aon | grep 7464
TCP 0.0.0.0:9999 0.0.0.0:0 LISTENING 7464
TCP 192.168.200.128:9999 192.168.200.128:51581 ESTABLISHED 7464
TCP 192.168.200.128:9999 192.168.200.128:51582 ESTABLISHED 7464
TCP [::]:9999 [::]:0 LISTENING 7464
C:\WINDOWS\system32>netstat -aon | grep 10108
TCP 192.168.200.128:51581 192.168.200.128:9999 ESTABLISHED 10108
private boolean containsEmoji(String string) {
// if you're doing it frequently, move the pattern compile into a static / member variable instead
Pattern p = Pattern.compile("[\\uD83C-\\uDBFF\\uDC00-\\uDFFF]+");
Matcher m = p.matcher(string);
return m.find();
}
/**
* Invoked when the garbage collector has detected that this instance is no longer reachable.
* The default implementation does nothing, but this method can be overridden to free resources.
*
* <p>Note that objects that override {@code finalize} are significantly more expensive than
* objects that don't. Finalizers may be run a long time after the object is no longer
* reachable, depending on memory pressure, so it's a bad idea to rely on them for cleanup.
* Note also that finalizers are run on a single VM-wide finalizer thread,
* so doing blocking work in a finalizer is a bad idea. A finalizer is usually only necessary
* for a class that has a native peer and needs to call a native method to destroy that peer.
@sylvia43
sylvia43 / Window.java
Created August 24, 2015 23:29
Scala vs. Java
import asciiPanel.AsciiPanel;
import game.screens.Screen;
import game.screens.StartScreen;
import java.awt.Color;
import java.awt.event.KeyEvent;
import java.awt.event.KeyListener;
import javax.swing.JFrame;
public class Window extends JFrame implements KeyListener {