Skip to content

Instantly share code, notes, and snippets.

@emamd
emamd / mapshaper-getting-started.md
Last active October 22, 2024 21:50
Getting started with mapshaper

Getting started with mapshaper

Mapshaper is a javascript library for editing GIS data formats including GeoJSON, TopoJSON, Shapefiles and others. It's easier to install and can replace some of the functionality of ogr2ogr, allowing for integration into node-based workflows.

There's also an online gui at mapshaper.org you can use.

Mapshaper command reference

Some practical examples

@fblanton
fblanton / Env Variables for NodeJS Apps.md
Last active February 28, 2024 19:31
Hiding NodeJS Secret Keys in .bash_profile

Hiding Secret Keys for your NodeJS app with Bash

GitHub is a great place to pubslish your code; and it is often required to post code there when learning to code. If you are writing a NodeJS app and being required to publish code to GitHub you should be careful of pushing any code that contains secret API keys. These keys could be scraped and used to write apps with your keys.

tl;dr

Don't have time to read all the stuff below. I get it. Add:

export KEY=value
export ANOTHER_KEY=anothervalue
@JamieMason
JamieMason / unfollow.js.md
Last active April 16, 2025 19:28
Unfollow everyone on twitter.com

Unfollow everyone on twitter.com

By @foldleft.bsky.social, see also Unfollow everyone on bsky.app.

  1. Go to https://twitter.com/YOUR_USER_NAME/following
  2. Open the Developer Console. (COMMAND+ALT+I on Mac)
  3. Paste this into the Developer Console and run it
// Unfollow everyone on twitter.com, by Jamie Mason (https://twitter.com/fold_left)