This will serve SSH and HTTPS (with which I got an A+ from testssl).
Creates three docker containers:
- gitlab-prostgres
- gitlab-redis
- gitlab, which is linked to the other two. This contains nginx, sshd, git, gitlab.
#!/usr/bin/ruby | |
require 'rubygems' | |
require 'json' | |
require 'net/https' | |
class KeyChain | |
def initialize(user=nil) | |
@user ||= %x{dscl . -read /Users/$(whoami)|grep "EMailAddress:"|sed 's/^EMailAddress: //'} | |
@host="com.brettterpstra.gauges" |
@import CocoaLumberjack; | |
@interface DDCLSLogger : DDAbstractLogger | |
@end |
// | |
// Benchmark.h | |
// Opskrifter | |
// | |
// Created by Sijawusz Pur Rahnama on 03/02/09. | |
// Copyleft 2009. Some rights reserved. | |
// | |
#import <Foundation/Foundation.h> |
on write_to_file(this_data, target_file, append_data) | |
try | |
set the target_file to the target_file as string | |
set the open_target_file to open for access file target_file with write permission | |
if append_data is false then set eof of the open_target_file to 0 | |
write this_data to the open_target_file starting at eof | |
close access the open_target_file | |
return true | |
on error | |
try |
/var/www/html
in the Vagrant boxc:\Users\username\Work\projects\my-project\repo\html
route -nee
in the VM and look for the gateway address)/* | |
cpacl.c: copy solaris ACLs from one file to another | |
author: Chris Lee <clee@mg8.org> | |
license: WTFPL <http://sam.zoy.org/wtfpl/COPYING> | |
make: cc -o cpacl cpacl.c -lsec -lc | |
*/ | |
#include <sys/acl.h> | |
#include <stdio.h> |
curl --user-agent "Googlebot/2.1 (+http://www.google.com/bot.html)" -v $@ | |
#!/usr/bin/env bash | |
uninstall() { | |
list=`gem list --no-versions` | |
for gem in $list; do | |
gem uninstall $gem -aIx | |
done | |
gem list | |
gem install bundler | |
} |