Skip to content

Instantly share code, notes, and snippets.

@gnimmel
gnimmel / use-daedalus-socket-cardano-cli.sh
Created August 15, 2022 20:43 — forked from ilyar/use-daedalus-socket-cardano-cli.sh
Use Daedalus socket for cardano-cli for Mainnet or Testnet the Cardano
#!/usr/bin/env bash
# Install cardano-cli or use docker https://gist.github.com/ilyar/bf4c2346be1a74c50e488181986808fb
#
# Linux https://hydra.iohk.io/job/Cardano/cardano-node/cardano-node-linux/latest-finished
# Win64 https://hydra.iohk.io/job/Cardano/cardano-node/cardano-node-win64/latest-finished
# Macos https://hydra.iohk.io/job/Cardano/cardano-node/cardano-node-macos/latest-finished
# Extcact only cardano-cli into /usr/local/bin/cardano-cli
# Check
cardano-cli --version
@gnimmel
gnimmel / country-bounding-boxes.py
Created July 17, 2021 21:56 — forked from graydon/country-bounding-boxes.py
country bounding boxes
# extracted from http//www.naturalearthdata.com/download/110m/cultural/ne_110m_admin_0_countries.zip
# under public domain terms
country_bounding_boxes = {
'AF': ('Afghanistan', (60.5284298033, 29.318572496, 75.1580277851, 38.4862816432)),
'AO': ('Angola', (11.6400960629, -17.9306364885, 24.0799052263, -4.43802336998)),
'AL': ('Albania', (19.3044861183, 39.624997667, 21.0200403175, 42.6882473822)),
'AE': ('United Arab Emirates', (51.5795186705, 22.4969475367, 56.3968473651, 26.055464179)),
'AR': ('Argentina', (-73.4154357571, -55.25, -53.628348965, -21.8323104794)),
'AM': ('Armenia', (43.5827458026, 38.7412014837, 46.5057198423, 41.2481285671)),
@gnimmel
gnimmel / gist:37b958d4ee2f4a88fece68dfd925f0d3
Created December 1, 2018 16:42 — forked from vladimirtsyupko/gist:10964772
Git force pull to overwrite local files
git fetch --all
git reset --hard origin/master
git pull origin master
@gnimmel
gnimmel / globe.cpp
Created October 16, 2018 18:48 — forked from companje/globe.cpp
openFrameworks code for mouse rotating globe with conversion from quaternions to latitude longitude in orthogonal projection
#include "ofMain.h"
class ofApp : public ofBaseApp {
public:
ofImage earth;
ofQuaternion qTo;
float angle;
ofVec3f axis;
@gnimmel
gnimmel / Makefile
Created June 25, 2018 21:52 — forked from sighingnow/Makefile
Detect operating system in Makefile.
# Detect operating system in Makefile.
# Author: He Tao
# Date: 2015-05-30
OSFLAG :=
ifeq ($(OS),Windows_NT)
OSFLAG += -D WIN32
ifeq ($(PROCESSOR_ARCHITECTURE),AMD64)
OSFLAG += -D AMD64
endif
@gnimmel
gnimmel / git_cheat-sheet.md
Created June 20, 2018 22:50 — forked from davfre/git_cheat-sheet.md
git commandline cheat-sheet
Verifying my Blockstack ID is secured with the address 137HKUdKjVefBx77RmDNhHL59SrsNs3LXg https://explorer.blockstack.org/address/137HKUdKjVefBx77RmDNhHL59SrsNs3LXg
cat /dev/urandom |LC_ALL=C tr -dc 'A-Z9' | fold -w 81 | head -n 1
Or Online:
https://ipfs.io/ipfs/QmdqTgEdyKVQAVnfT5iV4ULzTbkV4hhkDkMqGBuot8egfA
@gnimmel
gnimmel / fresh-chrome.sh
Created October 31, 2017 19:58 — forked from stuartsierra/fresh-chrome.sh
Launch new instances of Google Chrome on OS X with isolated cache, cookies, and user config
#!/usr/bin/env bash
# fresh-chrome
#
# Use this script on OS X to launch a new instance of Google Chrome
# with its own empty cache, cookies, and user configuration.
#
# The first time you run this script, it will launch a new Google
# Chrome instance with a permanent user-data directory, which you can
# customize below. Perform any initial setup you want to keep on every
@gnimmel
gnimmel / graph_search.cpp
Created October 17, 2017 22:13 — forked from douglas-vaz/graph_search.cpp
Breadth First Search and Depth First Search in C++
#include <iostream>
#include <string>
#include <vector>
#include <queue>
#include <stack>
#include <algorithm>
using namespace std;
class Node{