Skip to content

Instantly share code, notes, and snippets.

View CodeIter's full-sized avatar
🍊
Welcome

Muhammad Amin Boubaker CodeIter

🍊
Welcome
View GitHub Profile
@Dalet
Dalet / twitchhtml5.user.js
Last active September 10, 2021 22:12
Twitch HTML5 player userscript
// ==UserScript==
// @name Twitch HTML5 player
// @namespace Revolution
// @include http://*.twitch.tv/*
// @exclude http://api.twitch.tv/*
// @exclude http://tmi.twitch.tv/*
// @exclude http://chatdepot.twitch.tv/*
// @require https://gist.githubusercontent.com/BrockA/2625891/raw/9c97aa67ff9c5d56be34a55ad6c18a314e5eb548/waitForKeyElements.js
// @version 1
// @grant none
@oanhnn
oanhnn / using-multiple-github-accounts-with-ssh-keys.md
Last active April 24, 2025 12:52
Using multiple github accounts with ssh keys

Problem

I have two Github accounts: oanhnn (personal) and superman (for work). I want to use both accounts on same computer (without typing password everytime, when doing git push or pull).

Solution

Use ssh keys and define host aliases in ssh config file (each alias for an account).

How to?

  1. Generate ssh key pairs for accounts and add them to GitHub accounts.
@Changaco
Changaco / btrfs-undelete
Last active April 11, 2025 15:08
btrfs-undelete
#!/bin/bash
# btrfs-undelete
# Copyright (C) 2013 Jörg Walter <[email protected]>
# This program is free software; you can redistribute it and/or modify it under
# the term of the GNU General Public License as published by the Free Software
# Foundation; either version 2 of the License, or any later version.
if [ ! -b "$1" -o -z "$2" -o -z "$3" ]; then
echo "Usage: $0 <dev> <file/dir> <dest>" 1>&2
echo

Contributing

When contributing to this repository, please first discuss the change you wish to make via issue, email, or any other method with the owners of this repository before making a change.

Please note we have a code of conduct, please follow it in all your interactions with the project.

Pull Request Process

  1. Ensure any install or build dependencies are removed before the end of the layer when doing a
anonymous
anonymous / index.html
Created May 20, 2015 19:17
JS Bin // source http://jsbin.com/qulurapewu
<!DOCTYPE html>
<html>
<head>
<script src="https://code.jquery.com/jquery-git.js"></script>
<meta charset="utf-8">
<title>JS Bin</title>
</head>
<body>
<div></div><div><div></div><div></div><div></div><div></div><div></div><div></div><div class='fff'></div></div><div></div><div></div><div></div>
<script id="jsbin-javascript">
@swarminglogic
swarminglogic / subtlemark.sh
Last active December 1, 2015 21:53
Subtlemark: Tool for adding subtle watermarks to images. Parameter customization: position (TL,TC,TR,BL,BC,BR), font, font-size, caption, textcolor, bgcolor. Also supports predefined styles.
#!/bin/bash
version=0.1.4
versionDate="2014-09-02"
function showHelp() {
echo "subtlemark - add subtle watermarks to images
Usage:
----------------------------------------
@tborychowski
tborychowski / user-location.js
Created August 22, 2014 12:56
JS :: user location
$.ajax({ url: '//www.google.com/jsapi', dataType: 'script' }).done(function () {
var addr = google.loader.ClientLocation.address;
console.log(addr);
});
$.getJSON('//freegeoip.net/json/', function(location) {
console.log(location);
});
@swarminglogic
swarminglogic / userpass.sh
Last active December 1, 2015 21:52
Command-line utility to manage passwords, protected by sudo
#!/bin/bash
file=/home/$SUDO_USER/.local/share/userpass.list
function showHelp {
version=0.0.2
versionDate="2014-06-24"
echo "$0 - manage passwords
@alyssaq
alyssaq / index.html
Last active September 3, 2024 20:59
HTML5 skeleton template
<!DOCTYPE HTML>
<html>
<head>
<meta charset="utf-8" />
<title>App</title>
<meta name="viewport" content="width=device-width, initial-scale=1" />
<script charset="utf-8" src="js/app.js"></script>
<link rel="stylesheet" href="css/app.css" />
</head>
<body>
@mwurzberger
mwurzberger / GoogleRedirectRemover.user.js
Last active December 13, 2017 20:01
Userscript - Google Redirect Remover
// ==UserScript==//
// @name Google Redirect Remover
// @namespace https://gist.github.com/mwurzberger/ab83f6f005afce59bb41
// @description Stop google links from using their tracking redirect
// @version 1.0.0
// @require http://ajax.googleapis.com/ajax/libs/jquery/1.11.0/jquery.min.js
// @include http://*.google.com/*
// @include https://*.google.com/*
// ==/UserScript==