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 \
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 \
/* | |
Android Breath v0.2 | |
Simulates led breathing found on Android devices. | |
Tested with Arduino Nano ATmega328. | |
Cesar Schneider <cesschneider@gmail.com> | |
https://gist.github.com/cesschneider/7689698 | |
*/ | |
// Pin 13 has an LED connected on most Arduino boards. |
<?php | |
$countries = array( | |
'AD' => 'Andorra', | |
'AE' => 'United Arab Emirates', | |
'AF' => 'Afghanistan', | |
'AG' => 'Antigua & Barbuda', | |
'AI' => 'Anguilla', | |
'AL' => 'Albania', | |
'AM' => 'Armenia', | |
'AN' => 'Netherlands Antilles', |
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.
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. |
Instructions how to install Debian using debootstrap. Below instructions were verified to work with debootstrapping Debian 11.
#! /usr/bin/env python3 | |
"""Fixing bluetooth stereo headphone/headset problem in debian distros. | |
Workaround for bug: https://bugs.launchpad.net/ubuntu/+source/indicator-sound/+bug/1577197 | |
Run it with python3.5 or higher after pairing/connecting the bluetooth stereo headphone. | |
This will be only fixes the bluez5 problem mentioned above . | |
Licence: Freeware |
#!/bin/bash | |
set -e | |
usage="$(basename "$0") [-h] [-i PROJECT] [-v VM] [-p PYTHON] [-d NOTEBOOKS] | |
Make a user provide SSH key and jupyter notebooks (in roles/bootstrap/files/notebooks) to each user listed in var/common.yml | |
where: | |
-h show this help text | |
-i google cloud project id | |
-v name of instance/virtual machine | |
-p python path |
curl -fsSL https://download.spotify.com/debian/pubkey_5E3C45D7B312C643.gpg | gpg --dearmor | sudo tee /etc/apt/trusted.gpg.d/spotify.gpg
sudo apt update && sudo apt install spotify-client
$ cat xstub.c