Skip to content

Instantly share code, notes, and snippets.

View drschwabe's full-sized avatar

Derrick Schwabe drschwabe

View GitHub Profile
@joepie91
joepie91 / es-modules-are-terrible-actually.md
Last active June 15, 2024 04:54
ES Modules are terrible, actually

ES Modules are terrible, actually

This post was adapted from an earlier Twitter thread.

It's incredible how many collective developer hours have been wasted on pushing through the turd that is ES Modules (often mistakenly called "ES6 Modules"). Causing a big ecosystem divide and massive tooling support issues, for... well, no reason, really. There are no actual advantages to it. At all.

It looks shiny and new and some libraries use it in their documentation without any explanation, so people assume that it's the new thing that must be used. And then I end up having to explain to them why, unlike CommonJS, it doesn't actually work everywhere yet, and may never do so. For example, you can't import ESM modules from a CommonJS file! (Update: I've released a module that works around this issue.)

And then there's Rollup, which apparently requires ESM to be u

@SuryaElite
SuryaElite / sublime-merge-command-line.md
Created September 23, 2018 09:49
Launch Sublime Merge from the command line on OSX

Launch Sublime Merge from the command line on OSX

Sublime Merge includes a command line tool, smerge, to work with git, subversion, mercurial projects on the command line. This can be used to open projects in Sublime Merge using the command line.

Requirements

  • Sublime Merge installed in your system within Applications folder

Setup

@Brainiarc7
Brainiarc7 / 01-installing-linux-on-eurocom-q6.md
Last active June 8, 2024 00:59
Installing Ubuntu 18.04LTS on the Eurocom Q6, among other tweaks.

Installing Linux on the Eurocom Q6:

For starters,

If you are dual booting, install Windows first, and partition from there with a tool such as Minitool. You'll only need two partitions, one for root and optionally, a small one for swap (say, 8GB). Partition them as appropriate, and when done, reboot into the UEFI menu and ensure that:

(a). Secure boot is disabled (otherwise you won't be able to load up proprietary drivers needed for the Nvidia GPU).

(b). Confirm that you're booting in UEFI mode ONLY. This is the default. CSM should remain disabled. Here's why.

@paulhandy
paulhandy / cleanup-zfs-snapshots
Created September 18, 2017 19:19
Clean up old zfs snapshots
https://serverfault.com/questions/340837/how-to-delete-all-but-last-n-zfs-snapshots#340846
You may find something like this a little simpler
zfs list -t snapshot -o name | grep ^tank@Auto | tac | tail -n +16 | xargs -n 1 zfs destroy -r
output the list of snapshot (names only) with zfs list -t snaphot -o name
filter to keep only the ones that match tank@Auto with grep ^tank@Auto
reverse the list (previously sorted from oldest to newest) with tac
limit output to the 16th oldest result and following with tail -n +16
@ToyAuthor
ToyAuthor / osgviewerSFML.cpp
Last active August 5, 2020 04:30
A OpenSceneGraph viewer using SFML to create an OpenGL window.
/* OpenSceneGraph example, osgviewerSFML.
*
* Permission is hereby granted, free of charge, to any person obtaining a copy
* of this software and associated documentation files (the "Software"), to deal
* in the Software without restriction, including without limitation the rights
* to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
* copies of the Software, and to permit persons to whom the Software is
* furnished to do so, subject to the following conditions:
*
* THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
@paulkernfeld
paulkernfeld / burn-name.md
Last active March 31, 2018 10:04
BurnName is a proposal for a simple and practical decentralized name registration system. Feedback wanted!

BurnName: simple decentralized username registration

BTW, this is implemented as burn-name and burn-name-writer.

BurnName is a proposal for a simple and practical decentralized name registration system. In BurnName, users burn bitcoins to bid for names. The user who bids the most for a name owns that name, after a delay. BurnName uses the existing Bitcoin blockchain and network, and it can be used by various applications.

Example applications

  • GitTorrent or a similar "decentralized GitHub"
  • Domain name registration: your username doubles as a domain name
  • Human-memorable Bitcoin addresses: map from your username to your Bitcoin address
@phyreman
phyreman / Image2Map.js
Last active August 4, 2023 23:22
Can run on any platform that can run a Node.js application. This program will create both the unique tileset and the .tmx file. A working web-based version is available here: http://jsfiddle.net/phyreman/GJ6Qr/
/*
* Filename : Image2Map.js
* Authors : John-Michael Glenn
* Version : 1.3
* Created : June 24, 2013
* Modified : March 31, 2014
* Copyright : Public Domain
**/
// Load modules