This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| #!/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 |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| 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()) | |
| ); |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| 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" |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| import java.lang.reflect.Method; | |
| import java.util.Arrays; | |
| public class Bytecodes { | |
| static { | |
| System.loadLibrary("bytecodes"); | |
| } | |
| private static native byte[] getBytecodes(Method method); |
NewerOlder