Skip to content

Instantly share code, notes, and snippets.

Greg Slepak taoeffect

Block or report user

Report or block taoeffect

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
@taoeffect
taoeffect / tracker.php.patch
Last active Aug 29, 2015
Patch was emailed to Till Krüss on February 23, 2014. If you can't wait for him to update his Downloads pepper, you can manually apply the patch below. (Note: this was hacked together in a couple of hours. I don't usually code in PHP. I'm hoping he cleans it up and fixes any mistakes.)
View tracker.php.patch
--- tracker.php 2011-08-02 14:30:30.000000000 -0500
+++ blah.php 2014-02-24 10:52:23.000000000 -0600
@@ -33,12 +33,8 @@
$this->paranoid = isset($args['paranoid']) ? $args['paranoid'] : FALSE;
$this->db_prefix = $args['tblPrefix'];
- $this->db_id = mysql_connect($args['server'], $args['username'], $args['password']);
-
- mysql_select_db($args['database'], $this->db_id);
-
@taoeffect
taoeffect / attack.log
Created May 31, 2014
DNS attack pattern (anonymized, consistent mapping of first 3 octets)
View attack.log
2014-05-31T02:26:31.914Z - warn: [DNS] ignoring :: name=wln.www.citizenswebforum.com, ip=666.666.666.16
2014-05-31T02:26:33.035Z - warn: [DNS] ignoring :: name=nbcqrstuiwxlm.www.citizenswebforum.com, ip=666.666.666.18
2014-05-31T02:26:33.204Z - warn: [DNS] ignoring :: name=xdbnllpgokoelmx.www.citizenswebforum.com, ip=1.1.1.204
2014-05-31T02:26:33.205Z - warn: [DNS] ignoring :: name=yziujhftcwugxaz.www.citizenswebforum.com, ip=2.2.2.214
2014-05-31T02:26:33.410Z - warn: [DNS] ignoring :: name=lyvie.www.citizenswebforum.com, ip=666.666.666.17
2014-05-31T02:26:33.532Z - warn: [DNS] ignoring :: name=kxgladxuz.www.citizenswebforum.com, ip=3.3.3.157
2014-05-31T02:26:33.669Z - warn: [DNS] ignoring :: name=ihdzv.www.citizenswebforum.com, ip=666.666.666.18
2014-05-31T02:26:33.827Z - warn: [DNS] ignoring :: name=gsejo.www.citizenswebforum.com, ip=4.4.4.19
2014-05-31T02:26:33.830Z - warn: [DNS] ignoring :: name=ewtmy.www.citizenswebforum.com, ip=5.5.5.163
2014-05-31T02:26:33.952Z - warn: [DNS] ignoring :: name=sztpppvrap
@taoeffect
taoeffect / Espionage.dmg.sig
Created Jul 19, 2014
Signature for Espionage 3.6 DMG using key C32DE6664644751C9B80D9984B4D4371A884B988: https://www.taoeffect.com/other/A884B988.asc
View Espionage.dmg.sig
-----BEGIN PGP SIGNATURE-----
Comment: GPGTools - http://gpgtools.org
iQIcBAABCgAGBQJTyqOhAAoJEOxnICvpCVJH5UsP/1lD+bp80Ka5aJLiIBhUYhvQ
jXoux/I2+/V+2Q5zfHr5RpReJmyKv126WPGLShOx5yJiuke+Y/xAvJ1RY1mmLlba
l1Vdlmrkjr1f0lw7zhkCxk7hEQ9jQh7zYWtuRAZGXF11BKxYTxzifJH1Ht6M1Q1P
6uNS86LXldN9aJZBp3M/dbv1tmD5YJYtV2gne29+Zh+irEGk9V37Yd9zMXLSuCBY
yWmpvgBT8QlWKXx9tpmCzUL3FjmpGjRQE5wIEGC5o9jWTZXdk6iaYRvLm3/GuTk9
zouowjGN+nnYSfSQPxTgctTvEAfmQM0NGAG9NMJbA2A7dUmtsOmJNNmSAjox6NVX
cLUHPV2bCrqhMM06NA05rpTlNsDBGR5fmzl/czzhYk+9BwL/iXyYi1gTN72Es3Ni
@taoeffect
taoeffect / Espionage.dmg.sig
Created Oct 3, 2014
Signature for Espionage 3.6.1
View Espionage.dmg.sig
-----BEGIN PGP SIGNATURE-----
Comment: GPGTools - http://gpgtools.org
iQIcBAABCgAGBQJULtv7AAoJEOxnICvpCVJH8j0QAI7RCbhBu81GXPLCvntT7pGC
6M0u5vvjYhSEDjwduqpXe1ubjOJLAcY6I7Ju5msyCFHsFpL5jgiIAvldOg4q0+YW
C7ZlksTW9soQ+q6Phh/nfq78PaqMDrV1y0VewXzGVx3FYN3aWJXW3J5Uc9ZkaqSz
Er+qOsyX333BdX2F0jMp+wVC88yIpgShgI7qGnq83pUbFIEoGfgAWQK4tka/F0Gp
biNuNrlmTNbvXmWPXUebfToJoLh4c17rBPZ+U8hySAEtODUgWdfR+FgOGgQscorJ
Oij7+f3vz0jCxY7kjnjfvskgCD/cKV4S28cuJRZGTC2KRzNh4qYB1mQv1GQgkXYF
9aJFbmJfPJ6TceaasJ5MW6/FPARtMIfWkHSYoHawVlXKVnggOW52hICPDGHPRblM
@taoeffect
taoeffect / Espionage.dmg.sig
Created Nov 16, 2014
Signature for Espionage 3.6.2
View Espionage.dmg.sig
-----BEGIN PGP SIGNATURE-----
Comment: GPGTools - http://gpgtools.org
iQIcBAABCgAGBQJUaFCbAAoJEOxnICvpCVJHFVkQAL3Odh4x0+pqLifS6GNnh+NG
iyHzCJz59KEsPCIIoVILLOf3bkPqt/LRF2FDQRdTCpxbg6MBXigMFmwz9bRoVEcu
98OmnnKE0qe/Zk5EcrpKfvr/5WctUIwao8Jl2PCdq56P/94U5Ma3jnxA1Jw/Yq8S
li4MIcjG58+aTnoSITIEpqdyDBpXeihvdl6MkP9ye0zCxn324VfTLNRNBBifnrzZ
Lp/RgD9EGNQqF6tp8/rEvdWbQVj0NOckK1063jBgM+aj9Vl1xoikrTVW3HlWvdpz
7JGPPNYMdXtLhmXtVXa3btImf/wkjnuoNDwrujcVU0xNB59Srl4c4/em5yDIW5Sp
+xm8seRG9gmiFd3AcsVWARj4VcCTEJyKEwdWnU4Xf8aqZ4E6wZbxT23y0ybEd6fc
View gist:454599
Unable to resolve symbol: behave in this context
[Thrown class java.lang.Exception]
Restarts:
0: [QUIT] Quit to the SLIME top level
Backtrace:
0: clojure.lang.Compiler.resolveIn(Compiler.java:5672)
1: clojure.lang.Compiler.resolve(Compiler.java:5616)
2: clojure.lang.Compiler.analyzeSymbol(Compiler.java:5579)
View gist:463770
$ lein swank
Exception in thread "main" java.lang.IllegalArgumentException: No matching field found: getCommandLine for class org.apache.tools.ant.taskdefs.Java (NO_SOURCE_FILE:0)
at clojure.lang.Compiler.eval(Compiler.java:5435)
at clojure.lang.Compiler.eval(Compiler.java:5386)
at clojure.core$eval.invoke(core.clj:2370)
at clojure.main$eval_opt.invoke(main.clj:235)
at clojure.main$initialize.invoke(main.clj:254)
at clojure.main$script_opt.invoke(main.clj:270)
at clojure.main$main.doInvoke(main.clj:354)
at clojure.lang.RestFn.invoke(RestFn.java:458)
View gist:463782
$ lein pom && mvn dependency:tree
Wrote pom.xml
[INFO] Scanning for projects...
[INFO] Searching repository for plugin with prefix: 'dependency'.
[INFO] org.apache.maven.plugins: checking for updates from central
[INFO] org.codehaus.mojo: checking for updates from central
Downloading: http://repo1.maven.org/maven2/org/apache/maven/plugins/maven-dependency-plugin/2.0/maven-dependency-plugin-2.0.pom
Downloading: http://repo1.maven.org/maven2/org/apache/maven/plugins/maven-plugins/10/maven-plugins-10.pom
View gist:463785
$ lein pom && mvn dependency:tree
Wrote pom.xml
[INFO] Scanning for projects...
[INFO] Searching repository for plugin with prefix: 'dependency'.
[INFO] ------------------------------------------------------------------------
[INFO] Building jME
[INFO] task-segment: [dependency:tree]
[INFO] ------------------------------------------------------------------------
[INFO] [dependency:tree {execution: default-cli}]
[INFO] jME:jME:jar:1.0.0-SNAPSHOT
@taoeffect
taoeffect / gist:5479568
Last active Dec 16, 2015
creates an extruded pentagon VBO with indexing and VAO
View gist:5479568
void CreatePentagon() {
float step = 2.0*M_PI/5, t=0;
Vertex Vertices[7+7+12];
// pentagon[0] = vec3(0);
// bottom
vec4 color(1,0,0,1);
Vertices[0].normal = vec3(0,-1,0);
Vertices[0].color = color;
for (int i=1; i<7; i++, t-=step) {
Vertices[i].pos = vec3(cosf(t),0,sinf(t));
You can’t perform that action at this time.