Skip to content

Instantly share code, notes, and snippets.

@Dianoga
Dianoga / mvp.ts
Created Jul 23, 2021
node-mv with promises and typescript
View mvp.ts
import mv from 'mv';
export function mvp(
src: string,
dest: string,
options: mv.Options = {}
): Promise<void> {
return new Promise((resolve, reject) => {
mv(src, dest, options, (error) => {
if (error) reject(error);
View Vacuum Hose Fittings.scad
/* [General] */
// Transition length in mm
transition_length = 10;
// Number of sections in cylinder (more = more circular)
circle_sections = 360;
// Used for debugging
show_real_part = true;
View EdgeRouter_IPv6_Commands_for_Comcast.txt
configure
# Configure Firewall
set firewall ipv6-name IPV6WAN_IN description 'IPV6WAN to internal'
set firewall ipv6-name IPV6WAN_IN default-action drop
set firewall ipv6-name IPV6WAN_IN rule 10 action accept
set firewall ipv6-name IPV6WAN_IN rule 10 state established enable
set firewall ipv6-name IPV6WAN_IN rule 10 state related enable
set firewall ipv6-name IPV6WAN_IN rule 10 log disable
@Dianoga
Dianoga / ttp-appt.js
Created Jan 2, 2020
Trusted Traveler Better Appointment Checker
View ttp-appt.js
#!/usr/bin/node
const https = require('https');
const currentAppt = '2020-05-26T09:30'; // Replace with the timestamp of your current appointment
const locationId = 6840; // Replace with the id of the location you want to check
const pushoverApiKey = '<your pushover api key>';
const pushoverUserKey = '<your pushover user key>';
View genesis_public_key
048c76c6c2eb6c5b8dfcfba1e8d9d0e3a6b75a0da7b34721b4b494f741ff37527678f5eaa1e7bc011fbeb6d5c47f1eef58b88e010df3164c4e026598019783c2d4
@Dianoga
Dianoga / 0_reuse_code.js
Created Feb 11, 2016
Here are some things you can do with Gists in GistBox.
View 0_reuse_code.js
// Use Gists to store code you would like to remember later on
console.log(window); // log the "window" object to the console
View test.groovy
/**
* Test
*
* Copyright 2015 Brian Steere
*
* Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except
* in compliance with the License. You may obtain a copy of the License at:
*
* http://www.apache.org/licenses/LICENSE-2.0
*
View edgerouter-qos
#
# fair-queue based settings for EdgeRouter Lite traffic shaping
#
# download is typically 30 and change. everything can burst to 100%
# of bandwidth, priority rules keep the garbage in check
set traffic-policy shaper download
set traffic-policy shaper download bandwidth 60Mbit
View keybase.md

Keybase proof

I hereby claim:

  • I am dianoga on github.
  • I am dianoga (https://keybase.io/dianoga) on keybase.
  • I have a public key whose fingerprint is 21CE 2C86 F1AB 7F45 DBD8 27F3 E7C6 0755 DB7B BB9A

To claim this, I am signing this object:

@Dianoga
Dianoga / ge-link-bulb.dt.groovy
Created Dec 8, 2014
ge-link-bulb.dt.groovy
View ge-link-bulb.dt.groovy