This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
name: Master PR | |
on: | |
pull_request: | |
branches: | |
- master | |
jobs: | |
build: | |
runs-on: ubuntu-18.04 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
config 'wifi-iface' | |
option 'device' 'wl0' | |
option 'network' 'lan' | |
option 'mode' 'ap' | |
option 'ssid' 'MyWifiAP' | |
option 'encryption' 'psk2' | |
option 'key' 'secret passphrase' |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
deployer: | |
user.present: | |
- fullname: Deployer of Worlds | |
- shell: /bin/zsh | |
- home: /home/deployer | |
file.managed: | |
- name: /home/deployer/.ssh/id_rsa | |
- source: salt://files/deployer/id_rsa | |
- user: deployer | |
- group: deployer |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
rabbitmq: | |
pkg.installed: | |
- name: rabbitmq-server | |
file: | |
- managed | |
- name: /etc/rabbitmq/enabled_plugins | |
- source: salt://files/rabbitmq/enabled_plugins |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
pkgrepo.managed: | |
- humanname: Erlang Solutions Deb Repo | |
- name: deb http://packages.erlang-solutions.com/debian wheezy contrib | |
- dist: wheezy | |
- file: /etc/apt/sources.list.d/erlang_solutions.list | |
- require_in: | |
- pkg: erlang_solutions | |
pkg.latest: | |
- name: erlang_solutions |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# needed to get defdatabase and other macros | |
use Amnesia | |
defdatabase Database do | |
deftable Crime, [:id, :avg_day, :beat, :location, :neighborhood, :occur_date, :occur_time, :uc2_literal], type: :ordered_set do | |
# this isn't required, but it's always nice to spec things | |
@type t :: %Crime{id: String.t, avg_day: String.t, beat: String.t, location: String.t, neighborhood: String.t, occur_date: String.t, occur_time: String.t, uc2_literal: String.t } | |
end | |
end |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# nginx config for A+ SSL Labs rating as of 9-2014 | |
# Broad legacy compatibility including IE8/XP, Android 2.3+, openssl 0.9.8 clients | |
# Blocks most bot scans IP probes. | |
# | |
# *** Assumes: _HOSTNAME_ is replaced *** | |
# | |
# Includes OCSP stapling, HSTS Strict Transport security, | |
# session resumption, legacy backwards compatibility (XP, Android 2.3-4.3) | |
# | |
# Requires nginx 1.6.x. See: http://nginx.org/en/linux_packages.html, e.g.: |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
require 'zlib' | |
require 'date' | |
def gen_crc(date: date) | |
str = [date.year, date.month, date.day].join("+=+") | |
Zlib::crc32(str) | |
end | |
start_dt = Date.parse('2014-06-01') |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import XMonad | |
import XMonad.Hooks.DynamicLog | |
import XMonad.Hooks.ManageDocks | |
import XMonad.Util.Run(spawnPipe) | |
import XMonad.Util.EZConfig(additionalKeys) | |
import XMonad.Layout.Spiral | |
import XMonad.Layout.Circle | |
import XMonad.Layout.ThreeColumns | |
import XMonad.Layout.Tabbed | |
import XMonad.Layout.Grid |
NewerOlder