Skip to content

Instantly share code, notes, and snippets.

View gdevlugt's full-sized avatar

Geoffrey de Vlugt gdevlugt

View GitHub Profile
{{ $var }} - Echo content
{{ $var or 'default' }} - Echo content with a default value
{{{ $var }}} - Echo escaped content
{{-- Comment --}} - A Blade comment
@extends('layout') - Extends a template with a layout
@if(condition) - Starts an if block
@else - Starts an else block
@elseif(condition) - Start a elseif block
@endif - Ends a if block
@gdevlugt
gdevlugt / TeamViewer-15-id-changer-for-mac.py
Created January 2, 2024 09:02 — forked from STiXzoOR/TeamViewer-15-id-changer-for-mac.py
Teamviewer 15 ID Changer for macOS (Python 3)
#!/usr/bin/env python
# -*- coding: utf-8 -*-
#
# System: macOS 12+
# Version: TeamViewer v15.x.x
# Python: 3.x.x
# Command: sudo python TeamViewer-15-id-changer.py
#
import os
@gdevlugt
gdevlugt / authcode.json
Last active July 22, 2022 23:02
Magister authcode
"5e04e9f95e04e9f9"
#!/usr/bin/env bash
# apt-get update
sudo apt-get install -y unzip
sudo apt-get install -y nodejs
sudo apt-get install -y npm
#if ! [ -e /home/vagrant/.composer ]; then
# mkdir /home/vagrant/.composer
#
ssh-rsa AAAAB3NzaC1yc2EAAAABIwAAAQEAr70C4GLq/TP8LskGKu23G5CM4UW+14TZLwfXMzyzzSTuWivEKMIbas1RbvNtgehhIBPoxDcJ5BK8Ac7VC2KsnvTHA5CvmMSIi2dYSFWLSc/7Yh7znbhb58mTVu1An38PJIlkW90gsfhQRKJCz4mWMohygg/0obIdvEqSvcTnDWYYv1u8sG3BazExIuX6pxpt7Q7BwWD9939hbzKlttVmuwEH+9PJzmOIvFRIVSE2GntMMEVyD5nYwXWH4Edo0hh+n+nOTnobPH0QYpaxPxDYHK9FQ2Mxn90XF99hLeiWTIdzqY22q62smfinjWeupSWuXCoNbEiTpciB1/mi0Ocw5w== Geoffrey@Plato.local
@gdevlugt
gdevlugt / exportdb.php
Created May 24, 2018 10:01
MySQL database dump script
<?php
$DBUSER="user";
$DBPASSWD="password";
$DATABASE="user_db";
$filename = "backup-" . date("d-m-Y") . ".sql.gz";
$mime = "application/x-gzip";
header( "Content-Type: " . $mime );
@gdevlugt
gdevlugt / mac_wifi_watchdog.sh
Created October 20, 2015 11:13
Simple rudimentary script for Mac OS X which restarts Wifi if the network is unreachable. I need this script because my Mac doesn't work nice with my ISP's cable modem by Ubee.
#!/bin/bash
#
# Restart Wifi if network connection doesn't respond.
# Usage: Open Terminal, and execute this script.
# Optimally you want to use a terminal multiplexer like screen to keep it running
#
while :
do
ping -c 3 google.nl
@gdevlugt
gdevlugt / _ide_helper.php
Created September 30, 2015 06:25 — forked from barryvdh/_ide_helper.php
Laravel IDE Helper for Netbeans / PhpStorm / Sublime Text 2 CodeIntel, generated using https://github.com/barryvdh/laravel-ide-helper
<?php
/**
* A helper file for Laravel 5, to provide autocomplete information to your IDE
* Generated for Laravel 5.1.1 (LTS) on 2015-06-11.
*
* @author Barry vd. Heuvel <barryvdh@gmail.com>
* @see https://github.com/barryvdh/laravel-ide-helper
*/
namespace {