Skip to content

Instantly share code, notes, and snippets.

View rojenzaman's full-sized avatar

Rojen Zaman rojenzaman

  • localhost
  • Istanbul, Turkey
  • 00:16 (UTC +03:00)
View GitHub Profile
mac641 /
Last active February 1, 2024 14:23 — forked from noonat/
Installing Fedora CoreOS on VirtualBox on Windows 10
  • Download and install VirtualBox.
  • Download the Fedora CoreOS ISO
  • Create a new VM in VirtualBox
    • For the OS, Other Linux, 64-bit should be fine
    • Give the VM at least 2GB (depending on your physical memory).
    • Create a disk of whatever size you want. I made a VMDK file that could expand dynamically up to 50GB.
  • Mount the ISO in the VM
    • Right click on the VM and click settings
  • Go to the Storage tab
oofnikj / answerfile
Last active April 20, 2024 02:44
Install Docker on Termux
HOSTNAMEOPTS="-n alpine"
iface lo inet loopback
auto eth0
iface eth0 inet dhcp
hostname alpine
aymericbeaumet /
Last active April 19, 2024 23:43
[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:{username}/likes
  2. Open the console and run the following JavaScript code:
setInterval(() => {
  for (const d of document.querySelectorAll('div[data-testid="unlike"]')) {
FMCorz /
Created November 27, 2018 03:13
Adminer with SQLite no-login

Adminer setup

Enables plugins, and SQLite no-login.


  1. Copy index.php to a new directory
  2. Download Adminer to adminer.php
jaytaylor /
Last active March 4, 2024 23:39
URL Encoding in pure bash / sed.
eddiewebb /
Last active February 12, 2024 08:46
Hugo JS Searching with Fuse.js
samdutton / sample.vtt
Created February 2, 2018 01:52
Sample WebVTT caption file
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
Let [tag] = any tag in upstream repo
git fetch upstream --tags
git push origin --tags
spalladino /
Created December 22, 2015 13:47
Backup and restore a mysql database from a running Docker mysql container
# 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
bjmiller121 /
Last active March 4, 2024 05:47
Add multiple push URLs to a single git remote

Sometimes you need to keep two upstreams in sync with eachother. For example, you might need to both push to your testing environment and your GitHub repo at the same time. In order to do this simultaneously in one git command, here's a little trick to add multiple push URLs to a single remote.

Once you have a remote set up for one of your upstreams, run these commands with:

git remote set-url --add --push [remote] [original repo URL]
git remote set-url --add --push [remote] [second repo URL]

Once set up, git remote -v should show two (push) URLs and one (fetch) URL. Something like this: