This is the sequence of steps to follow to create a root gh-pages branch. It is based on a question at [SO]
cd /path/to/repo-name
git symbolic-ref HEAD refs/heads/gh-pages
rm .git/index
git clean -fdx
echo "My GitHub Page" > index.html
| data: text/html, | |
| <html> | |
| <head> | |
| <title>Notepad</title> | |
| <link rel="icon" type="image/png" href="http://icons.iconarchive.com/icons/hopstarter/sleek-xp-software/256/Notepad-icon.png"> | |
| <script src="http://code.jquery.com/jquery-2.0.3.min.js"></script> | |
| <script type="text/javascript"> | |
| $(document).ready(function() { | |
| $('#text').bind('keyup', function() { | |
| var content = $(this).val(); |
| # delete local tag '12345' | |
| git tag -d 12345 | |
| # delete remote tag '12345' (eg, GitHub version too) | |
| git push origin :refs/tags/12345 | |
| # alternative approach | |
| git push --delete origin tagName | |
| git tag -d tagName |
| #!/bin/sh | |
| # | |
| # !!! IMPORTANT !!! | |
| # As of 2017-12-14, pacaur is unmaintained (https://bbs.archlinux.org/viewtopic.php?pid=1755144#p1755144) | |
| # For alternatives see the arch wiki: https://wiki.archlinux.org/index.php/AUR_helpers#Active | |
| # pacaur seems to get occasional updates to fix breaking changes due to pacman updates though. | |
| # | |
| # If you are new to arch, I encourage you to at least read and understand what | |
| # this script does befor blindley running it. | |
| # That's why I didn't make a one-liner out of it so you have an easier time |
To remove a submodule you need to:
| #!/usr/bin/env zsh | |
| # Initialize VPN | |
| sudo vpnns up | |
| sudo vpnns start_vpn | |
| # Popcorn time! | |
| sudo ip netns exec frootvpn sudo -u $USER popcorntime | |
| # Cleanup |
| #!/bin/sh | |
| PREREQ="dropbear" | |
| prereqs() { | |
| echo "$PREREQ" | |
| } | |
| case "$1" in | |
| prereqs) |
| #!/bin/bash | |
| # === INFO === | |
| # ForceVPN | |
| # Description: Force VPN tunnel for specific applications. | |
| # If the VPN is down => blackhole the app network traffic. | |
| # Better than a killswitch. IPv4. | |
| VERSION="2.3.0" | |
| # Author: KrisWebDev | |
| # Requirements: Linux with kernel > 2.6.4 (released in 2008). |
| CURRENCY_MAP = { | |
| '$': 'USD', | |
| '₽': 'RUB', // there is a missing character in editor font | |
| '€': 'EUR', | |
| '฿': 'THB' | |
| } | |
| function _formatToCurrency(formatString) { | |
| var currencyRegexp = /\[.*(.)\]/g; | |
| var currency = currencyRegexp.exec(formatString)[1]; |