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 |
#!/bin/bash | |
############################################################################### | |
## ## | |
## Build and package OpenSSL static libraries for OSX/iOS ## | |
## ## | |
## This script is in the public domain. ## | |
## Creator : Laurent Etiemble ## | |
## ## | |
############################################################################### |
/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)#!/bin/bash | |
function jsonval { | |
temp=`echo $json | sed 's/\\\\\//\//g' | sed 's/[{}]//g' | awk -v k="text" '{n=split($0,a,","); for (i=1; i<=n; i++) print a[i]}' | sed 's/\"\:\"/\|/g' | sed 's/[\,]/ /g' | sed 's/\"//g' | grep -w $prop` | |
echo ${temp##*|} | |
} | |
json=`curl -s -X GET http://twitter.com/users/show/$1.json` | |
prop='profile_image_url' | |
picurl=`jsonval` |