1.) Download a Nerd Font
2.) Unzip and copy to ~/.fonts
3.) Run the command fc-cache -fv to manually rebuild the font cache
| #!/usr/bin/env bash | |
| # https://docs.docker.com/install/linux/docker-ce/ubuntu/ | |
| sudo apt-get install apt-transport-https ca-certificates curl software-properties-common | |
| curl -fsSL https://download.docker.com/linux/ubuntu/gpg | sudo apt-key add - | |
| sudo add-apt-repository "deb [arch=amd64] https://download.docker.com/linux/ubuntu xenial stable" | |
| sudo apt-get update | |
| sudo apt-get install docker-ce | |
| # https://docs.docker.com/compose/install/ |
1.) Download a Nerd Font
2.) Unzip and copy to ~/.fonts
3.) Run the command fc-cache -fv to manually rebuild the font cache
| [user] | |
| name = Julien Bisconti | |
| email = ****** | |
| [core] | |
| excludesfile = ~/.gitignore | |
| pager = diff-so-fancy | less --tabs=1,5 -R | |
| editor = /usr/bin/vim | |
| [alias] | |
| wow = log --all --graph --decorate --oneline --simplify-by-decoration |
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.
| from click import command, option, Option, UsageError | |
| class MutuallyExclusiveOption(Option): | |
| def __init__(self, *args, **kwargs): | |
| self.mutually_exclusive = set(kwargs.pop('mutually_exclusive', [])) | |
| help = kwargs.get('help', '') | |
| if self.mutually_exclusive: | |
| ex_str = ', '.join(self.mutually_exclusive) | |
| kwargs['help'] = help + ( |
| var mediaJSON = { "categories" : [ { "name" : "Movies", | |
| "videos" : [ | |
| { "description" : "Big Buck Bunny tells the story of a giant rabbit with a heart bigger than himself. When one sunny day three rodents rudely harass him, something snaps... and the rabbit ain't no bunny anymore! In the typical cartoon tradition he prepares the nasty rodents a comical revenge.\n\nLicensed under the Creative Commons Attribution license\nhttp://www.bigbuckbunny.org", | |
| "sources" : [ "http://commondatastorage.googleapis.com/gtv-videos-bucket/sample/BigBuckBunny.mp4" ], | |
| "subtitle" : "By Blender Foundation", | |
| "thumb" : "images/BigBuckBunny.jpg", | |
| "title" : "Big Buck Bunny" | |
| }, | |
| { "description" : "The first Blender Open Movie from 2006", | |
| "sources" : [ "http://commondatastorage.googleapis.com/gtv-videos-bucket/sample/ElephantsDream.mp4" ], |
| import requests | |
| from io import open as iopen | |
| from urlparse import urlsplit | |
| def requests_image(file_url): | |
| suffix_list = ['jpg', 'gif', 'png', 'tif', 'svg',] | |
| file_name = urlsplit(file_url)[2].split('/')[-1] | |
| file_suffix = file_name.split('.')[1] | |
| i = requests.get(file_url) | |
| if file_suffix in suffix_list and i.status_code == requests.codes.ok: |
| # 0 is too far from ` ;) | |
| set -g base-index 1 | |
| # Automatically set window title | |
| set-window-option -g automatic-rename on | |
| set-option -g set-titles on | |
| #set -g default-terminal screen-256color | |
| set -g status-keys vi | |
| set -g history-limit 10000 |