Skip to content

Instantly share code, notes, and snippets.

View ivanoats's full-sized avatar
💭
🤙 Stoked 🏄‍♂️

Ivan Storck ivanoats

💭
🤙 Stoked 🏄‍♂️
View GitHub Profile
@sindresorhus
sindresorhus / esm-package.md
Last active May 3, 2024 10:19
Pure ESM package

Pure ESM package

The package that linked you here is now pure ESM. It cannot be require()'d from CommonJS.

This means you have the following choices:

  1. Use ESM yourself. (preferred)
    Use import foo from 'foo' instead of const foo = require('foo') to import the package. You also need to put "type": "module" in your package.json and more. Follow the below guide.
  2. If the package is used in an async context, you could use await import(…) from CommonJS instead of require(…).
  3. Stay on the existing version of the package until you can move to ESM.
@alexellis
alexellis / FAASD_MULTIPASS.md
Last active July 31, 2021 01:50
FAASD_MULTIPASS.md
@skogsmaskin
skogsmaskin / remoteauth.md
Last active November 16, 2017 18:05
Sanity.io : Auth the CLI when installed remotely
  • Go to https://api.sanity.io/v1/auth/login/github?type=token&origin=http://localhost

    Exchange github for google if you prefer that. You don't need anything running on localhost.

  • Pick out the value of the sid param in the return url trying to load on localhost.

  • Load https://api.sanity.io/v1/auth/fetch?sid=xxxx using the sid value from above.

  • Pick out the token from the result.

@alexhayes
alexhayes / pyenv+direnv on OSX.md
Last active November 6, 2022 20:17
Awesomely easy virtualenvs on OSX using pyenv and direnv

Awesomely easy virtualenvs on OSX using pyenv and direnv

Never forget to activate that virtualenv or set that environment variable ever again...

Install

  1. Install pyenv

     brew install pyenv
    
@wsargent
wsargent / win10-dev.md
Last active March 21, 2024 04:27
Windows Development Environment for Scala

Windows 10 Development Environment for Scala

This is a guide for Scala and Java development on Windows, using Windows Subsystem for Linux, although a bunch of it is applicable to a VirtualBox / Vagrant / Docker subsystem environment. This is not complete, but is intended to be as step by step as possible.

Harden Windows 10

Read the entire Decent Security guide, and follow the instructions, especially:

@staltz
staltz / adnetworks.txt
Created November 20, 2016 10:34
Ban these domains of ad networks
101com.com, 101order.com, 123found.com, 180hits.de, 180searchassistant.com, 1x1rank.com, 207.net, 247media.com, 24log.com, 24log.de, 24pm-affiliation.com, 2mdn.net, 2o7.net, 360yield.com, 4affiliate.net, 4d5.net, 50websads.com, 518ad.com, 51yes.com, 600z.com, 777partner.com, 77tracking.com, 7bpeople.com, 7search.com, 99count.com, a-ads.com, a-counter.kiev.ua, a.0day.kiev.ua, a.aproductmsg.com, a.collective-media.net, a.consumer.net, a.mktw.net, a.sakh.com, a.ucoz.net, a.ucoz.ru, a.xanga.com, a32.g.a.yimg.com, aaddzz.com, abacho.net, abc-ads.com, absoluteclickscom.com, abz.com, ac.rnm.ca, accounts.pkr.com.invalid, acsseo.com, actionsplash.com, actualdeals.com, acuityads.com, ad-balancer.at, ad-balancer.net, ad-center.com, ad-images.suntimes.com, ad-pay.de, ad-rotator.com, ad-server.gulasidorna.se, ad-serverparc.nl, ad-souk.com, ad-space.net, ad-tech.com, ad-up.com, ad.100.tbn.ru, ad.71i.de, ad.980x.com, ad.a8.net, ad.abcnews.com, ad.abctv.com, ad.about.com, ad.aboutit.de, ad.aboutwebservices.com, ad.abum.com,
@Ashwinning
Ashwinning / how-to-disable-microsoft-virtual-wifi-network.md
Created July 15, 2016 07:14
How to disable wifi microsoft virtual wifi adapter.

How to disable Microsoft WiFi Direct Virtual Adapter


**I think ** this is how it worked

As Admin

netsh wlan stop hostednetwork
@ivanoats
ivanoats / useful-atom-packages.sh
Created June 24, 2016 18:41
Useful Atom packages
#!/bin/bash
apm install atom-ternjs
apm install autocomplete-modules
apm install utocomplete-paths
apm install autocomplete-ruby
apm install autocomplete-sass
apm install build
apm install emmet
apm install file-icons
apm install gist-it
@erinishimoticha
erinishimoticha / example-usage.js
Last active January 7, 2017 08:21
Thenable Sinon Stubs
'use strict';
const expect = require('chai').expect;
const stubAsPromised = require('./stub-as-promised');
const lib = {
method: () => {}
};
let sinon;
describe('a test', () => {
@orta
orta / notes.md
Last active November 7, 2016 02:54
Notes on Spacemacs

Start out

install via

  brew tap railwaycat/homebrew-emacsmacport
  brew install emacs-mac --with-spacemacs-icon  # OR, brew cask install emacs-mac
  brew linkapps

Terminology