This file contains hidden or 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 "rubygems" | |
require "twitter" | |
require "json" | |
require "csv" | |
#require "date" | |
# things you must configure | |
TWITTER_USER = "your_twitter_username" | |
MAX_AGE_IN_DAYS = 7 # anything older than this is deleted |
This file contains hidden or 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
#!/usr/bin/env bash | |
set -eu | |
# set -o pipefile | |
docker_version=${REPO_TAG} | |
docker_image=${REPO_IMAGE} | |
# docker_creds=$(aws ecr get-authorization-token --output json |jq -r '.authorizationData[].authorizationToken' |base64 -d) | |
docker_creds="AWS:$(aws ecr get-login-password)" |
This file contains hidden or 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, lib, pkgs, ...}: | |
with lib; | |
let | |
cfg = config.services.crd; | |
in { | |
options = { | |
services.crd = { | |
enable = mkEnableOption '' | |
chrome remote desktop, a service which allows for remote control of your desktop from anywhere. | |
''; |
This file contains hidden or 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
;;; org-to-gfm --- Export a org-mode file to Github-flavored Markdown | |
;;; | |
;;; Commentary: | |
;;; To convert INPUT_FILE.org and produce OUTPUT_FILE.md, run something like: | |
;;; | |
;;; emacs -q --no-splash --no-x-resources --batch --script org-to-gfm.el INPUT_FILE.org OUTPUT_FILE.md | |
;;; | |
;;; Code: | |
(unless (require 'use-package nil t) (package-install 'use-package)) |
This file contains hidden or 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
with import <nixpkgs> {}; | |
#{stdenv, fetchFromGitHub, python, ninja}: | |
stdenv.mkDerivation rec { | |
name = "scylla-${version}"; | |
version = "2.1.0"; | |
src = fetchgit { | |
url = "https://github.com/scylladb/scylla"; |
This file contains hidden or 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
// How to build: "CC=clang go build" | |
package main | |
import ( | |
"fmt" | |
"net/url" | |
"strconv" | |
"unsafe" | |
) |
This file contains hidden or 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
# You should override $PARENT at build-time to name the upper-level container | |
# e.g. node:7-alpine | |
# You may need to override $DOCKER_BASE if you're using this repo as a Submodule of another builder repo | |
# Override $CONFIG_FILE to use a different config. file | |
# Note: This will only work for recent versions of Docker | |
# Note: Your $PARENT base OS/Distribution (Debian or Alpine) must be compatible with the Golang builder base. | |
# A Golang binary built with Debian won't usually work on Alpine out-of-the-box, for example | |
# Debian-based image: |
This file contains hidden or 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
/* | |
Logging module | |
*/ | |
'use strict' | |
const Logger = function(options) { | |
this.init(options) | |
} |
This file contains hidden or 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
# Alpine with Ruby 2.2 | |
FROM alpine:3.7 | |
RUN apk upgrade --no-cache --update && \ | |
apk add --no-cache --update ca-certificates make bash build-base | |
RUN cd /tmp && \ | |
wget -O - https://github.com/postmodern/ruby-install/archive/v0.6.1.tar.gz | tar xzvf - && \ | |
( cd ruby-install-0.6.1 && \ | |
make install ) && \ |
This file contains hidden or 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
PACKAGE = build-it | |
DATE ?= $(shell date +%FT%T%z) | |
VERSION ?= $(shell git describe --tags --always --dirty --match=v* 2> /dev/null || \ | |
cat $(CURDIR)/.version 2> /dev/null || echo v0) | |
GOPATH = $(CURDIR)/.gopath~ | |
BIN = $(GOPATH)/bin | |
BASE = $(GOPATH)/src/$(PACKAGE) | |
PKGS = $(or $(PKG),$(shell cd $(BASE) && env GOPATH=$(GOPATH) $(GO) list ./... | grep -v "^$(PACKAGE)/vendor/")) | |
TESTPKGS = $(shell env GOPATH=$(GOPATH) $(GO) list -f '{{ if .TestGoFiles }}{{ .ImportPath }}{{ end }}' $(PKGS)) |
NewerOlder