Skip to content

Instantly share code, notes, and snippets.

Avatar
🏴‍☠️
Why?

Rojen Zaman rojenzaman

🏴‍☠️
Why?
  • Anarchism
  • Istanbul, Turkey
  • 15:38 (UTC +03:00)
View GitHub Profile
@oofnikj
oofnikj / answerfile
Last active March 19, 2023 15:37
Install Docker on Termux
View answerfile
KEYMAPOPTS="us us"
HOSTNAMEOPTS="-n alpine"
INTERFACESOPTS="auto lo
iface lo inet loopback
auto eth0
iface eth0 inet dhcp
hostname alpine
"
TIMEZONEOPTS="-z UTC"
@aymericbeaumet
aymericbeaumet / delete-likes-from-twitter.md
Last active March 18, 2023 07:58
[Recipe] Delete all your likes/favorites from Twitter
View delete-likes-from-twitter.md

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()
 }
@FMCorz
FMCorz / README.md
Created November 27, 2018 03:13
Adminer with SQLite no-login
View README.md

Adminer setup

Enables plugins, and SQLite no-login.

Instructions

  1. Copy index.php to a new directory
  2. Download Adminer to adminer.php
@jaytaylor
jaytaylor / ._README.md
Last active February 7, 2023 19:29
URL Encoding in pure bash / sed.
@samdutton
samdutton / sample.vtt
Created February 2, 2018 01:52
Sample WebVTT caption file
View sample.vtt
WEBVTT
00:00:00.500 --> 00:00:02.000
The Web is always changing
00:00:02.500 --> 00:00:04.300
and the way we access it is changing
View git-fetch-upstream-tags
Let [tag] = any tag in upstream repo
git fetch upstream --tags
git push origin --tags
@spalladino
spalladino / mysql-docker.sh
Created December 22, 2015 13:47
Backup and restore a mysql database from a running Docker mysql container
View mysql-docker.sh
# Backup
docker exec CONTAINER /usr/bin/mysqldump -u root --password=root DATABASE > backup.sql
# Restore
cat backup.sql | docker exec -i CONTAINER /usr/bin/mysql -u root --password=root DATABASE
View gist:3b19447b304616f18657
var mediaJSON = { "categories" : [ { "name" : "Movies",
"videos" : [
{ "description" : "Big Buck Bunny tells the story of a giant rabbit with a heart bigger than himself. When one sunny day three rodents rudely harass him, something snaps... and the rabbit ain't no bunny anymore! In the typical cartoon tradition he prepares the nasty rodents a comical revenge.\n\nLicensed under the Creative Commons Attribution license\nhttp://www.bigbuckbunny.org",
"sources" : [ "http://commondatastorage.googleapis.com/gtv-videos-bucket/sample/BigBuckBunny.mp4" ],
"subtitle" : "By Blender Foundation",
"thumb" : "images/BigBuckBunny.jpg",
"title" : "Big Buck Bunny"
},
{ "description" : "The first Blender Open Movie from 2006",
"sources" : [ "http://commondatastorage.googleapis.com/gtv-videos-bucket/sample/ElephantsDream.mp4" ],
@pascalpoitras
pascalpoitras / myweechat.md
Last active March 6, 2023 17:58
My always up-to-date WeeChat configuration (weechat-dev)
View myweechat.md

WeeChat Screenshot

You need at least WeeChat 3.8-dev

Enable mouse

/mouse enable

Secured data