This file contains hidden or 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 python3 | |
# First create subdomain. Eg: laptop.example.com | |
# Then set parameters belog. Eg: subdom = "laptop" | |
# This script will fetch external public ip and set it as value. | |
# Make sure target record is A record! | |
import json, urllib.request | |
""" | |
urllib.request.install_opener( |
This file contains hidden or 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 node | |
const EMAIL = "[email protected]"; | |
const X_AUTH_KEY = "ABCDE"; | |
const ZONE = "ABCDE"; | |
const os = require("os"); | |
const fetch = require("node-fetch"); | |
const cf = require("cloudflare")({ | |
email: EMAIL, |
This file contains hidden or 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 <stdio.h> | |
#include <stdlib.h> | |
#include <string.h> | |
#include <unistd.h> | |
#include <sys/stat.h> | |
#include <dlfcn.h> | |
#include <dirent.h> | |
int main(int argc, char **argv) { |
This file contains hidden or 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/env sh | |
#set -x | |
set -o pipefail | |
PREFIX=usr_ | |
NAME="${PREFIX}$(hostname | cut -d. -f1)" | |
INFO="$(uname -a) --- $(date)" | |
CHAN="${1:-#test}" | |
PING=10.0 |
This file contains hidden or 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 | |
#set -x | |
set -o pipefail | |
PREFIX=usr | |
NAME="${PREFIX}$(hostname | cut -d. -f1)" | |
CHAN="${1:-#test}" | |
INFO="$(date) $(uname -a)" | |
PING=10.0 |
This file contains hidden or 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 <LoRa.h> | |
#include <Wire.h> | |
#include <I2CSoilMoistureSensor.h> | |
#define MAGIC 0x74736574 // "test" | |
#define BUTTON 1 | |
static volatile bool ready = false; | |
static I2CSoilMoistureSensor sensor; |
This file contains hidden or 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
query gistquery($name: String = "pvtmert", $count: Int = 100, $field: GistOrderField = UPDATED_AT, $sort: OrderDirection = DESC, $privacy: GistPrivacy = ALL) { | |
user(login: $name) { | |
gists(first: $count, orderBy: {field: $field, direction: $sort}, privacy: $privacy) { | |
nodes { | |
name | |
owner { | |
id | |
login | |
url | |
resourcePath |
This file contains hidden or 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
typedef void (*generic_function)(); | |
typedef struct Allocation { | |
size_t size; | |
void *dataptr; | |
char usertag[1024]; | |
generic_function *source; | |
struct Allocation *next; | |
} allocation_t; |
This file contains hidden or 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
new.gh.n0pe.me. 1 IN A 185.199.111.153 | |
new.gh.n0pe.me. 1 IN A 185.199.110.153 | |
new.gh.n0pe.me. 1 IN A 185.199.109.153 | |
new.gh.n0pe.me. 1 IN A 185.199.108.153 | |
old.gh.n0pe.me. 1 IN A 192.30.252.154 | |
old.gh.n0pe.me. 1 IN A 192.30.252.153 |
This file contains hidden or 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 <stdio.h> | |
#include <stdlib.h> | |
#include <string.h> | |
#include <signal.h> | |
#include <ctype.h> | |
typedef enum Type { | |
TYPE_NONE = 1<<0, | |
TYPE_OPERATOR = 1<<1, |