Skip to content

Instantly share code, notes, and snippets.

@Meroje
Meroje / gist:b08a4e358517ba7a26de533e494a92d4
Created September 20, 2017 16:25
Brief YAML reference
https://github.com/eevee/camel/blob/1f9132ce43f6933bd3e91681404aab817876b3e1/docs/yamlref.rst
// SDS011 dust sensor example
// for use with SoftSerial
// -----------------------------
#include <SoftwareSerial.h>
uint8_t wakequery[] = {
0x01
};
uint8_t readquery[] = {
@Meroje
Meroje / unicode.txt
Created July 24, 2012 20:19
Some handpicked Unicode Art
1.)
║▌║││ █ ▌│║║
2.)
▄▀▄▀▄▀▄▀
3.)
{
"header": {
"Name": "KType",
"Variant": "standard",
"Layout": "NoAnimations",
"Base": "Base",
"Version": "0.2",
"Author": "Meroje",
"KLL": "0.5c",
"Date": "2019-01-14",
@Meroje
Meroje / getec2lifecycle.sh
Last active May 21, 2019 16:32 — forked from urjitbhatia/getec2lifecycle.sh
Check if an ec2 instance is spot or normal lifecycle
#!/usr/bin/env bash
aws ec2 describe-spot-instance-requests \
--filters Name=instance-id,Values="$(wget -q -O - http://169.254.169.254/latest/meta-data/instance-id)" \
--region "$(wget -q -O - http://169.254.169.254/latest/dynamic/instance-identity/document | jq -r '.region')" | \
jq -r '.SpotInstanceRequests | if length > 0 then "spot" else "normal" end'
begin remote
name blyss-nec
bits 16
flags SPACE_ENC
eps 25
aeps 100
header 9000 4500
one 560 1690
forward-zone:
name: "."
# forward-addr: 1.1.1.1@853#cloudflare-dns.com
# forward-addr: 1.0.0.1@853#cloudflare-dns.com
# forward-addr: 2606:4700:4700::1111@853#cloudflare-dns.com
# forward-addr: 2606:4700:4700::1001@853#cloudflare-dns.com
forward-addr: 2001:41d0:302:2200::180@853#dot.bortzmeyer.fr
forward-addr: 193.70.85.11@853#dot.bortzmeyer.fr
forward-addr: 91.239.100.100@853#anycast.censurfridns.dk
@Meroje
Meroje / comment.php
Created December 4, 2013 07:43
TimeDiff For Humans
<?php
use Carbon\Carbon;
class Comment extends Eloquent {
protected $guarded = array();
protected $softDelete = true;
public static $rules = array();
127.0.0.1 us.rdx2.lgtvsdp.com
127.0.0.1 us.info.lgsmartad.com
127.0.0.1 us.ibs.lgappstv.com
127.0.0.1 us.lgtvsdp.com
127.0.0.1 ad.lgappstv.com
127.0.0.1 smartshare.lgtvsdp.com
127.0.0.1 ibis.lgappstv.com
# added after fork
# from https://www.reddit.com/r/pihole/comments/6qmpv6/blacklists_for_lg_webos_tvs/ and others