git init
or
| // ==UserScript== | |
| // @name YouTube global shortcuts | |
| // @namespace https://gist.github.com/stefansundin/ | |
| // @homepage https://gist.github.com/stefansundin/65e3d6db697636d8e7f1 | |
| // @downloadURL https://gist.github.com/stefansundin/65e3d6db697636d8e7f1/raw/youtube-global-shortcuts.user.js | |
| // @version 1.1 | |
| // @author Stefan Sundin | |
| // @description Makes the YouTube shortcuts work even if the player is not focused. | |
| // @icon https://www.youtube.com/favicon.ico | |
| // @match https://www.youtube.com/* |
| server { | |
| listen 443 ssl; | |
| server_name xxx.xx.io | |
| ssl on; | |
| ssl_certificate /etc/asterisk/certs/xxx.io.pem; | |
| ssl_certificate_key /etc/asterisk/certs/xxx.io.key; | |
| ssl_session_timeout 5m; |
| var attempts = 1; | |
| function createWebSocket () { | |
| var connection = new WebSocket(); | |
| connection.onopen = function () { | |
| // reset the tries back to 1 since we have a new connection opened. | |
| attempts = 1; | |
| // ...Your app's logic... |
THIS GIST WAS MOVED TO TERMSTANDARD/COLORS REPOSITORY.
PLEASE ASK YOUR QUESTIONS OR ADD ANY SUGGESTIONS AS A REPOSITORY ISSUES OR PULL REQUESTS INSTEAD!
| <style> | |
| * { margin:0; padding:0; } | |
| body { margin:10px; } | |
| dl { border:1px solid #eaeaea; padding:10px; margin-bottom:10px; } | |
| /* dl > * { margin-left:10px; } */ | |
| dl h3 { | |
| background:#f6f6f6; | |
| padding:5px; | |
| border:1px solid #eaeaea; | |
| border-bottom:none; |
| Windows Registry Editor Version 5.00 | |
| ; Default color scheme | |
| ; for Windows command prompt. | |
| ; Values stored as 00-BB-GG-RR | |
| [HKEY_CURRENT_USER\Console] | |
| ; BLACK DGRAY | |
| "ColorTable00"=dword:00000000 | |
| "ColorTable08"=dword:00808080 | |
| ; BLUE LBLUE |
cd2 is a tiny handy tool for working with multiple console windows at a time. When called, it displays a list of all working directories of your running terminals and lets you choose one by simply entering a number. If you enter nothing it takes you to the last entry listed which makes a good default behavior. This way, when you open a new terminal window and type cd2 and press enter twice you can continue in the same wd as your other bash.
To install for your user simply run:
| 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 | |
| } |
| // early experiments with node had mysterious double requests | |
| // turned out these were for the stoopid favicon | |
| // here's how to short-circuit those requests | |
| // and stop seeing 404 errors in your client console | |
| var http = require('http'); | |
| http.createServer(function (q, r) { | |
| // control for favicon |