GRUB_INIT_TUNE="1000 334 1 334 1 0 1 334 1 0 1 261 1 334 1 0 1 392 2 0 4 196 2"
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#include "pitches.h" | |
const int SPKR = 13; // Buzzer pin | |
const int BTN=2; | |
// notes in the notes: | |
int notes_1up[] = {NOTE_E5, NOTE_G5, NOTE_E6, NOTE_C6, NOTE_D6, NOTE_G6}; | |
// note durations: 4 = quarter note, 8 = eighth note, etc.: | |
int durations_1up[] = {4, 4, 4, 4, 4, 4}; |
Do you want your computer to play a coin pickup audio sample from Super Mario Bros. every time it boots up? Of course you do! And if you are using a GRUB boot loader - you CAN!
Just add the following code to your /etc/default/grub
config file:
GRUB_INIT_TUNE="600 988 1 1319 8"
And update your grub:
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
rest: | |
scan_interval: 900 | |
method: GET | |
resource: http://api.allthingstalk.io/device/HYdfY2YhmeMxq10ICXvNfST7 | |
headers: | |
Authorization: !secret my_allthingstalk_bearer_token | |
sensor: | |
- name: "Klimerko PM1" | |
unique_id: 1668683822561 | |
value_template: >- |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/bash | |
GATEWAY=`route get default | grep gateway | awk '{ print }'` | |
SCRIPT_COMMAND="ping $GATEWAY" | |
SCRIPT_PID=/tmp/pingpong.pid | |
case "$1" in | |
start) | |
$SCRIPT_COMMAND 1>/dev/null & | |
echo $!>$SCRIPT_PID |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/usr/bin/env bash | |
# Bash Helper Script For Kimai Docker | |
# https://www.kimai.org/documentation/docker.html | |
kimai_install() { | |
docker run --name kimai-mysql \ | |
-e MYSQL_DATABASE=kimai \ | |
-e MYSQL_USER=kimai \ | |
-e MYSQL_PASSWORD=kimai \ |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
/////////////////////////////////////////// | |
// Animation Cubic Bezier easings // | |
// see - http://matthewlein.com/ceaser // | |
/////////////////////////////////////////// | |
// defaults | |
$ease-linear: "cubic-bezier(0.250, 0.250, 0.750, 0.750)"; | |
$ease-default: "cubic-bezier(0.250, 0.100, 0.250, 1.000)"; | |
$ease-in: "cubic-bezier(0.420, 0.000, 1.000, 1.000)"; | |
$ease-out: "cubic-bezier(0.000, 0.000, 0.580, 1.000)"; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
+---------------------------------------------------------------+ | |
| * * * PUSH REJECTED BY EVIL DRAGON BUREAUCRATS * * * | | |
+---------------------------------------------------------------+ | |
\ | |
\ ^ /^ | |
\ / \ // \ | |
\ |\___/| / \// .\ | |
\ /V V \__ / // | \ \ *----* | |
/ / \/_/ // | \ \ \ | | |
@___@` \/_ // | \ \ \/\ \ |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
random_pitch() { | |
local delta=${1:-50} | |
local value=$(( ($RANDOM % $delta) - $delta/2 )) | |
echo "+${value}" | sed 's/+-/-/' | |
} | |
glados() { | |
local pitch=70 | |
local speed=180 | |
local lang=en |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# WEB | |
WEB is a recursive acronym. WEB stands for WEB Editor Bookmarklet. | |
WEB is a minimalistic HTML, CSS, and JavaScript CodePen-like web editor that fits inside a bookmarklet. | |
# Usage | |
Every time you edit the HTML, CSS, and JavaScript in the top three boxes, the result gets evaluated. | |
# Sharing | |
Click the share button in the bottom right to copy the contents of your WEB onto the clipboard for sharing. |
NewerOlder