Skip to content

Instantly share code, notes, and snippets.

Avatar
💯
100%

Laurens Laman LauLaman

💯
100%
View GitHub Profile
@LauLaman
LauLaman / how_to_use_vakantieveilingen_auto_bidding_script.md
Last active Jul 2, 2020
vakantieveilingen.nl auto bidding script
View how_to_use_vakantieveilingen_auto_bidding_script.md

This script will wait untill the last 2 sec of a vakantieveilingen.nl auction and place a bid as soon as you ar no longer the highest bidder. This while keeping the max value in to account. It will check the bidding every 0,2 sec.

  1. Open a auction on vakantieveilingen.nl
  2. Change the maxBid to the value you want to maximum spend. (whole euro's only)
  3. Open the developer console in your browser (how do i do this?)
  4. Paste the code in the console and hit enter
@LauLaman
LauLaman / Mojave-nfs.md
Last active May 28, 2021
Vagrant nfs mount Mac OS X Mojave
View Mojave-nfs.md
  1. Mac OS X system settings > Security & Privacy > privacy tab

  2. Select Full Disk Access and click plus icon.

  3. Add terminal in the list ( in my case iTerm)

  4. Restart iTerm

  5. Run command in iterm: $ cd /private/etc && sudo touch ./exports

  6. Start virtual machine trough vargrant: Profit

@LauLaman
LauLaman / user.md
Last active Apr 23, 2018
EasyEngine seperate by user
View user.md
  1. Create site: ee site create DOMAIN.TLD --wp --php7
  2. Create usergroup sudo groupadd DOMAIN
  3. Create user sudo useradd -d /var/www/DOMAIN.TLD/htdocs -g DOMAIN DOMAIN
  4. Create php-fpm config vi /etc/php/7.0/fpm/pool.d/DOMAIN.conf
[DOMAIN]
user = DOMAIN
group = DOMAIN
listen = /var/run/php7-fpm-DOMAIN.sock
@LauLaman
LauLaman / gpg.md
Last active Sep 15, 2021
Use GPG to sign commits using git & PHPStorm
View gpg.md

1 - install GPG tools : https://gpgtools.org/

2 - Create new key for your github email

3 - Add key to git on your local machine: git config --global user.signingkey YOURKEY

4 - configure git to sign all commits: git config --global commit.gpgsign true

5 - add to the bottom of ~/.gnupg/gpg.conf: (create the file if it not exists)

@LauLaman
LauLaman / backupSites.sh
Created Jan 2, 2016
A simple script ot automatically backup your site and database
View backupSites.sh
#!/bin/bash
# Author: Laurens Laman
# Date: 2015-12-27
# URL: https://gist.github.com/LauLaman/5d798fc1a15324d9973b
#
# DESCRIPTION
# Use this scripts to make regular backups of the sites files and database using Git
#
# INSTRUCTIONS
# Make shure git is initialized in all your sites dir
@LauLaman
LauLaman / mysqlfix.sh
Last active Apr 11, 2016
Start mysql if its not running
View mysqlfix.sh
#!/bin/bash
# Author: Laurens Laman
# Date: 2015-12-27
# URL: https://gist.github.com/LauLaman/1738a8ad4d633254aef6
#
# DESCRIPTION
# Sometimes MySQL randomly stops for no apparent reason. This can be an extreme pain in the *
# Use this scripts to start mysql when its not running. To make your life easy again.
#
# INSTRUCTIONS