Skip to content

Instantly share code, notes, and snippets.

View runxel's full-sized avatar
:shipit:
go where nobody else went

Lucas Becker runxel

:shipit:
go where nobody else went
View GitHub Profile
# generates an svg topographical map from a GeoTIFF file.
import rasterio
from shapely.geometry import Point, LineString
from skimage.measure import find_contours
from numpy import rot90, fliplr, flipud
# this data was downloaded from https://maps.canada.ca/czs/index-en.html
fp = r'dataset/DEM.tif'
dataset = rasterio.open(fp)
_min = None
@intrnl
intrnl / proton-compact-userchrome.css
Last active January 20, 2023 13:35
Revert Firefox Proton to Photon compact
/**
* Moved to a new repository.
* https://github.com/intrnl/firefox-revert-proton
*/
:root {
--tab-min-height: 28px !important;
--toolbarbutton-inner-padding: 6px !important;
--toolbarbutton-outer-padding: 1px !important;
--toolbar-start-end-padding: 1px !important;
@premek
premek / mv.sh
Last active March 5, 2024 17:43
Rename files in linux / bash using mv command without typing the full name two times
# Put this function to your .bashrc file.
# Usage: mv oldfilename
# If you call mv without the second parameter it will prompt you to edit the filename on command line.
# Original mv is called when it's called with more than one argument.
# It's useful when you want to change just a few letters in a long name.
#
# Also see:
# - imv from renameutils
# - Ctrl-W Ctrl-Y Ctrl-Y (cut last word, paste, paste)
@jborichevskiy
jborichevskiy / jon-roam-daily-template.md
Last active August 31, 2022 04:41
The daily template I use for Roam Research https://roamresearch.com/
  • Weekly Agenda (created on a different day, and embedded with /Block Reference)
  • [[Morning Questions]]
    • {{[[slider]]}} How many hours of sleep did I get?
    • What's one thing top of mind today?
    • What's the one thing I need to get done today to make progress?
    • Review #[[Index: Questions]] #values
  • Agenda
    • {{[[TODO]]}} Morning walk #goal-health #habit
    • {{[[TODO]]}} Check calendar for scheduled events
  • {{[[TODO]]}} Morning focus hour
@IanColdwater
IanColdwater / twittermute.txt
Last active April 22, 2024 17:26
Here are some terms to mute on Twitter to clean your timeline up a bit.
Mute these words in your settings here: https://twitter.com/settings/muted_keywords
ActivityTweet
generic_activity_highlights
generic_activity_momentsbreaking
RankedOrganicTweet
suggest_activity
suggest_activity_feed
suggest_activity_highlights
suggest_activity_tweet
@tfeldmann
tfeldmann / duplicates.py
Last active January 19, 2024 23:36
Fast duplicate file finder written in python
#!/usr/bin/env python
"""
Fast duplicate file finder.
Usage: duplicates.py <folder> [<folder>...]
Based on https://stackoverflow.com/a/36113168/300783
Modified for Python3 with some small code improvements.
"""
import os
import sys
@apankrat
apankrat / readme.txt
Last active August 30, 2021 02:45
μGiffer 0.9.10 (preview)
-- μGiffer / preview release --
https://iobureau.com/files/uGiffer-0.9.12.zip (213576 bytes)
------------------------> 32-bit/uGiffer.exe (111488 bytes)
------------------------> 64-bit/uGiffer.exe (123264 bytes)
Both exe files carry an EV signature of IO Bureau SA.
For details see here -> https://iobureau.com/ugiffer
@AveYo
AveYo / !BlackLess.md
Last active May 20, 2024 06:19
A High Contrast based neutral / less blues tone Windows Dark / Light Theme by AveYo

Blackless.theme

@kcchien
kcchien / README.md
Last active November 7, 2023 12:49
Visual Studio Code command for Fish shell

Save code.fish in ~/.config/fish/functions

@mrkwatz
mrkwatz / Firefox_Scrollbars-W10style.md
Last active August 5, 2023 03:18
Firefox 57 Windows 10 UWP Style Overlay Scrollbars

As far as I am aware the time has come and as of Firefox 72 XUL has been stripped from firefox and so the method used to inject this scrollbar theme is no longer supported -- reference the following for future scroll themes:

Mozilla is currently working to phase out the APIs used to make this theme work. I will try to maintain each version until that time but eventually there will be no workaround. When that time comes there is a new, but more limited api for applying simple themes to scrollbars. In nightly I am currently using the following userContent.css

:root{
	scrollbar-width: thin;
	scrollbar-color: rgb(82, 82, 82) rgb(31, 31, 31);
}