Skip to content

Instantly share code, notes, and snippets.

@suvash
suvash / cloudflare_ddns.sh
Last active May 1, 2019
Cloudflare DNS record update via bash (for DDNS like behaviour)
View cloudflare_ddns.sh
#!/usr/bin/env bash
DDNS_DIR='/tmp/cf_ddns'
PREVIOUS_IP_FILE="$DDNS_DIR/dynamic_ip.txt"
CF_REQUEST_RESPONSE_FILE="$DDNS_DIR/cf_response.json"
mkdir -p "$DDNS_DIR"
[ ! -f "$PREVIOUS_IP_FILE" ] && touch "$PREVIOUS_IP_FILE"
# NEW_IP="$(dig +short myip.opendns.com @resolver1.opendns.com)"
@suvash
suvash / dhcd-resnet32-deeplearning.ipynb
Last active Sep 30, 2020
DHCD (Devanagari) dataset ResNet32 model fitting
View dhcd-resnet32-deeplearning.ipynb
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
View keybase.md

Keybase proof

I hereby claim:

  • I am suvash on github.
  • I am suvash (https://keybase.io/suvash) on keybase.
  • I have a public key whose fingerprint is EC3F FCCC 7551 E09D 49C9 DFE5 943F DA11 5E73 D2B2

To claim this, I am signing this object:

View creating_a_date_dimension_table_in_postgresql.sql
DROP TABLE if exists d_date;
CREATE TABLE d_date
(
date_dim_id INT NOT NULL,
date_actual DATE NOT NULL,
epoch BIGINT NOT NULL,
day_suffix VARCHAR(4) NOT NULL,
day_name VARCHAR(9) NOT NULL,
day_of_week INT NOT NULL,
You can’t perform that action at this time.