duplicates = multiple editions
A Classical Introduction to Modern Number Theory, Kenneth Ireland Michael Rosen
A Classical Introduction to Modern Number Theory, Kenneth Ireland Michael Rosen
| var http = require('http'), | |
| https = require('https'), | |
| buffer = require('buffer'), | |
| httpProxy = require('http-proxy'); | |
| var tokens = {}, | |
| basicAuth = new Buffer(process.env.BASIC_AUTH).toString('base64'); | |
| // |
| # install: | |
| # wget https://gist.githubusercontent.com/epcim/e488af8be69b616eab3088a14a937e14/raw/salt-trends.sh -O salt-trends.sh; chmod +x *.sh | |
| # salt state execution results: (use with/without test=true, -b2, etc..) | |
| # apt install -y jq colordiff | |
| salt \* state.apply --out=json --static test=true -b15 | jq -r 'to_entries | map({ key:.key, value: { total: [.value[]]|length , | |
| succeed: [select(.value>={})|.value[]|select(.result? == true )]|length, | |
| failed: [select(.value>={})|.value[]|select(.result? == false)]|length, | |
| null: [select(.value>={})|.value[]|select(.result? == null)]|length, | |
| changes: [select(.value>={})|.value[]|select(.changes?|length > 0)]|length } }) | from_entries ' |\ |
| #!/usr/bin/env bash | |
| # https://gist.github.com/gretel/34008d667a8a243a9682e5207619ad95 | |
| # 2016 tom hensel <[email protected]> | |
| # `vagrant` on `ubuntu-16.04` can get in conflict with *unattended-upgrade* running and locking the `dpkg` subsystem. this script waits gracefully | |
| # in `Vagrantfile`: | |
| # config.vm.provision 'Wait for unattended-upgrades', type: 'shell', path: './provisioning/wait_unattended_upgrades.sh', args: %w( dpkg apt unattended-upgrade ) | |
| # | |
| function wait_procnames { | |
| while true; do |
| 1. http://pusher-diagnostics.herokuapp.com/ -- ** All Tests Passed ** | |
| { | |
| "summary": { | |
| "failed": 0, | |
| "passed": 15, | |
| "total": 15, | |
| "runtime": 5117 | |
| }, | |
| "results": { |
| # Your init script | |
| # | |
| # Atom will evaluate this file each time a new window is opened. It is run | |
| # after packages are loaded/activated and after the previous editor state | |
| # has been restored. | |
| # | |
| # An example hack to log to the console when each text editor is saved. | |
| # | |
| # atom.workspace.observeTextEditors (editor) -> | |
| # editor.onDidSave -> |
| #!/bin/bash | |
| bucket=$1 | |
| set -e | |
| echo "Removing all versions from $bucket" | |
| versions=`aws s3api list-object-versions --bucket $bucket |jq '.Versions'` | |
| markers=`aws s3api list-object-versions --bucket $bucket |jq '.DeleteMarkers'` |
This callback Plugin is used to nicely format Puppet output when called from Ansible playbook. For more details, take a look at these blog posts:
https://blog.codecentric.de/en/2014/12/migrate-puppet-ansible/ https://blog.codecentric.de/en/2015/04/nicer-ansible-output-for-puppet-tasks/
| 'use strict'; | |
| var gulp = require('gulp'); | |
| var browserSync = require('browser-sync'); | |
| var reload = browserSync.reload; | |
| var exec = require('child_process').exec; | |
| var run = function(command, done) { | |
| exec(command, function(error) { | |
| if (error) { |
Magic words:
psql -U postgresSome interesting flags (to see all, use -h or --help depending on your psql version):
-E: will describe the underlaying queries of the \ commands (cool for learning!)-l: psql will list all databases and then exit (useful if the user you connect with doesn't has a default database, like at AWS RDS)