THIS GIST WAS MOVED TO TERMSTANDARD/COLORS REPOSITORY.
PLEASE ASK YOUR QUESTIONS OR ADD ANY SUGGESTIONS AS A REPOSITORY ISSUES OR PULL REQUESTS INSTEAD!
| require 'net/http' | |
| require 'uri' | |
| namespace :airbrake do | |
| task :notify, except: {no_release: true} do | |
| api_key = API_KEY | |
| rails_env = fetch(:rails_env, "production") | |
| airbrake_env = fetch(:airbrake_env, fetch(:rails_env, "production")) | |
| local_user = ENV['USER'] || ENV['USERNAME'] |
| #!/usr/bin/env python | |
| import sys, os | |
| print(sys.version_info[:]) | |
| if sys.version_info[0] != 2: | |
| sys.argv.insert(0, "python2") | |
| os.execl("/usr/bin/env", "/usr/bin/env", *sys.argv) |
| (ns cheshire.experimental | |
| (:require [cheshire.core :refer :all] | |
| [clojure.java.io :refer :all]) | |
| (:import (java.io ByteArrayInputStream FilterInputStream | |
| SequenceInputStream))) | |
| (defn escaping-input-stream | |
| [is] | |
| (let [new-is (proxy [FilterInputStream] [is] | |
| (read |
| var https = require('https'); | |
| var gunzip = require('zlib').createGunzip(); | |
| var options = { | |
| host: 'api.stackexchange.com', | |
| path: '/2.1/info?site=stackoverflow' | |
| }; | |
| https.get(options, function(res) { | |
| var body = ''; |
| this is a sample of output: | |
| root@percona-db-2:~# iperf -s -u -B 226.94.1.1 -i 1 | |
| ------------------------------------------------------------ | |
| Server listening on UDP port 5001 | |
| Binding to local address 226.94.1.1 | |
| Joining multicast group 226.94.1.1 | |
| Receiving 1470 byte datagrams | |
| UDP buffer size: 122 KByte (default) | |
| ------------------------------------------------------------ |
| # Basically the nginx configuration I use at konklone.com. | |
| # I check it using https://www.ssllabs.com/ssltest/analyze.html?d=konklone.com | |
| # | |
| # To provide feedback, please tweet at @konklone or email eric@konklone.com. | |
| # Comments on gists don't notify the author. | |
| # | |
| # Thanks to WubTheCaptain (https://wubthecaptain.eu) for his help and ciphersuites. | |
| # Thanks to Ilya Grigorik (https://www.igvita.com) for constant inspiration. | |
| server { |
THIS GIST WAS MOVED TO TERMSTANDARD/COLORS REPOSITORY.
PLEASE ASK YOUR QUESTIONS OR ADD ANY SUGGESTIONS AS A REPOSITORY ISSUES OR PULL REQUESTS INSTEAD!
| - name: Install wget package (Debian based) | |
| action: apt pkg='wget' state=installed | |
| only_if: "'$ansible_pkg_mgr' == 'apt'" | |
| - name: Install wget package (RedHat based) | |
| action: yum name='wget' state=installed | |
| only_if: "'$ansible_pkg_mgr' == 'yum'" |
| sass-convert -R ./ -F sass -T scss && rm *.sass |