- Install PostgreSQL with PostGIS via Postges.app
- Install brew as recommended.
- Install dependencies:
brew install geos gdal
- Add the following to your settings:
# settings.py
GDAL_LIBRARY_PATH = os.getenv('GDAL_LIBRARY_PATH')
const supabase = useMemo(() => { | |
return createClient( | |
process.env.NEXT_PUBLIC_SUPABASE_URL!, | |
process.env.NEXT_PUBLIC_SUPABASE_KEY!, | |
{ | |
global: { | |
headers: { | |
telegram_init_data: initDataRaw || "", | |
}, | |
}, |
"username" | |
"aussiegrit" | |
"mfbeltrones" | |
"buffalobills" | |
"aeexpo" | |
"puma" | |
"indiatoday" | |
"ystk_yrk" | |
"franco_esca" | |
"houstontexans" |
brew install geos gdal
# settings.py
GDAL_LIBRARY_PATH = os.getenv('GDAL_LIBRARY_PATH')
// Modified from @mutsuda's https://medium.com/@mutsuda/create-an-ios-widget-showing-google-spreadsheets-data-856767a9447e | |
// and @levelsio's https://gist.github.com/levelsio/a1ca0dd434b77ef26f6a7c403beff4d0 | |
// HOW TO | |
// 1) Make a new Metabase Question | |
// 2) Make the result an unique number and choose Visualization > Number | |
// 3) Write your metabase domain, your email and password below | |
const domain = "https://metabase.endpoint.com" | |
const username = "[email protected]" | |
const password = "p@ssw0rd" |
# Make sure you migrated from default H2 db to production-ready (like Postgres) | |
# because otherwise you'll loose data (dashboards, graphs, users) | |
docker pull metabase/metabase:latest | |
docker tag metabase/metabase:latest dokku/lu-metabase:latest | |
dokku tags:deploy lu-metabase |
This is an outdated version
language: bash | |
before_install: | |
- echo $super_secret_password | gpg --passphrase-fd 0 .travis/deploy.key.gpg | |
- eval "$(ssh-agent -s)" | |
- chmod 600 .travis/deploy.key | |
- ssh-add .travis/deploy.key | |
- ssh-keyscan git.host.com >> ~/.ssh/known_hosts | |
after_success: | |
- git remote add deploy [email protected]:app | |
- git config --global push.default simple |
const bitcoin = require('bitcoinjs-lib') // version @3.3.2, ver4 won't work | |
const request = require('request-promise-native') | |
const net = process.env.NETWORK === 'testnet' | |
? bitcoin.networks.testnet | |
: bitcoin.networks.bitcoin | |
const API = net === bitcoin.networks.testnet | |
? `https://test-insight.swap.online/insight-api` | |
: `https://insight.bitpay.com/api` |
# Adapted from example in Ch.3 of "Web Scraping With Python, Second Edition" by Ryan Mitchell | |
import re | |
import requests | |
from bs4 import BeautifulSoup | |
pages = set() | |
def get_links(page_url): | |
global pages |
from sanic import Sanic | |
import json | |
import asyncio | |
app = Sanic(__name__) | |
feeds = {} | |
class Feed(object): |