Skip to content

Instantly share code, notes, and snippets.

View CodeIter's full-sized avatar
🍊
Welcome

Muhammad Amin Boubaker CodeIter

🍊
Welcome
View GitHub Profile
@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:
----------------------------------------
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">

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
@Changaco
Changaco / btrfs-undelete
Last active September 13, 2025 07:45
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
@oanhnn
oanhnn / using-multiple-github-accounts-with-ssh-keys.md
Last active October 20, 2025 02:36
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.
@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
@joshbuchea
joshbuchea / semantic-commit-messages.md
Last active October 19, 2025 14:21
Semantic Commit Messages

Semantic Commit Messages

See how a minor change to your commit message style can make you a better programmer.

Format: <type>(<scope>): <subject>

<scope> is optional

Example

@hagemann
hagemann / slugify.js
Last active September 4, 2024 02:45
Slugify makes a string URI-friendly
function slugify(string) {
const a = 'àáâäæãåāăąçćčđďèéêëēėęěğǵḧîïíīįìıİłḿñńǹňôöòóœøōõőṕŕřßśšşșťțûüùúūǘůűųẃẍÿýžźż·/_,:;'
const b = 'aaaaaaaaaacccddeeeeeeeegghiiiiiiiilmnnnnoooooooooprrsssssttuuuuuuuuuwxyyzzz------'
const p = new RegExp(a.split('').join('|'), 'g')
return string.toString().toLowerCase()
.replace(/\s+/g, '-') // Replace spaces with -
.replace(p, c => b.charAt(a.indexOf(c))) // Replace special characters
.replace(/&/g, '-and-') // Replace & with 'and'
.replace(/[^\w\-]+/g, '') // Remove all non-word characters
@AndresReyesDev
AndresReyesDev / chromeflagstweaks.md
Created May 22, 2018 05:29 — forked from Madis0/chromeflagstweaks.md
Useful Chrome chrome://flags tweaks

Useful Chrome chrome://flags tweaks (Also for Firefox)

A list of tweaks in Chrome (Chromium) that enable hidden or upcoming features and are not editable from the main settings page.

Since I don't follow the tweaks by bugs, I am not always sure, what version of Chromium actually shows them. Therefore, I recommend using at least Beta version of the browser, if not Dev or Canary.

How to enable

  1. Open chrome://flags (browser://flags on Yandex, vivaldi://flags on Vivaldi, etc.)
  2. Search for the hashtag title
  3. Set the recommended setting
@ckolumbus
ckolumbus / BrowserSelect_Example.reg
Created June 24, 2019 07:47
How to register portable browsers for use withy https://github.com/zumoshi/BrowserSelect
REGEDIT4
[HKEY_LOCAL_MACHINE\SOFTWARE\Clients\StartMenuInternet\FirefoxPortable.exe]
[HKEY_LOCAL_MACHINE\SOFTWARE\Clients\StartMenuInternet\FirefoxPortable.exe\shell]
[HKEY_LOCAL_MACHINE\SOFTWARE\Clients\StartMenuInternet\FirefoxPortable.exe\shell\open]
[HKEY_LOCAL_MACHINE\SOFTWARE\Clients\StartMenuInternet\FirefoxPortable.exe\shell\open\command]
@="C:\\PortableApps\\FirefoxPortable\\FirefoxPortable.exe"