Skip to content

Instantly share code, notes, and snippets.

@dimisjim
dimisjim / jsonToCsvConverterGoogleTimeline.py
Created June 9, 2024 10:49
jsonToCsvConverterGoogleTimeline
#!/usr/bin/python3
import json
import csv
import sys
import datetime
import os
def make_reader(in_json):
@theodric
theodric / zyxel_nr7101_setup_hacks_tips_and_tweaks.txt
Last active December 7, 2025 12:19
Zyxel NR7101 setup/hacks/tips and tweaks
0. Don't have a SIM card in when you're updating radio firmware or it will bomb out partway through as it changes from internal IP to IP passthrough
1. Disable external IP passthrough mode: Network Setting -> Broadband -> Cellular APN -> #1 -> Modify icon -> "IP Passthrough" slider to off
2. Use "management" Wi-Fi AP as general Wi-Fi AP (with limitations) -> Network Setting -> Bridge1 -> Modify icon -> Move the Wi-Fi AP interface to the pane on the right alongside LAN1
NOTE: by default, once you do the above, the router will happily pass traffic from devices on the Wi-Fi AP to other devices on the LAN1 subnet, but will block traffic originating from the Wi-Fi AP from exiting to the Internet via the LTE side of the device. You can clumsily hack around this by setting another device, e.g. another Wi-Fi AP or Raspberry Pi or Cray supercomputer, as the default gateway for the LAN1 subnet in your DHCP server config, and pointing *that* device at the Zyxel as *its* default GW. This adds additional hops, but enabl
@erin-allison
erin-allison / fourteen.patch
Last active November 30, 2022 07:10
vGPU_Unlock Patches
--- ./common/inc/nv-time.h
+++ ./common/inc/nv-time.h
@@ -205,7 +205,7 @@
// the requested timeout has expired, loop until less
// than a jiffie of the desired delay remains.
//
- current->state = TASK_INTERRUPTIBLE;
+ current->__state = TASK_INTERRUPTIBLE;
do
{
@arbakker
arbakker / README.md
Last active August 12, 2023 15:22
QGIS processing tool for joining PDOK AHN3 WCS with point data

PDOK AHN3 WCS QGIS Processing Tool

QGIS processing tools for joining PDOK AHN3 WCS (elevation) data with point data.

Tested with QGIS version 3.18, will most likely work with all QGIS version 3.X.

Installation

  1. Download pdok-ahn3-wcs-tool.py
  2. Open the QGIS Processing Toolbox and click Add Script to Toolbox... and browse to the downloaded pdok-ahn3-wcs-tool.py file:
@stewartmcgown
stewartmcgown / takeout-discovery.json
Last active October 1, 2025 10:35
Google Takeout API
{
"title": "Takeout API",
"discoveryVersion": "v1",
"ownerName": "Google",
"version_module": true,
"resources": {
"exports": {
"methods": {
"get": {
"flatPath": "v2/{service}/exports/{exportId}",
@rmi1974
rmi1974 / usb_device_descriptor_patching.md
Last active July 24, 2025 00:55
Modify USB device descriptors/properties by patching firmware #firmware #debug
@devdattaT
devdattaT / LocationHistory.md
Last active September 25, 2025 09:49
How to Visualize your Google Location History

Google is extremely transparent about the Location History it has on you. You can check it out on the timeline feature in the Google Maps application on the phone, or on https://www.google.com/maps/timeline It is possible that you have that turned off, and in that case, consider yourself lucky.

If there is data there, you can view it online, or Download and Analyze it yourself.

Note: The conversion script has been updated on 2024-06-24, to match the updated format which is now generated by Google Takeout

import json
import csv
import sys
from datetime import datetime
import os
def has_keys(dictionary, keys):
return all(key in dictionary for key in keys)
def make_reader(in_json):
@muminoff
muminoff / pano-converter3.py
Created June 17, 2017 16:28
Equirectangular panorama to cube map (Python 3)
import sys
from PIL import Image
from math import pi,sin,cos,tan,atan2,hypot,floor
from numpy import clip
# get x,y,z coords from out image pixels coords
# i,j are pixel coords
# face is face number
# edge is edge length
def outImgToXYZ(i,j,face,edge):