Skip to content

Instantly share code, notes, and snippets.

View LauLaman's full-sized avatar
💯
100%

Laurens Laman LauLaman

💯
100%
View GitHub Profile
@LauLaman
LauLaman / loader.html
Created July 11, 2023 08:42
Spinning loader HTML
<div class="spinner"></div>
<style>
.spinner {
width: 56px;
height: 56px;
border-radius: 50%;
border: 9px solid #f7941e;
animation: spinner-bulqg1 0.8s infinite linear alternate,
spinner-oaa3wk 1.6s infinite linear;
@LauLaman
LauLaman / cloud-config.yml
Created February 11, 2023 11:04
RancherOS
#cloud-config
ssh_authorized_keys:
- ssh-rsa AAAAB3NzaC1yc2EAAAADAQABAAAEAQDlBy1lwkPKCXxfORCcIuiRCrf+bbTAapDQK+/JKw3h7w83FoqEKvCtbphCFIZ86vqESJxmZzLbZ8aq1xt8+gfmUNLgQ4y1DDz8MWL7Mta7Cav6HDEEdDk1lTdU3liGSuz+cbWLCJVcOH8ZhMr/vK6FA0E2+7Xc81h/85ZxdkpUz9MVPUtiGlZDA7nxGA4C+G6vv2reES/IZ4lHaBd3YMTQ47VXbQ4iyU87/CjblpmyybNhz1koBwXBkMshPq5XixQLr5LzRcBnNXYgpbNkjLtRfFRvc7ujtfUuF4xmF25PDeTdDRM1CBjsT6ZdYzvBc5SSNXVVXFEDZcsUdo+japJUSaCQnUhMe6A/QmDleFY+WgPcqXmvOiIi+84JtEWuzjFpGQipC0hkDj47xR//JP5cgNesbZ/reXOqkdlxyPkDVa+8TR15E86Y/bVDQUs+0zWgOBilAFKVjdY8dCDyAuxyIpsZ88SiMRfV2ZXlS7Qbt5R66SR7k7xrZNp+T4LnVCypwGwZ1z0VNFZ9NYBRSKT8Y6SMXKy99JaMQrmeBU8klJSjcVsTMDZtF8UieI+wK4nPospi7K64AlXvE+aV2iUSf+Dikca4oZBhNQYrLhG6/+0+JXil9xXPcUZkU7ByvpaCKUF/BijvxMptrBdgUifKaPN1HTBBJN9eMpHGIw5SvKuh7tyCfJwvn80Mn2NMV6jz9Pu8CsDCthporS/VJEZopxYgyAs/obDYNotEspsnu/yra97TI0K59ZlShYgpeNO76iY0LQMmzBBDIbN+J/r3QV8zy1Nd1cs09GUyCj4FvF58vvW5Swv2ZaGS5P47dCA+oAMghJUhZUZ0MRmKgGTi6erf/FTiu/xfjGhisuDZVicb9rTpnRYKW/5p0frDrnmR63MLy36gKCEG5tFrj2BsZaW0i97WvT2Dw1dAmdt9qRemrBRMX
@LauLaman
LauLaman / how_to_use_vakantieveilingen_auto_bidding_script.md
Last active May 6, 2024 10:53
vakantieveilingen.nl auto bidding script

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 18:01
Vagrant nfs mount Mac OS X Mojave
  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 April 23, 2018 22:16
EasyEngine seperate by user
  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 March 7, 2023 14:42
Use GPG to sign commits using git & PHPStorm

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 January 2, 2016 12:15
A simple script ot automatically backup your site and database
#!/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 April 11, 2016 13:51
Start mysql if its not running
#!/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