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()
 }
@qmx
qmx / README.md
Last active August 29, 2015 14:02 — forked from mbostock/.block

DynJS perf numbers

@qmx
qmx / .gitignore
Created February 16, 2013 03:19 — forked from raggi/.gitignore
specs.4.8
prerelease_specs.4.8
versions.list
names.list
specs
deps
gems
@qmx
qmx / apt-init.pp
Created December 23, 2012 21:44 — forked from fnando/apt-init.pp
class apt-get::update {
exec { "apt-get update":
command => "apt-get update"
}
}
@qmx
qmx / gist:4078919
Created November 15, 2012 14:35 — forked from matzew/gist:4078909
URL rootUrlServerOne = new URL("http://foooo.rhcloud.com/todo-server");
URL rootUrlServerTwo = new URL("http://baaaaarrrr.rhcloud.com/todo-server");
Pipeline pipeline = new Pipeline(rootUrlServerOne);
PipeConfig<Project> config1 = new PipeConfig<Project>(Project.class);
PipeConfig<Task> config2 = new PipeConfig<Task>(rootUrlServerTwo, Task.class);
Pipe<Project> projects = pipeline.pipe(config1);
Pipe<Task> taks = pipeline.pipe(config2);
@qmx
qmx / gist:3765407
Created September 22, 2012 07:00 — forked from briandealwis/gist:782862
One-liner to turn jar with Main-Class into executable shell script
# turn a jar with a Main-Class into a stand alone executable
(echo '#!/usr/bin/env java -jar'; cat blahblah.jar) > blah
# turn a jar with a particular main clas into a stand alone executable
(echo '#!/usr/bin/env java -jar package.MainClass'; cat blahblah.jar) > blah
public class Process extends DynObject {
public Process() {
}
public void setTitle(String title) {
this.title = title;
}
public String getTitle() {
# Option 1 or 2?
# 1
return @app.call(env) if @exclude && @exclude.call(env)
# 2
if @exclude && @exclude.call(env)
return @app.call(env)
end
@qmx
qmx / error
Created February 23, 2012 15:23 — forked from owenthereal/error
error when installing posix-spawn gem with JRuby 1.6.7
Installing posix-spawn (0.3.6) with native extensions
Gem::Installer::ExtensionBuildError: ERROR: Failed to build gem native extension.
/Users/Owen/.rvm/rubies/jruby-1.6.7/bin/jruby extconf.rb
WARNING: JRuby does not support native extensions or the `mkmf' library very well.
Check http://kenai.com/projects/jruby/pages/Home for alternatives.
creating Makefile
make
cc -I. -I/Users/Owen/.rvm/rubies/jruby-1.6.7/lib/native/include -I/Users/Owen/.rvm/rubies/jruby-1.6.7/lib/native/include/ruby -I. -D_XOPEN_SOURCE -D_DARWIN_C_SOURCE -fPIC -DTARGET_RT_MAC_CFM=0 -fno-omit-frame-pointer -fno-strict-aliasing -fexceptions -Wall -arch i386 -c posix-spawn.c
@qmx
qmx / mersenne-twister.js
Created February 4, 2012 03:45 — forked from banksean/mersenne-twister.js
a Mersenne Twister implementation in javascript. Makes up for Math.random() not letting you specify a seed value.
/*
I've wrapped Makoto Matsumoto and Takuji Nishimura's code in a namespace
so it's better encapsulated. Now you can have multiple random number generators
and they won't stomp all over eachother's state.
If you want to use this as a substitute for Math.random(), use the random()
method like so:
var m = new MersenneTwister();