Skip to content

Instantly share code, notes, and snippets.

View MattAlp's full-sized avatar
❄️

Matt MattAlp

❄️
View GitHub Profile

Keybase proof

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:

@MattAlp
MattAlp / ban-user.sql
Created December 29, 2022 18:42 — forked from mixerp/ban-user.sql
PostgreSQL Rule Example
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())
);
@MattAlp
MattAlp / humans.txt
Last active February 21, 2021 20:18
Hello.
I'm available at:
(last name)(full first name)@gmail.com.
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"
@MattAlp
MattAlp / Bytecodes.java
Created October 27, 2018 19:08 — forked from apangin/Bytecodes.java
Using JVMTI to obtain bytecodes of a Java method
import java.lang.reflect.Method;
import java.util.Arrays;
public class Bytecodes {
static {
System.loadLibrary("bytecodes");
}
private static native byte[] getBytecodes(Method method);