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
version: '3' | |
services: | |
gitlab: | |
image: gitlab/gitlab-ce:latest | |
hostname: gitlab.example.com | |
environment: | |
GITLAB_OMNIBUS_CONFIG: | | |
external_url 'https://gitlab.example.com/' | |
nginx['listen_port'] = 80 | |
nginx['listen_https'] = false |
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
### Keybase proof | |
I hereby claim: | |
* I am ryands on github. | |
* I am ryands (https://keybase.io/ryands) on keybase. | |
* I have a public key ASAPVdyMPae0mgH03qbrDAal5GKi8SkCHyIyO_56yjsL0Ao | |
To claim this, I am signing this object: |
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
public class Person { | |
public final String name; | |
public final int age; | |
public final String city; | |
public Person(String name, int age, String city) { | |
this.name = name; | |
this.age = age; | |
this.city = city; | |
} |
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
import android.os.Bundle; | |
import android.support.annotation.NonNull; | |
import android.view.View; | |
public abstract class Presenter<V extends View> { | |
private V view; | |
public final void takeView(@NonNull V view) { | |
if (view == null) throw new NullPointerException("View must not be null"); | |
if (this.view != view) { |
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
#cloud-config | |
coreos: | |
etcd2: | |
discovery: https://discovery.etcd.io/<some-discovery-token> | |
advertise-client-urls: http://\$private_ipv4:2379,http://\$private_ipv4:4001 | |
initial-advertise-peer-urls: http://\$private_ipv4:2380 | |
listen-client-urls: http://0.0.0.0:2379,http://0.0.0.0:4001 | |
listen-peer-urls: http://\$private_ipv4:2380 | |
units: |
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/local/bin/node | |
// node.js BitBar plugin for pull-request tracking. | |
var https = require('https'); | |
function pull_requests(options, cb) { | |
var repo = options.repo, | |
token = options.token; | |
https.get({ | |
protocol: 'https:', |
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
/* gcc -o cast cast.c */ | |
#include <stdio.h> | |
int main(int argc, char **argv) { | |
unsigned long sides; | |
int input = -5; | |
sides = input; | |
printf("Catas input %lu\n", sides); |
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
set-option -g prefix C-a | |
unbind-key C-b | |
bind-key C-a send-prefix | |
set-option -g status-style bg=blue |
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 | |
INSTALL_MEDIA="http://cdimage.debian.org/cdimage/jessie_di_beta_2/amd64/iso-cd/debian-jessie-DI-b2-amd64-netinst.iso" | |
VMNAME="debian-jessie-vm" | |
[[ "x$1" != "x" ]] && VMNAME=$1 | |
echo | |
echo "Building VM: $VMNAME" | |
echo " Creating disk 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
/* Local proxy for XHR testing | |
* | |
* Prereq: npm install express request lodash | |
* Running: node proxy.js | |
* | |
*/ | |
// Configuration: | |
var port = 3001; | |
var mapping = { |
NewerOlder