Skip to content

Instantly share code, notes, and snippets.

@deanrather
deanrather / usb-dev-env.md
Last active December 22, 2016 13:20
Creating a USB Ubuntu Dev Environment

Goal

A USB stick which can be booted to, which has ubuntu desktop on it

Method

Use 2 USB's, one as the installer, and one as the OS.

1) Create an Ubuntu Boot USB the normal way (I used lubuntu 12.10 x64)
@jaydson
jaydson / gist:7b3a91acf992f069954c
Last active November 27, 2019 02:02
Asynchronous stat dir files using ES7 async/await + promisify + 6to5
// regeneratorRuntime polyfill is necessary
require('grunt-6to5/node_modules/6to5/polyfill');
// promisify-node is necessary to turn node callback functions in Promises
let promisify = require("promisify-node");
let fs = promisify('fs');
let path = require('path');
let dir = '/home/jaydson.gomes/public_html';
@stollcri
stollcri / chrome_HSTS_clear.md
Last active January 4, 2024 05:09
Clear 307 HSTS redirects in Google Chrome

To clear 307 HSTS redirects in Google Chrome (if you experimenting with SSL -- you probably wouldn't want to do this for a site that you do not opperate, since it is there to protect you), go to the following URL and delete the site.

chrome://net-internals/#hsts

How to setup AWS lambda function to talk to the internet and VPC

I'm going to walk you through the steps for setting up a AWS Lambda to talk to the internet and a VPC. Let's dive in.

So it might be really unintuitive at first but lambda functions have three states.

  1. No VPC, where it can talk openly to the web, but can't talk to any of your AWS services.
  2. VPC, the default setting where the lambda function can talk to your AWS services but can't talk to the web.
  3. VPC with NAT, The best of both worlds, AWS services and web.
@Bhavdip
Bhavdip / sketch-never-ending.md
Created October 6, 2016 15:53
Modify Sketch to never ending trial

###Sketch trial non stop

Open hosts files:

$ open /private/etc/hosts

Edit the file adding:

127.0.0.1 backend.bohemiancoding.com

127.0.0.1 bohemiancoding.sketch.analytics.s3-website-us-east-1.amazonaws.com

@denji
denji / README.md
Last active May 7, 2025 07:38 — forked from Cubixmeister/README.md
Simple Sentry docker-compose.yml
  1. Download docker-compose.yml to dir named sentry
  2. Change SENTRY_SECRET_KEY to random 32 char string
  3. Run docker-compose up -d
  4. Run docker-compose exec sentry sentry upgrade to setup database and create admin user
  5. (Optional) Run docker-compose exec sentry pip install sentry-slack if you want slack plugin, it can be done later
  6. Run docker-compose restart sentry
  7. Sentry is now running on public port 9000