Skip to content

Instantly share code, notes, and snippets.

View niclashedam's full-sized avatar

Niclas Hedam niclashedam

View GitHub Profile
@niclashedam
niclashedam / install.sh
Last active March 12, 2021 11:10
Auditmill initial installation script
#!/usr/bin/env bash
set -e
sudo apt-get update
sudo apt-get install -y git inotify-tools acl
sudo git clone https://github.com/auditmill/auditmill-client /usr/local/src/auditmill
cd /usr/local/src/auditmill
sudo /usr/local/src/auditmill/setup.sh $1

Keybase proof

I hereby claim:

  • I am niclashedam on github.
  • I am niclashedam (https://keybase.io/niclashedam) on keybase.
  • I have a public key whose fingerprint is DB15 279E 1E3B 1482 80D2 69BF 62A8 635D B113 6F1A

To claim this, I am signing this object:

@niclashedam
niclashedam / InstallingFsYaccFsLexOSX.md
Created September 22, 2018 09:58 — forked from AndreasHassing/InstallingFsYaccFsLexOSX.md
How to get FsYacc and FsLex (FsLexYacc) on OS X

Installing FsYacc and FsLex (FsLexYacc) on OS X

Step by step guide to getting FsYacc and FsLex for development on OS X.

Changes

  • 2017-01-09: Updated guide to reflect latest version of FsLexYacc (7.0.3)
  • 2016: Created

1. Install Mono

By doing one of these:

@niclashedam
niclashedam / .travis.install-mysql-5.7.sh
Last active September 6, 2017 16:11
.travis.install-mysql-5.7.sh
echo mysql-apt-config mysql-apt-config/select-server select mysql-5.7 | sudo debconf-set-selections
wget http://dev.mysql.com/get/mysql-apt-config_0.7.3-1_all.deb
sudo dpkg --install mysql-apt-config_0.7.3-1_all.deb
sudo apt-get update -q
sudo apt-get install --allow-unauthenticated -q -y -o Dpkg::Options::=--force-confnew mysql-server
sudo mysql_upgrade
@niclashedam
niclashedam / apache-config.conf
Created March 23, 2017 11:18
apache-config.conf
<VirtualHost *:80>
ServerAdmin niclas@frax.dk
DocumentRoot /var/www/public
<Directory /var/www/public/>
Options Indexes FollowSymLinks MultiViews
AllowOverride All
Order deny,allow
Allow from all
</Directory>
@niclashedam
niclashedam / supervisord.conf
Last active January 4, 2018 18:24
supervisord.conf
[unix_http_server]
file=/tmp/supervisor.sock ; (the path to the socket file)
[supervisord]
logfile=/tmp/supervisord.log ; (main log file;default $CWD/supervisord.log)
logfile_maxbytes=0 ; (max main logfile bytes b4 rotation;default 50MB)
logfile_backups=0 ; (num of main logfile rotation backups;default 10)
loglevel=info ; (log level;default info; others: debug,warn,trace)
pidfile=/tmp/supervisord.pid ; (supervisord pidfile;default supervisord.pid)
nodaemon=false ; (start in foreground if true;default false)
@niclashedam
niclashedam / Dockerfile
Last active October 25, 2017 14:09
Dockerfile
FROM niclashedam/ubuntu-laravel:latest
MAINTAINER Niclas Hedam <niclas@frax.dk>
ENV APP_DEBUG=false
ENV APP_ENV=production
ENV APP_LOG=daily
# Expose apache.
EXPOSE 80

XCode

  • Install XCode from App Store.
  • Open XCode and agree to terms and conditions.

XCode CLI Tools

  • xcode-select --install

Install Homebrew

#!/bin/sh
# Copyright (c) 2002, 2012, Oracle and/or its affiliates. All rights reserved.
#
# This program is free software; you can redistribute it and/or modify
# it under the terms of the GNU General Public License as published by
# the Free Software Foundation; version 2 of the License.
#
# This program is distributed in the hope that it will be useful,
# but WITHOUT ANY WARRANTY; without even the implied warranty of