Skip to content

Instantly share code, notes, and snippets.

View AlexSwensen's full-sized avatar

Alexander Swensen AlexSwensen

View GitHub Profile
@khalidx
khalidx / node-typescript-esm.md
Last active April 22, 2024 15:40
A Node + TypeScript + ts-node + ESM experience that works.

The experience of using Node.JS with TypeScript, ts-node, and ESM is horrible.

There are countless guides of how to integrate them, but none of them seem to work.

Here's what worked for me.

Just add the following files and run npm run dev. You'll be good to go!

package.json

@Yorkshireman
Yorkshireman / circle.yml
Created June 29, 2016 15:37
Installing Chrome on Circle CI machine (Ubuntu 14.04)
dependencies:
pre:
- sudo apt-get install libxss1 libappindicator1 libindicator7
- wget https://dl.google.com/linux/direct/google-chrome-stable_current_amd64.deb
- sudo dpkg -i ./google-chrome*.deb
- sudo apt-get install -f

Turning Off Github Issues

My friend Michael Jackson turned off github issues on one of his smaller projects. It got me thinking...

Maintainers getting burned out is a problem. Not just for the users of a project but the mental health of the maintainer. It's a big deal for both parties. Consumers want great tools, maintainers want to create them, but maintainers don't want to be L1 tech support, that's why they

@ei-grad
ei-grad / ListController.js
Last active February 1, 2018 02:58
Exception handling in async/await sailsjs controllers
/**
* ListController
*
* @description :: Server-side logic for managing lists
* @help :: See http://sailsjs.org/#!/documentation/concepts/Controllers
*/
import _ from 'lodash';
class AsyncController {
@mlynch
mlynch / info.plist
Last active August 6, 2023 07:31
Disable App Transport Security in iOS 9
<!--
This disables app transport security and allows non-HTTPS requests.
Note: it is not recommended to use non-HTTPS requests for sensitive data. A better
approach is to fix the non-secure resources. However, this patch will work in a pinch.
To apply the fix in your Ionic/Cordova app, edit the file located here:
platforms/ios/MyApp/MyApp-Info.plist
And add this XML right before the end of the file inside of the last </dict> entry:
@piotrdz
piotrdz / gist:f1bfdab638caca1aa280
Last active August 29, 2015 14:20
Colobot compilation using Homebrew

After installing Developer Command Line Tools for OS X, you should have basic tools like clang and git installed. After that, you can grab other required packages via Homebrew. So as in instructions on the project page:

  ruby -e "$(curl -fsSL https://raw.githubusercontent.com/Homebrew/install/master/install)"

And then:

  brew install cmake sdl sdl_image sdl_ttf boost glew physfs flac libsndfile libvorbis vorbis-tools gettext po4a

Gettext is installed in separate directory without adding the files to system path, so in order to get it working normally, you should call also:

@pwenzel
pwenzel / lamp-stack-osx-virtualhostx.md
Last active April 8, 2022 04:00
LAMP stack on OSX with Homebrew, built-in Apache, multiple PHP versions, VirtualhostX optional

This guide shows how to set up a PHP and MySQL development environment using OSX's built-in Apache, using Homebrew to install necessary components. With this strategy, you can use different versions of PHP for certain virtual hosts.

VirtualHostX is a convenient way to manage development sites, but not required.

Install PHP and MySQL with Homebrew

brew update
brew install php56
brew install php56-mcrypt
brew install mysql
@ktknest
ktknest / pinch-zoom-directive.js
Last active July 10, 2018 07:51
pinch zoom in/out directive for AngularJS
/**
* NOTICE:
* This directive is old version!!
* Please check this repository:
* https://github.com/ktknest/angular-pinch-zoom
* /
// sample: http://codepen.io/ktknest/full/LDljw/
angular.module('app', [])
@ungoldman
ungoldman / dokku_setup.md
Last active November 28, 2023 12:35
Deploy your own PaaS: Setting up Dokku with DigitalOcean and Namecheap

Deploy your own PaaS!

Setting up Dokku with DigitalOcean and Namecheap

..or how I made my own heroku in a few hours for $3.98.


This write-up is several years out of date! You probably shouldn't use it.