Skip to content

Instantly share code, notes, and snippets.

View thenetexperts's full-sized avatar
🎯
Focusing

Sascha Ahmann thenetexperts

🎯
Focusing
  • @eyecandylab
  • Germany
View GitHub Profile
@thenetexperts
thenetexperts / npm-using-git-for-https.sh
Last active July 20, 2018 09:31 — forked from taoyuan/npm-using-https-for-git.sh
Force git to use git:// instead of https://
git config --global url."git@github.com:".insteadOf https://github.com/
git config --global url."git://".insteadOf https://
# If you open your Ressource monitoring under OSX, you'll see that the
# Process "Spotify Helper" is eating between 20% and 30% of CPU constantly
# It means that when you're on battery, it'll drain it faster.
# To prevent the Spotify Helper (which are basically ads for spotify) from spawning process,
# you should disable access to the app doing this (close Spotify first) :
sudo chmod 000 "/Applications/Spotify.app/Contents/Frameworks/Spotify Helper EH.app"
sudo chmod -N "/Applications/Spotify.app/Contents/Frameworks/Spotify Helper EH.app"
@thenetexperts
thenetexperts / resetting-csync2-cluster.md
Created June 15, 2016 15:20 — forked from scottsb/resetting-csync2-cluster.md
Guide to Resetting a csync2 Cluster

Guide to Resetting a csync2 Cluster

Introduction

These are possible steps to reset a csync2 cluster that has been seriously fubared. This is an apocalyptic approach and should only be used when more surgical fixes (like correcting an individual conflict) aren't workable.

Use Cases

#!/bin/bash
#
# Carries out a full mysqldump, calls percona-xtrabackup and then
# copies the sql dump, the percona backup and your mysql bin logs
# to S3 using s3cmd http://s3tools.org/s3cmd
#
# TODO: extract out the S3 backup stuff to make it optional, and so
# other s3 programs can replace the s3cmd call.
# TODO: the if [ $? == 0 ] alert blocks should be a function
# TODO: make the if [ $? == 0 ] if [ $? != 0 ] more consistent - test
@thenetexperts
thenetexperts / config.yml
Created May 28, 2015 08:35
symfony 2.3 monolog configuration for use with graylog2 http transport
services:
gelf.transport:
class: Gelf\Transport\HttpTransport
arguments: [%graylog_hostname%, %graylog_port%]
monolog:
handlers:
graylog:
type: gelf
publisher:

#Introduction If you're a php developer on ubuntu, there comes the time where you have to install/reinstall your system. I did it already a few times and i decided to write down the steps for a typical web developer stack with php. This is for a developer machine and not for a live environment!

I hope it helps you too!

fyi @mheiniger and me started with an installer here: https://github.com/mheiniger/webdev-setup