I hereby claim:
- I am mattalp on github.
- I am matthewalp (https://keybase.io/matthewalp) on keybase.
- I have a public key ASCZssS191-9Ia9fvqfy_jqNtnogA3kmESM8UayF2Ldc_Qo
To claim this, I am signing this object:
| import java.lang.reflect.Method; | |
| import java.util.Arrays; | |
| public class Bytecodes { | |
| static { | |
| System.loadLibrary("bytecodes"); | |
| } | |
| private static native byte[] getBytecodes(Method method); |
| def fetch_srt(song_name,video_id): | |
| #preparing the first parameter | |
| res = 'A'.join(str(ord(c)+13) for c in video_id) | |
| res = res+"A" | |
| #fake request to get the current cookie | |
| opener = urllib2.build_opener() | |
| session = requests.session() | |
| url="https://extension.musixmatch.com" |
| Hello. | |
| I'm available at: | |
| (last name)(full first name)@gmail.com. |
| CREATE TABLE forums.banned_users | |
| ( | |
| banned_user_id integer PRIMARY KEY REFERENCES account.users, | |
| banned_by integer REFERENCES account.users, | |
| reason text, | |
| browser text, | |
| ip_address text, | |
| user_agent text, | |
| audit_ts TIMESTAMP WITH TIME ZONE NOT NULL DEFAULT(NOW()) | |
| ); |
I hereby claim:
To claim this, I am signing this object:
| import macros | |
| macro namedFor(label: string, counter: string, loop_range: untyped, body: untyped): untyped = | |
| result = newStmtList() | |
| let | |
| loopStmt = newTree(nnkForStmt, newIdentNode(counter.strVal), loop_range, body) | |
| labelBlock = newTree(nnkBlockStmt, newIdentNode(label.strVal), loopStmt) | |
| result.add(labelBlock) | |
| macro namedWhile(label: string, condition: untyped, body: untyped): untyped = |
| template nfor(name:string, idx: untyped, loop_range: untyped, body:untyped): untyped = | |
| block `name`: | |
| for `idx`{.inject.} in `loop_range`: | |
| `body` | |
| nfor "outer", i, 0..5: | |
| nfor "inner", j, 0..5: | |
| echo i, j |
| #!/usr/bin/env python3 | |
| # let's say you have a C++ project in Nix that you want to work on with CLion so that the Nix dependencies are available | |
| # put this script in your project directory | |
| # then, in Settings -> Build, Execution, Deployment -> Toolchains set CMake to this script | |
| # if you need any extra nix-shell arguments, add them to the invocation at the bottom | |
| import os | |
| import sys | |
| import shlex |
| HotSpot Internals Wiki | |
| https://wiki.openjdk.java.net/display/HotSpot/Main | |
| High-level introduction to HotSpot | |
| https://www.infoq.com/articles/Introduction-to-HotSpot | |
| Jvm-Mechanics https://github.com/dougqh/jvm-mechanics.git | |
| Open Heart Surgery: Analyzing and Debugging the Java HotSpot VM at the OS Level (by Volker Simonis, JavaOne 2014) | |
| https://www.youtube.com/watch?v=k7IX_diKCEo |
| import java.io.*; | |
| import java.util.*; | |
| import sun.jvm.hotspot.memory.*; | |
| import sun.jvm.hotspot.oops.*; | |
| import sun.jvm.hotspot.debugger.*; | |
| import sun.jvm.hotspot.runtime.*; | |
| import sun.jvm.hotspot.tools.*; | |
| import sun.jvm.hotspot.utilities.*; | |
| public class DirectMemorySize extends Tool { |