Skip to content

Instantly share code, notes, and snippets.

View wdog's full-sized avatar
🎯
Focusing

wdog wdog

🎯
Focusing
View GitHub Profile
@socieboy
socieboy / gulpfile.js
Created December 2, 2015 04:48
Gulpfile for AdminLTE and Laravel Elixier
var elixir = require('laravel-elixir');
/*
|--------------------------------------------------------------------------
| Elixir Asset Management
|--------------------------------------------------------------------------
|
| Elixir provides a clean, fluent API for defining some basic Gulp tasks
| for your Laravel application. By default, we are compiling the Sass
| file for our application, as well as publishing vendor resources.
@ringe
ringe / README.md
Last active October 28, 2025 13:37
KVM QCOW2 Live backup

Live backup of KVM virtual machines

This script will let you make backups of live VMs running on KVM, using libvirt.

The backup job will suspend the VM for the time it takes to copy the RAM to disk.

Credits: Luca Lazzeroni

I've made some minor adjustments.

@wgh000
wgh000 / countries.php
Created April 29, 2014 12:26
Nazioni Mondo - Array PHP
<?php
$countries = array(
'AD' => 'Andorra',
'AE' => 'United Arab Emirates',
'AF' => 'Afghanistan',
'AG' => 'Antigua &amp; Barbuda',
'AI' => 'Anguilla',
'AL' => 'Albania',
'AM' => 'Armenia',
'AN' => 'Netherlands Antilles',
@cesschneider
cesschneider / gist:7689698
Last active May 21, 2022 05:23
Code snippet to test Arduino Nano led using breath effect.
/*
Android Breath v0.2
Simulates led breathing found on Android devices.
Tested with Arduino Nano ATmega328.
Cesar Schneider <[email protected]>
https://gist.github.com/cesschneider/7689698
*/
// Pin 13 has an LED connected on most Arduino boards.
@sirleech
sirleech / gist:2592215
Created May 4, 2012 05:19
RRDdata Temperature Database Example

Use this command to get the UNIX time

date +%s

Create a gauge RRD with a 60 second heartbeat

rrdtool create temperature.rrd --step 60 \
  DS:temp:GAUGE:600:-273:5000 \
 RRA:AVERAGE:0.5:1:1200 \