A tweet-sized debugger for visualizing your CSS layouts. Outlines every DOM element on your page a random (valid) CSS hex color.
One-line version to paste in your DevTools
Use $$ if your browser aliases it:
~ 108 byte version
| // ==UserScript== | |
| // @name Steam Queue Auto Discoverer | |
| // @description Discover the Steam queue three times to get the sale cards | |
| // @version 2.3.0 | |
| // @namespace https://gist.github.com/xPaw/73f8ae2031b4e528abf7 | |
| // @icon https://store.steampowered.com/favicon.ico | |
| // @match https://store.steampowered.com/explore* | |
| // @grant none | |
| // ==/UserScript== |
| //* http://gasolicious.com/remove-tabs-keep-product-description-woocommerce/ | |
| // Location: add to functions.php | |
| // Output: removes woocommerce tabs | |
| remove_action( 'woocommerce_after_single_product_summary', 'woocommerce_output_product_data_tabs', 10 ); |
| #!/bin/sh | |
| # Config for SSL. | |
| echo "--- Making SSL Directory ---" | |
| mkdir /etc/nginx/ssl | |
| echo "--- Copying $i SSL crt and key ---" | |
| openssl req -nodes -new -x509 -keyout /etc/nginx/ssl/server.key -out /etc/nginx/ssl/server.crt -subj "/C=US/ST=NY/L=NYC/O=Dis/CN=www.example.com" | |
| echo "--- Turning SSL on in nginx.conf. ---" |
| var mandrillApiKey; | |
| var path = 'https://mandrillapp.com/api/1.0/messages/'; | |
| exports.initialize = function(apiKey) { | |
| mandrillApiKey = apiKey; | |
| }; | |
| exports.sendMail = function(params, options){ | |
| callMandrill('send.json', params, options); | |
| }; |
| var express = require('express'), | |
| auth = require('http-auth'); | |
| // Configure basic auth | |
| var basic = auth.basic({ | |
| realm: 'SUPER SECRET STUFF' | |
| }, function(username, password, callback) { | |
| callback(username == 'admin' && password == 'f00lpr00f'); | |
| }); |
| # ----------------------------------------------------------------- | |
| # .gitignore for WordPress | |
| # Bare Minimum Git | |
| # http://ironco.de/bare-minimum-git/ | |
| # ver 20150227 | |
| # | |
| # This file is tailored for a WordPress project | |
| # using the default directory structure | |
| # | |
| # This file specifies intentionally untracked files to ignore |
| Record Auto semicolon macro and bind shortcut to it: | |
| 1. Edit -> Macros -> Start Macro Recording | |
| 2. In the editor go to the end of line by pressing End | |
| 3. put semicolon ';' | |
| 4. Edit -> Macros -> Stop Macro Recording | |
| 5. Give a name, for example 'Auto semicolon' | |
| 6. Open settings (Ctrl + Alt + s), select Keymap | |
| 7. Expand Macros node | |
| 8. Select 'Auto semicolon', in the context menu choose Add Keyboard Shortcut | |
| 9. Set Ctrl + ; as First keystroke |
| <?php | |
| /** | |
| * Retrieves a template part and caches the output to speed up site | |
| * NOTE: Because we are caching display of posts, we need to make sure to delete the transients when posts are updated or published that might affect these template parts. | |
| * | |
| * Uses this function in conjunction with the WP cache: http://codex.wordpress.org/Function_Reference/get_template_part | |
| * | |
| * @param $slug (string) (required) The slug name for the generic template. | |
| * @param $name (string) (optional) The name of the specialized template. | |
| * @return (string) HTML output of the template part. |
| NOTE: Easier way is the X86 way, described on https://www.genymotion.com/help/desktop/faq/#google-play-services | |
| Download the following ZIPs: | |
| ARM Translation Installer v1.1 (http://www.mirrorcreator.com/files/0ZIO8PME/Genymotion-ARM-Translation_v1.1.zip_links) | |
| Download the correct GApps for your Android version: | |
| Google Apps for Android 6.0 (https://www.androidfilehost.com/?fid=24052804347835438 - benzo-gapps-M-20151011-signed-chroma-r3.zip) | |
| Google Apps for Android 5.1 (https://www.androidfilehost.com/?fid=96042739161891406 - gapps-L-4-21-15.zip) | |
| Google Apps for Android 5.0 (https://www.androidfilehost.com/?fid=95784891001614559 - gapps-lp-20141109-signed.zip) |