This file contains 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
twitter.com##div[aria-label="Trending"] | |
twitter.com##aside[aria-label="Who to follow"] | |
twitter.com##a[aria-label="Search and explore"] | |
twitter.com##svg[aria-label="Verified account"] | |
twitter.com##a[aria-label="Communities"] | |
twitter.com##a[aria-label="Verified Orgs"] | |
twitter.com##a[aria-label="Top Articles"] | |
twitter.com##a[aria-label^="Notifications"] | |
! 2023-09-05 https://twitter.com |
This file contains 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
# | |
# read/write access to python's memory, using a custom bytearray. | |
# some code taken from: http://tinyurl.com/q7duzxj | |
# | |
# tested on: | |
# Python 2.7.10, ubuntu 32bit | |
# Python 2.7.8, win32 | |
# | |
# example of correct output: | |
# inspecting int=0x41424344, at 0x0228f898 |
This file contains 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
// $ g++ -std=c++14 -pedantic -Wall -Wextra double-dispatch.cpp -o double-dispatch | |
// $ ./double-dispatch | |
// | |
// Also works under C++11. | |
#include <iostream> | |
#include <memory> | |
#if __cplusplus == 201103L | |
namespace std { |
This file contains 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
package main | |
import ( | |
"crypto/tls" | |
"crypto/x509" | |
"flag" | |
"io/ioutil" | |
"log" | |
"net/http" | |
) |
This file contains 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
/* | |
Constant-time integer comparisons | |
Written in 2014 by Samuel Neves <sneves@dei.uc.pt> | |
To the extent possible under law, the author(s) have dedicated all copyright | |
and related and neighboring rights to this software to the public domain | |
worldwide. This software is distributed without any warranty. | |
You should have received a copy of the CC0 Public Domain Dedication along with |
This file contains 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
extern mod syntax; | |
extern mod rustc; | |
pub use syntax::ast; | |
pub use rustc::middle::ty; | |
pub use rustc::middle::ty::t; | |
fn cpp_arg_mangle(arg: t) -> ~str { | |
let arg = ty::get(arg); | |
match arg.sty { |
This file contains 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
function LoginHash(string password, byte[] salt, int memSize, int queryCount, int maxParallelism) | |
return KDF(password, salt, memSize, queryCount, maxParallelism, "LoginVerification", 16) | |
function KDF(string password, byte[] salt, int memSize, int queryCount, int maxParallelism, string info, int outputSize) | |
masterKey = ComputeMasterKey(password, salt, memSize, queryCount, maxParallelism) | |
return HKDF-Expand(masterKey, info, outputSize) // For short outputs this is simply HMAC-SHA-256(masterKey, info || 0x01).Truncate(outputSize) | |
function ComputeMasterKey(string password, byte[] salt, int memSize, int queryCount, int maxParallelism) | |
requires memSize mod 16 = 0 | |
requires memSize > 0 |