Skip to content

Instantly share code, notes, and snippets.

View elferink's full-sized avatar

Thijs Elferink elferink

  • Deventer
View GitHub Profile
@elferink
elferink / config_macos.sh
Last active October 25, 2022 07:11 — forked from dannysmith/osx_setup.sh
Sensible defaults for New Mac
#!/usr/bin/env bash
set -e # exit on error
# Mostly based on the work of Mathias Bynens http://mths.be/osx
# and https://github.com/mphstudios/macOS_setup/blob/main/defaults_write.sh
SCREENSHOT_LOCATION="${HOME}/Desktop/Screenshots"
# Ask for the administrator password upfront
sudo -v
@elferink
elferink / gitlab-sync-projects
Last active August 6, 2019 15:28 — forked from JonasGroeger/sync-projects
Gitlab: Clone / Pull all projects in a group
#!/bin/sh
# Source
# https://gist.github.com/JonasGroeger/1b5155e461036b557d0fb4b3307e1e75
# API Documentation
# https://docs.gitlab.com/ce/api/projects.html#list-projects
GITLAB_URL="https://{GITLAB_URL}/"
GITLAB_PRIVATE_TOKEN=""
NAMESPACE="$1"
#!/bin/bash
#
# works on centOS 6.3 x86_64
#
# yum update repo
yum -y update
# install needed modules (from normal repo)
#!/bin/bash
#
# tomcat7 This shell script takes care of starting and stopping Tomcat
#
# chkconfig: - 80 20
#
### BEGIN INIT INFO
# Provides: tomcat7
# Required-Start: $network $syslog
# Required-Stop: $network $syslog