Skip to content

Instantly share code, notes, and snippets.

View christiaangoossens's full-sized avatar
🚅
Always busy, quick like a train.

Christiaan Goossens christiaangoossens

🚅
Always busy, quick like a train.
View GitHub Profile
@dorajistyle
dorajistyle / vue_ionic_capacitor_electron_config.md
Last active June 1, 2022 19:52
Vue-Ionic-Capacitor-Electron-Config

Predecessors

Install yarn

curl --compressed -o- -L https://yarnpkg.com/install.sh | bash

Install vue-cli

Tested @vue/cli version is 4.4.6.

@Ara4Sh
Ara4Sh / cloudflare-failover.sh
Created October 12, 2016 13:49
CloudFlare A records failover script using CloudFlare api v4 (https://api.cloudflare.com) required jq and curl to run.
#!/bin/bash
# Copyright (C) 2016 Arash Shams <https://github.com/Ara4Sh>.
#
# This program is free software: you can redistribute it and/or modify
# it under the terms of the GNU General Public License as published by
# the Free Software Foundation, either version 3 of the License, or
# (at your option) any later version.
#
# This program is distributed in the hope that it will be useful,
# but WITHOUT ANY WARRANTY; without even the implied warranty of
@cjthompson
cjthompson / RobustPDO.php
Created February 3, 2014 19:52
Extended PDO class that detects dropped connections and reconnects
<?php
class RobustPDO extends PDO
{
/** Call setAttribute to set the session wait_timeout value */
const ATTR_MYSQL_TIMEOUT = 100;
/** @var array */
protected $config = [];
/** @var bool For lazy connection tracking */