Skip to content

Instantly share code, notes, and snippets.

View christofluethi's full-sized avatar

Christof Lüthi christofluethi

View GitHub Profile
@christofluethi
christofluethi / mute-off.sh
Last active August 29, 2015 14:01
Mute Audio for Mac OS X Mavericks / Yosemite
#Check if any hooks already exist (these will be overwritten)
sudo defaults read com.apple.loginwindow LoginHook
sudo defaults read com.apple.loginwindow LogoutHook
#Add hooks for muting
sudo defaults write com.apple.loginwindow LogoutHook /Library/Scripts/mute-on.sh
sudo defaults write com.apple.loginwindow LoginHook /Library/Scripts/mute-off.sh
@christofluethi
christofluethi / bash-windows.md
Last active February 9, 2017 09:45
Bash on Windows
@christofluethi
christofluethi / news-agencies
Last active October 10, 2017 17:27
News Agencies
awp;awp
awp international;awp international
Globenewswire;Globenewswire
PRNewswire;PRNewswire
USNewswire;USNewswire
DGAP-News;DGAP-News
DGAP News-Service;DGAP-News
@christofluethi
christofluethi / six-companies
Created October 10, 2017 21:57
SIX Companies
3M,3M Company,MMM
5EL,5EL SA,FEL
ABB,ABB Ltd,ABBN
Abbott,Abbott Laboratories,ABT
AbbVie,AbbVie Inc,ABBV
Actelion,Actelion Ltd.,ATLN
Addex,Addex Therapeutics Ltd,ADXN
Adecco,Adecco Group AG,ADEN
Adval,Adval Tech Holding AG,ADVN
AEVIS,AEVIS VICTORIA SA,AEVS
@christofluethi
christofluethi / nodejs-angular-setup.md
Last active August 9, 2018 07:58
node-installation

Installation of NodeJs, npm, TypeScript, AngularJS, @angular/cli on Windows 7 Professional SP 1 64-bit:

Since I have found many valuable hints scattered on various posts only after 'painful' search, here a compact compilation (not my ideas but my experience). Hope it helps. install Node.js Windows Installer 64-bit: https://nodejs.org/en/download/ Set npm directory for packages (npm 3.10.10 comes with Node.js but we'll update it later):

npm config set registry https://registry.npmjs.org/

Update npm to the latest version:

@christofluethi
christofluethi / vimrc
Created November 4, 2018 15:09
vimrc
" ~/.vimrc
" christof luethi, shaped.ch, 2006-2018
"
" Key Bindings:
" <F2>: past toggle (past without autoindent)
" <F3>: open file under cursor
" <F4>: toggle line numbers
" <F5>: open directory in new tab
" <F6>: toggle line wrapping
" <F7>: toggle list chars (show non printable chars)
@christofluethi
christofluethi / bashrc
Last active January 5, 2019 00:08
BASH RC Configuration
# ~/.bashrc: executed by bash(1) for non-login shells.
# see /usr/share/doc/bash/examples/startup-files (in the package bash-doc)
# for examples
# If not running interactively, don't do anything
[ -z "$PS1" ] && return
HISTFILESIZE=2500
# don't put duplicate lines in the history. See bash(1) for more options
@christofluethi
christofluethi / osx_toolset.md
Last active February 6, 2020 11:11
Mac OS X ToolSet
@christofluethi
christofluethi / zbook-15-g3-ubuntu16_04lts.md
Last active February 13, 2021 06:59
HP Zbook 15 G3 Installation

HP ZBook 15 G3 - Ubuntu GNOME - 16.04 LTS

*: Included in the image

Disk /dev/nvme0n1: 477 GiB, 512110190592 bytes, 1000215216 sectors
Units: sectors of 1 * 512 = 512 bytes
Sector size (logical/physical): 512 bytes / 512 bytes
I/O size (minimum/optimal): 512 bytes / 512 bytes
Disklabel type: dos
@christofluethi
christofluethi / okd-v311-kvm-installation.md
Last active September 21, 2021 14:59
OpenShift OKD 3.11 on CentOS Linux 7.6 VMs

Install OKD v3.11 on CentOS Linux 7.6

Host system is Ubuntu 16.04 LTS with 8 CPUs and 32GB Ram

Domain-name: *.example.com

Host Prepare

Configure VMs

Install virt-manager

sudo apt-get install virt-manager