Skip to content

Instantly share code, notes, and snippets.

View robert-claypool's full-sized avatar
💥
Breaking Things

Robert Claypool robert-claypool

💥
Breaking Things
View GitHub Profile
@robert-claypool
robert-claypool / debian-fullscreen-in-hyperv.md
Created July 13, 2016 18:05
How To Make Debian Linux Fullscreen in Hyper-V
@robert-claypool
robert-claypool / app_offline.htm
Created July 21, 2015 20:11
A simple "app offline" template for ASP.NET
<!DOCTYPE html>
<html>
<head>
<meta charset="UTF-8">
<title>Offline</title>
</head>
<body style="margin:3em;font-family:sans-serif">
<h2>Offline</h2>
<p>This site is offline for maintenance.</p>
<!--
@robert-claypool
robert-claypool / ignore-line-endings
Last active August 21, 2023 15:05
Ignore Line Endings with Git Merge
git config merge.renormalize true # prevents unnecessary merge conflicts, http://stackoverflow.com/a/12194759/23566
@robert-claypool
robert-claypool / psql-debian-installation.md
Created March 25, 2016 19:58
Postgres/PostGIS Installation on Debian

Postgres

  1. Create the file /etc/apt/sources.list.d/pgdg.list, and add a line for the repository: deb http://apt.postgresql.org/pub/repos/apt/ YOUR_DEBIAN_VERSION_HERE-pgdg main

  2. Import the repository signing key, and update the package lists.

wget --quiet -O - https://www.postgresql.org/media/keys/ACCC4CF8.asc | \
  sudo apt-key add -
sudo apt-get update 
@robert-claypool
robert-claypool / xy.truth
Last active March 29, 2023 11:53
Longitude is X, Latitude is Y
Longitude is X,
Latitude is Y.
That is all.
@robert-claypool
robert-claypool / dd2webmercator.py
Last active September 27, 2022 16:02
Convert bounding box values from decimal degrees to Web Mercator (Auxiliary Sphere) EPSG:3857
# This script converts bounding box values from decimal degrees to
# WGS 1984 Web Mercator (Auxiliary Sphere) EPSG:3857. Note that Web Mercator
# was originally assigned wkid 102100, but was later changed to 3857.
# See http://resources.arcgis.com/en/help/rest/apiref/geometry.html
# Arguments and Output
# With flags, arguments can be given in any order, but the output will always
# be ordered like a GeoJSON bbox: "xmin, ymin, xmax, ymax". In both the GeoJSON and
# Esri JSON specs, a bounding box (or envelope) is defined with the lowest
# values for all axes followed by the highest values, e.g. "xmin, ymin, xmax, ymax".
@robert-claypool
robert-claypool / building-vim-from-source.md
Last active August 24, 2022 07:27
Building Vim from Source

Assumes that Python2, Python3, and Lua are installed...

git clone https://github.com/vim/vim.git
cd vim
./configure --with-features=huge \
            --enable-pythoninterp=yes \
            --enable-python3interp=yes \
            --enable-luainterp=yes
make
sudo make install
{
"name": "Blob Fail Workflow",
"nodes": [
{
"parameters": {},
"name": "Start",
"type": "n8n-nodes-base.start",
"typeVersion": 1,
"position": [
240,
@robert-claypool
robert-claypool / sha1-digest-calculation.py
Last active August 23, 2020 21:28
SHA1 digest calculation using Python's hashlib
import hashlib
print hashlib.sha1(open("c:\\temp\\my.file", "rb").read()).hexdigest()
@robert-claypool
robert-claypool / carto-links.md
Last active October 17, 2019 05:19
CartoDB Examples & Docs