create different ssh key for work and for personal use
ssh-keygen -o -a 100 -t ed25519 -f ~/.ssh/id_ed25519_personal -C "personal@laptop"
#!/usr/bin/env python | |
# -*- coding: utf-8 -*- | |
# | |
# This is how I used it: | |
# $ cat ~/.bash_history | python bash-to-zsh-hist.py >> ~/.zsh_history | |
import sys | |
import time | |
I have two python scripts, the first one will create a file defining some variables and the second one will import the first and read the created file. The problem is the second script cannot load the variables fromt the file created.
$ ls
create_file.py read_file.py
$ ./create_file.py
file created
# to generate your dhparam.pem file, run in the terminal | |
openssl dhparam -out /etc/nginx/ssl/dhparam.pem 2048 |
# NG: This was taken from https://j.hept.io/contour-deployment-rbac | |
# or https://raw.githubusercontent.com/heptio/contour/master/deployment/render/deployment-rbac.yaml | |
# following the tutorial https://blog.heptio.com/how-to-deploy-web-applications-on-kubernetes-with-heptio-contour-and-lets-encrypt-d58efbad9f56 | |
# | |
# | |
# This file is generated from the individual yaml files by deployment/render.sh. | |
# Do not edit this file directly but instead edit the source files and | |
# re-render. | |
apiVersion: v1 | |
kind: Namespace |
I hereby claim:
To claim this, I am signing this object:
https://developer.github.com/v3/oauth/#create-a-new-authorization
I'm using Github API to ge the list of public repos , just change type=private or all . The results are paginated ,by 30 by default, you can specify further pages with the ?page parameter : curl -u "$USER:$PASSWORD" -H 'X-GitHub-OTP: $TWOFACTORCODE' https://api.github.com/orgs/magnetic/repos\?type\=public\&page\=1 | jq '.[] | .full_name '
Clone all curl -s https://api.github.com/orgs/twitter/repos?per_page=200 | ruby -rubygems -e 'require "json"; JSON.load(STDIN.read).each { |repo| %x[git clone #{repo["ssh_url"]} ]}'
#!/bin/bash | |
# | |
# this script will attempt to detect any ephemeral drives on an EC2 node and create a RAID-0 stripe | |
# mounted at /mnt. It should be run early on the first boot of the system. | |
# | |
# Beware, This script is NOT fully idempotent. | |
# | |
METADATA_URL_BASE="http://169.254.169.254/2012-01-12" |
#!/bin/bash -v | |
# Install prereguisites | |
yum update ca-certificates -y | |
yum install epel-release -y | |
yum install ansible -y | |
yum install git -y | |
yum install s3cmd -y | |
# setup private key that will be used to clone git repo |