Skip to content

Instantly share code, notes, and snippets.

View 3con's full-sized avatar

Evan Conkle 3con

View GitHub Profile
@virtualbeck
virtualbeck / ecr_copy.sh
Last active February 18, 2024 02:32
copy n number of tagged docker images from one aws ecr account to another
#!/bin/bash
set -e
################################# UPDATE THESE #################################
LAST_N_TAGS=10
SOURCE_REGION="us-west-1"
DESTINATION_REGION="us-east-1"
SOURCE_PROFILE="profile_1"
@yoonhoGo
yoonhoGo / api.js
Last active July 23, 2019 23:29
Node.js 서버리스 프레임웍을 사용하여 싱글페이지 포트폴리오 제작하기 7
const AWS = require('aws-sdk')
const express = require('express')
const bodyParser = require('body-parser')
/**
* 만약 profile을 쓰고 싶다면?
*/
// if (process.env.STAGE === 'local') {
// const credentials = new AWS.SharedIniFileCredentials({profile: 'isMe'});
// AWS.config.credentials = credentials;
@bretton
bretton / lightning-maps.md
Last active December 29, 2023 02:59
Visualisers of the Lightning Network (and some other explorers)

A (mostly) visual collection of the Lightning Network

Disclaimer

Network views tend to be the view of the network from a single node, or small selection of nodes. They are not complete views of the network. This is impossible to achieve. Even if many node views were combined, it would still be incomplete.

These network views, or network maps, have been termed 'visualisers' by the LN community.

Screenshots may reflect older visual styles, and are dated accordingly.

@ruanbekker
ruanbekker / crypto_currency_ingest_elasticsearch.py
Created June 27, 2017 07:06
Ingest Crypto Currency Data into Elasticsearch using the coinmarketcap API
## Resources:
# https://pypi.python.org/pypi/coinmarketcap/
# https://coinmarketcap.com/api/
import json
import requests
from coinmarketcap import Market
c = Market()
@dryan
dryan / README.md
Last active September 18, 2017 23:15
Script to create redirects in S3 buckets

s3redirect

Authentication

Your AWS credentials can be set in a number of ways:

  1. In a ".boto" file in your home folder. See Boto's documentation for how to create this file.
  2. In the environment variables "AWS_ACCESS_KEY_ID" and "AWS_SECRET_ACCESS_KEY".
  3. Passed in as arguments. -a or --access-key for the Access Key ID and -s or --access-secret for the Secret Access Key.
@yorkxin
yorkxin / README.md
Last active October 27, 2020 12:17
Amazon S3 Redirect Rules Generator

Amazon S3 Redirect Rules Generator

A Ruby script to generate simple Amazon S3 Redirection Rules XML file.

Update: There is an app for that now! Use Amazon S3 Redirector (Web app) and you can generate the XML without any knowledge about Ruby. Thanks to @rainforestapp. BTW, It's open source too.

Dependencies

  • Nokogiri
@andreyvit
andreyvit / tmux.md
Created June 13, 2012 03:41
tmux cheatsheet

tmux cheat sheet

(C-x means ctrl+x, M-x means alt+x)

Prefix key

The default prefix is C-b. If you (or your muscle memory) prefer C-a, you need to add this to ~/.tmux.conf:

remap prefix to Control + a