Skip to content

Instantly share code, notes, and snippets.

View drio's full-sized avatar
🐢
I don't know

David Rio drio

🐢
I don't know
View GitHub Profile
@drio
drio / latest-dump.txt
Created December 7, 2021 19:57
latest dump
1: Start Date
2: End Date
3: Response Type
4: IP Address
5: Progress
6: Duration (in seconds)
7: Finished
8: Recorded Date
9: Response ID
10: Recipient Last Name
@drio
drio / september.txt
Created December 7, 2021 19:56
sep-2021 dump
1: StartDate
2: EndDate
3: Status
4: IPAddress
5: Progress
6: Duration (in seconds)
7: Finished
8: RecordedDate
9: response_date
10: response_time
/* eslint-disable no-unused-vars */
import React from "react";
import styled from "styled-components";
import { COLORS } from "../../constants";
import VisuallyHidden from "../VisuallyHidden";
const STYLES = {
small: {
height: 8,
@drio
drio / chunk.js
Created November 12, 2021 16:52
slate chunk js
(function(){const o="hubspotutk";const t='[data-export="sys:field:hubspot_cookie"] > div > input';function n(o){const t=`; ${document.cookie}`;const n=t.split(`; ${o}=`);return n.length===2?n.pop().split(";").shift():"not_found"}const e=n(o);const c=document.querySelectorAll(t);console.log("Cookie value:",e);console.log("Hidden elem found:",c.length===1);if(c){c.value=e}})();
@drio
drio / tez.txt
Created August 24, 2021 11:52
Tez verification
I am attesting that this GitHub handle drio is linked to the Tezos account tz1KnTFKFWWFGphXugHWGvZD4V7Dhjf2dBYq for tzprofiles
sig:edsigu6XLADdM8cyRz7sZaZmz4Xfw6Wx5LSx499K8rmhMXeianHTyZYUwcuh72AZ6SdzW3bLg3ZmcURnKK1vyrJyDQ3XBFA9ykR
@drio
drio / code-extensions-osx.md
Last active August 6, 2021 12:34
visual studio code shortcuts osx

A list of shortcuts for visual studio (osx)

General

What keystrokes
Toggle comment cmd-/

Terminal

set nocompatible
filetype off
call plug#begin()
Plug 'scrooloose/nerdtree', { 'on': 'NERDTreeToggle' }
Plug 'ryanoasis/vim-devicons'
Plug 'kien/ctrlp.vim'
Plug 'pangloss/vim-javascript'
@drio
drio / iptables_openwrt_iot.md
Created July 20, 2021 21:18
Configuring iptables on openwrt for IOT devices.

I have a network like this:

internet ------- router1 (openwrt) -------192.168.8.0/24 ----router2 (openwrt) ------- 10.0.0.0/24

I have IOT devices that I don't trust in the 10.0.0.0/24 network (IOT network). The 192.168.8.0/24 is my home network. I wanted iot devices to have internet access but disable access to my 192 network.

To do that, I sshed into router2 and run the following cmds:

SELECT
NVL (MIN(days_since_last_positive), 0) AS days_since_last_positive
FROM (
SELECT
order_id,
ROUND(trunc(sysdate) - to_date(specimen_received_datetime, 'YYYY-MM-DD"T"HH24:MI:SS'), 2) AS days_since_last_positive
FROM
covid.results
WHERE
tufts_person_id = '1295695'
@drio
drio / prod_vs_master.patch
Created June 30, 2021 07:50
prod branch vs master Destiny One
diff --git a/src/script/deploy_consumers.sh b/src/script/deploy_consumers.sh
index bab9e1b..ff16686 100755
--- a/src/script/deploy_consumers.sh
+++ b/src/script/deploy_consumers.sh
@@ -35,19 +35,19 @@ done < <(cat $CONFIG_PATH)
# Make the CSV feeds and log folders
mkdir -p $BASE_DIR
-chown -R d1consumer $BASE_DIR
+chown -R zzkafka $BASE_DIR