Skip to content

Instantly share code, notes, and snippets.

@qmx
qmx / delete-likes-from-twitter.md
Last active June 16, 2020 15:43 — forked from aymericbeaumet/delete-likes-from-twitter.md
[Recipe] Delete all your likes/favorites from Twitter

Ever wanted to delete all your likes/favorites from Twitter but only found broken/expensive tools? You are in the right place.

  1. Go to: https://twitter.com/{username}/likes
  2. Open the console and run the following JavaScript code:
setInterval(() => {
  for (const d of document.querySelectorAll('div[data-testid="unlike"]')) {
    d.click()
 }
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
diff --git a/PKGBUILD.old b/PKGBUILD
index 4c46ccf..69e3ce2 100644
--- a/PKGBUILD.old
+++ b/PKGBUILD
@@ -15,32 +15,30 @@ source=(
'http://acraiz.icpbrasil.gov.br/credenciadas/CertificadosAC-ICP-Brasil/ACcompactado.zip'
)
-sha512sums=(
- 'c2777e058734f5b70f6d9d9550cd36596e6002ecfefbe2836b495c640de133f55859339e0438ce76fcf70c3bc3221ae2204ce99608dcbe9561f9b13f237fb9c9'
@qmx
qmx / bench.log
Created December 15, 2014 15:27
ups bench
~/d/bench ❯❯❯ wrk -d 60 -s ups_bench.lua http://localhost:8080/ag-push/rest/registry/device
Running 1m test @ http://localhost:8080/ag-push/rest/registry/device
2 threads and 10 connections
Thread Stats Avg Stdev Max +/- Stdev
Latency 54.04ms 12.91ms 149.52ms 85.51%
Req/Sec 94.50 16.09 145.00 63.50%
11346 requests in 1.00m, 6.10MB read
Requests/sec: 189.06
Transfer/sec: 104.13KB
Compiling rust-mustache v0.3.0 (file:///Volumes/v2/git/rust-mustache)
/Volumes/v2/git/rust-mustache/src/encoder.rs:3:5: 3:21 error: import `IoError` conflicts with type in this module
/Volumes/v2/git/rust-mustache/src/encoder.rs:3 use std::io::IoError;
^~~~~~~~~~~~~~~~
/Volumes/v2/git/rust-mustache/src/encoder.rs:24:5: 24:21 note: note conflicting type here
/Volumes/v2/git/rust-mustache/src/encoder.rs:24 IoError(IoError),
^~~~~~~~~~~~~~~~
error: aborting due to previous error
Could not compile `rust-mustache`.
@qmx
qmx / README.md
Last active August 29, 2015 14:02 — forked from mbostock/.block

DynJS perf numbers

public static interface Pass {
Instruction[] apply(Instruction[] instrs);
}
/Library/Java/JavaVirtualMachines/jdk1.8.0.jdk/Contents/Home/bin/java -ea -Didea.launcher.port=7535 "-Didea.launcher.bin.path=/Applications/IntelliJ IDEA 13.app/bin" -Dfile.encoding=UTF-8 -classpath "/Applications/IntelliJ IDEA 13.app/lib/idea_rt.jar:/Applications/IntelliJ IDEA 13.app/plugins/junit/lib/junit-rt.jar:/Library/Java/JavaVirtualMachines/jdk1.8.0.jdk/Contents/Home/lib/ant-javafx.jar:/Library/Java/JavaVirtualMachines/jdk1.8.0.jdk/Contents/Home/lib/dt.jar:/Library/Java/JavaVirtualMachines/jdk1.8.0.jdk/Contents/Home/lib/javafx-mx.jar:/Library/Java/JavaVirtualMachines/jdk1.8.0.jdk/Contents/Home/lib/jconsole.jar:/Library/Java/JavaVirtualMachines/jdk1.8.0.jdk/Contents/Home/lib/sa-jdi.jar:/Library/Java/JavaVirtualMachines/jdk1.8.0.jdk/Contents/Home/lib/tools.jar:/Library/Java/JavaVirtualMachines/jdk1.8.0.jdk/Contents/Home/jre/lib/charsets.jar:/Library/Java/JavaVirtualMachines/jdk1.8.0.jdk/Contents/Home/jre/lib/deploy.jar:/Library/Java/JavaVirtualMachines/jdk1.8.0.jdk/Contents/Home/jre/lib/htmlconverter.ja
@qmx
qmx / Test.java
Last active August 29, 2015 13:57
@Test
public void testStackCleanup() {
DynObject e = (DynObject) (eval("function foo() { return new Error(); }; foo();"));
String stack = (String) e.get(getContext(), "stack");
System.out.println(stack);
assertThat(stack.split("\n").length).isEqualTo(4);
DynObject e2 = (DynObject) (eval("function baz() { return new Error(); }; baz();"));
String stack2 = (String) e2.get(getContext(), "stack");
System.out.println(stack2);
/V/v/g/dynjs git:classpath ❯❯❯ bin/dynjs --console ✭ ✱ ◼
dynjs console.
Type exit and press ENTER to leave.
dynjs> dynjs.classPath.push("/Users/qmx/dev/dynjs-0.2.2-SNAPSHOT/activemq-all-5.9.0.jar")
undefined
dynjs> org.apache.activemq.ActiveMQConnectionFactory.DEFAULT_BROKER_URL
failover://tcp://localhost:61616
dynjs> %