Skip to content

Instantly share code, notes, and snippets.

View gabamnml's full-sized avatar
:electron:
Focusing

Gabriel Aramburu gabamnml

:electron:
Focusing
View GitHub Profile
@amanjuman
amanjuman / route53-domain-transfer
Created January 15, 2022 06:34
AWS Account to Account Route53 Domain Transfer Cli
# Initiate Domain Transfer
aws route53domains transfer-domain-to-another-aws-account --domain-name yourdomain.tld --account-id 123456789101
# Cancel Domain Transfer
aws route53domains cancel-domain-transfer-to-another-aws-account --domain-name yourdomain.tld
{
"OperationId": "MNOP-MNOP-MNOP-MNOP-MNOP",
"Password": "XYZXYZXYZXYZ"
}
# Accept Domain Transfer
aws route53domains accept-domain-transfer-from-another-aws-account --domain-name yourdomain.tld --password "XYZXYZXYZXYZ"
@nisevi
nisevi / config.yml
Last active January 24, 2024 04:27
CircleCI 2.0 deploy to S3 static website - configuration file.
version: 2
jobs:
build:
working_directory: /tmp/vasko
docker:
- image: circleci/python:3.6.2-stretch-browsers
steps:
- checkout
- run:
name: Deploying Vasko.
@keeth
keeth / 01-next-js.config
Last active October 27, 2021 18:37
Next.js on Elastic Beanstalk, run 'next build' or 'npm run build' from .eb-extensions
container_commands:
01_build:
command: "PATH=$NODE_HOME/bin:$PATH $NODE_HOME/bin/npm run build"
@filmgirl
filmgirl / yosemite-install-usb
Last active April 3, 2018 07:04
Create Bootable USB Drive for OS X Yosemite
sudo /Applications/Install\ OS\ X\ Yosemite.app/Contents/Resources/createinstallmedia --volume /Volumes/Untitled --applicationpath /Applications/Install\ OS\ X\ Yosemite.app --nointeraction

Install raspbian, set up your users however you would like, so long as you have sudo access on the user you are running this with. You probably want to resize the image so it fills the SD card as well.

  1. Copy this entire gist to your raspberry pi
  2. Do chmod +x step1.sh step2.sh iptables.sh in the gist folder (so that
  3. Run step1.sh a) This script does a few things - it first updates your raspberry pi, then it installs a few needed utilities, then it upgrades the firmware on your raspberry pi
var kue = require('kue'),
jobs = kue.createQueue(),
util = require('util'),
noop = function() {};
jobs.CLEANUP_MAX_FAILED_TIME = 30 * 24 * 60 * 60 * 1000; // 30 days
jobs.CLEANUP_MAX_ACTIVE_TIME = 1 * 24 * 60 * 60 * 1000; // 1 day
jobs.CLEANUP_MAX_COMPLETE_TIME = 5 * 24 * 60 * 60 * 1000; // 5 days
jobs.CLEANUP_INTERVAL = 5 * 60 * 1000; // 5 minutes
@hlung
hlung / How to connect PS3 controller to a Mac or PC.md
Last active July 22, 2024 21:41
How to connect PS3 controller to a Mac or PC

How to connect PS3 controller to a Mac or PC

This is how you connect PS3 controller to Mac OSX, PC, etc. when previously connected to a PS3. You will need a Mini USB cable. Overcome your laziness, get up of your chair, and go get one!

A big misconception is that keep holding PS button will reset the controller's pairing. It DOES NOT! From my testings, the controller keeps paring with the last machine it was CONNECTED VIA A USB CABLE.

Here are the steps:

@gfreezy
gfreezy / .slate.js
Last active November 18, 2021 16:13
slate configuration
var pushRight = slate.operation("push", {
"direction": "right",
"style": "bar-resize:screenSizeX/2"
});
var pushLeft = slate.operation("push", {
"direction": "left",
"style": "bar-resize:screenSizeX/2"
});
# The upstream server doesn't need a prefix! no need for wss:// or http:// because nginx will upgrade to http1.1 in the config below
upstream yeomanserver {
server localhost:3000;
}
server {
listen 443;
server_name legionofevil.org;
root html;
@0rca
0rca / .zshrc
Created December 21, 2012 06:13
initializing rbenv with --no-rehash option saves me 0,5s on new terminal session start-up
if which rbenv > /dev/null; then eval "$(rbenv init - --no-rehash)"; fi