Or, yet more evidence that you should use feature detection instead of browser/user agent sniffing.
- Unprefixed CSS
transform. Should require-ms-transformbut doesn’t require it.
| #!/bin/bash | |
| ### BEGIN INIT INFO | |
| # Provides: kibana | |
| # Required-Start: $remote_fs $syslog | |
| # Required-Stop: $remote_fs $syslog | |
| # Default-Start: 2 3 4 5 | |
| # Default-Stop: 0 1 6 | |
| # Short-Description: Make sense of a mountain of logs. | |
| ### END INIT INFO |
stopBefore(document, 'getElementById')
stopBefore('document.getElementById') // the same as the previous
stopBefore(Element.prototype, 'removeChild')| app = angular.module('angularjs-starter', []) | |
| app.controller 'MainCtrl', ($scope) -> | |
| $scope.name = 'World' | |
| angular.bootstrap(document, ['angularjs-starter']) |
| # Do not refactor, it is a bad practice. YOLO | |
| # Not understanding why or how something works is always good. YOLO | |
| # Do not ever test your code yourself, just ask. YOLO | |
| # No one is going to read your code, at any point don't comment. YOLO | |
| # Why do it the easy way when you can reinvent the wheel? Future-proofing is for pussies. YOLO |
| gifify() { | |
| if [[ -n "$1" ]]; then | |
| if [[ $2 == '--good' ]]; then | |
| ffmpeg -i $1 -r 10 -vcodec png out-static-%05d.png | |
| time convert -verbose +dither -layers Optimize -resize 600x600\> out-static*.png GIF:- | gifsicle --colors 128 --delay=5 --loop --optimize=3 --multifile - > $1.gif | |
| rm out-static*.png | |
| else | |
| ffmpeg -i $1 -s 600x400 -pix_fmt rgb24 -r 10 -f gif - | gifsicle --optimize=3 --delay=3 > $1.gif | |
| fi | |
| else |
| # force HTTP to HTTPS - /etc/nginx/conf.d/nonssl.conf | |
| server { | |
| listen 80; | |
| server_name jira.example.com; | |
| access_log off; | |
| return 301 https://$server_name$request_uri; | |
| } | |
| # /etc/nginx/conf.d/jira.conf | |
| server { |
| var async = require('async'); | |
| var ProgressBar = require('progress'); | |
| var monk = require('monk'); | |
| var ObjectId=require('mongodb').ObjectID; | |
| var dest = monk('localhost:27017/storify_localhost'); | |
| var backup = monk('localhost:27017/storify_backup'); | |
| var userId = ObjectId(YOUR-OBJECT-ID); // monk should have auto casting but we need it for queries |
| from area53 import route53 | |
| from boto.route53.exception import DNSServerError | |
| import requests | |
| import sys | |
| from datetime import datetime | |
| # Modified from https://markcaudill.me/blog/2012/07/dynamic-route53-dns-updating-with-python/ | |
| domain = 'domain.tld' | |
| subdomain = 'subdomain_name' |