Skip to content

Instantly share code, notes, and snippets.

@jpkotta
jpkotta / diff
Created April 18, 2023 23:35
tippecanoe allow-existing-test fail
diff -u /tmp/tippecanoe/src/tippecanoe-2.24.0/tests/allow-existing/both.mbtiles.json /tmp/tippecanoe/src/tippecanoe-2.24.0/tests/allow-existing/both.mbtiles.json.check
--- /tmp/tippecanoe/src/tippecanoe-2.24.0/tests/allow-existing/both.mbtiles.json 2023-03-09 22:26:48.000000000 -0600
+++ /tmp/tippecanoe/src/tippecanoe-2.24.0/tests/allow-existing/both.mbtiles.json.check 2023-04-18 18:25:48.602606945 -0500
@@ -2172,7 +2172,7 @@
,
{ "type": "Feature", "properties": { "STATEFP10": "06", "COUNTYFP10": "001", "TRACTCE10": "428500", "GEOID10": "06001428500", "NAME10": "4285", "NAMELSAD10": "Census Tract 4285", "MTFCC10": "G5020", "FUNCSTAT10": "S", "ALAND10": 629154, "AWATER10": 378560, "INTPTLAT10": "+37.7601324", "INTPTLON10": "-122.2593887" }, "geometry": { "type": "Polygon", "coordinates": [ [ [ -122.263584, 37.767390 ], [ -122.262039, 37.766915 ], [ -122.252855, 37.762912 ], [ -122.253628, 37.761691 ], [ -122.253885, 37.760741 ], [ -122.253971, 37.760673 ], [ -122.254572, 37.760876 ], [ -122.254829, 37.760469
// This buffer is for experimenting with Go code.
// Press C-c C-c to format and evaluate the buffer,
// or C-c C-p to send the buffer to the Go playground.
package main
import (
"bytes"
"encoding/binary"
"github.com/syrinsecurity/gologger"
"time"
@jpkotta
jpkotta / PKGBUILD.diff
Created October 23, 2020 07:50
libclc-git AUR
diff --git a/PKGBUILD b/PKGBUILD
index db5d114..67d607c 100644
--- a/PKGBUILD
+++ b/PKGBUILD
@@ -1,7 +1,7 @@
# Contributor: Laurent Carlier <[email protected]>
# Maintainer: Solomon Choina <[email protected]>
pkgname=libclc-git
-pkgver=0.2.0_r359832.77f8f813a9a
+pkgver=0.2.0_r369795.a00acbab45b0
@jpkotta
jpkotta / mkinitcpio.conf
Last active April 1, 2020 01:31
mkinitcpio.conf
# vim:set ft=sh
# MODULES
# The following modules are loaded before any boot hooks are
# run. Advanced users may wish to specify all system modules
# in this array. For instance:
# MODULES=(piix ide_disk reiserfs)
MODULES=(bcache)
# BINARIES
# This setting includes any additional binaries a given user may
@jpkotta
jpkotta / PKGBUILD
Created January 21, 2020 20:50
mfgtools PKGBUILD
# Maintainer: Theowhy <[email protected]>
# Contributor:
pkgname=mfgtools
pkgver=1.3.102
pkgrel=2
pkgdesc="Freescale/NXP I.MX Chip image deploy tools"
arch=(x86_64)
url="https://github.com/NXPmicro/mfgtools"
license=('BSD')
groups=()
def make_constants(mapping):
"""Create a namedtuple of constants
These are a poor man's enum.
Example:
c = make_constants({"ONE":1, "TWO":2, "THREE":3})
c.ONE == 1
:param mapping: A mapping with names as keys and values as values.
#!/bin/bash
set -o errexit -o nounset -o pipefail
IFS=$'\n\t'
this="$0"
emmc_mode=false
if [[ "$this" == *make-emmc.sh ]] ; then
emmc_mode=true
fi
from collections import namedtuple
_d = {
'NACK_RESPONSE': 0x01,
'DEBUG_MESSAGE': 0x02,
'GET_SW_VERSION_CMD': 0x03,
'WATCHDOG_PING_MESSAGE': 0x04,
'CAN_SET_CHANNEL_STATE_CMD': 0x10,
'CAN_SET_BITRATE_CMD': 0x11,
'CAN_MESSAGE': 0x12,
@jpkotta
jpkotta / python-pep8.el
Created July 20, 2012 14:50 — forked from ieure/python-pep8.el
Run pep8.py on Python source in Emacs.
;;; python-pep8.el --- minor mode for running `pep8'
;; Copyright (c) 2009, 2010 Ian Eure <[email protected]>
;; Author: Ian Eure <[email protected]>
;; Keywords: languages python
;; Last edit: 2010-02-12
;; Version: 1.01
@jpkotta
jpkotta / python-pylint.el
Created July 11, 2012 22:43 — forked from ieure/python-pylint.el
Run pylint on Python source in Emacs.
;;; python-pylint.el --- minor mode for running `pylint'
;; Copyright (c) 2009, 2010 Ian Eure <[email protected]>
;; Author: Ian Eure <[email protected]>
;; Keywords: languages python
;; Last edit: 2010-02-12
;; Version: 1.01