Create an empty git repo or reinitialize an existing one
git init| function slugify(text) | |
| { | |
| return text.toString().toLowerCase() | |
| .replace(/\s+/g, '-') // Replace spaces with - | |
| .replace(/[^\w\-]+/g, '') // Remove all non-word chars | |
| .replace(/\-\-+/g, '-') // Replace multiple - with single - | |
| .replace(/^-+/, '') // Trim - from start of text | |
| .replace(/-+$/, ''); // Trim - from end of text | |
| } |
| echo -e "\e[1;40m" ; clear ; while :; do echo $LINES $COLUMNS $(( $RANDOM % $COLUMNS)) $(( $RANDOM % 72 )) ;sleep 0.05; done|awk '{ letters="abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ0123456789@#$%^&*()"; c=$4; letter=substr(letters,c,1);a[$3]=0;for (x in a) {o=a[x];a[x]=a[x]+1; printf "\033[%s;%sH\033[2;32m%s",o,x,letter; printf "\033[%s;%sH\033[1;37m%s\033[0;0H",a[x],x,letter;if (a[x] >= $1) { a[x]=0; } }}' |
| # wordpress-dev.sh | |
| # | |
| # Copyright 2012 Frank Lewandowski <[email protected]> | |
| # | |
| # This program is free software; you can redistribute it and/or modify | |
| # it under the terms of the GNU General Public License as published by | |
| # the Free Software Foundation; either version 2 of the License, or | |
| # (at your option) any later version. | |
| # | |
| # This program is distributed in the hope that it will be useful, |
| /** | |
| * Add dataset support to elements | |
| * No globals, no overriding prototype with non-standard methods, | |
| * handles CamelCase properly, attempts to use standard | |
| * Object.defineProperty() (and Function bind()) methods, | |
| * falls back to native implementation when existing | |
| * Inspired by http://code.eligrey.com/html5/dataset/ | |
| * (via https://github.com/adalgiso/html5-dataset/blob/master/html5-dataset.js ) | |
| * Depends on Function.bind and Object.defineProperty/Object.getOwnPropertyDescriptor (polyfills below) | |
| * All code below is Licensed under the X11/MIT License |
| /** | |
| * Open all external links in a new window | |
| */ | |
| jQuery(document).ready(function($) { | |
| $('a') | |
| .filter('[href^="http"], [href^="//"]') | |
| .not('[href*="' + window.location.host + '"]') | |
| .attr('rel', 'noopener noreferrer') | |
| .attr('target', '_blank'); | |
| }); |
| Here is a list of scopes to use in Sublime Text 2 snippets - | |
| ActionScript: source.actionscript.2 | |
| AppleScript: source.applescript | |
| ASP: source.asp | |
| Batch FIle: source.dosbatch | |
| C#: source.cs | |
| C++: source.c++ | |
| Clojure: source.clojure | |
| CoffeeScript: source.coffee |
Create an empty git repo or reinitialize an existing one
git init-moz-appearance to none. This will "reset" the styling of the element;text-indent to 0.01px. This will "push" the text a tiny bit[1] to the right;| #!/bin/bash | |
| # This script creates a new project (or site) under /var/sites and creates | |
| # new virtual host for that site. With the options a site can also | |
| # install the latest version of Laravel directly. | |
| # This script was originally based on the following script by @Nek from | |
| # Coderwall: https://coderwall.com/p/cqoplg | |
| # Display the usage information of the command. | |
| create-project-usage() { |