alias k="kubectl"
alias kg="kubectl get"
alias kc="kubectl create"
alias kgp="kubectl get pods"
export ks="-n kube-system"
export all="--all-namespaces"
export y="-o yaml"
export j="-o json"
| # This docker-compose file intent to create a multi-container application | |
| # that runs a Jenkins container connected via TLS to a Docker-in-Docker (dind) container as Docker daemon. | |
| # | |
| # Advice about this approach can be found at: | |
| # http://jpetazzo.github.io/2015/09/03/do-not-use-docker-in-docker-for-ci/ | |
| # | |
| # As well discussion about another alternatives on this setup can be found at: | |
| # https://forums.docker.com/t/using-docker-in-a-dockerized-jenkins-container/322/11 | |
| # | |
| # Quick reference about Docker-in-Docker can be fount at: |
sudo apt install -y ruby ruby-dev ruby-colorize
sudo apt-get install -y libncurses5-dev libtinfo-dev
sudo gem install colorlscolorls -r| #!/usr/bin/env python | |
| import random | |
| import struct | |
| import sys | |
| # Most of the Fat32 class was cribbed from https://gist.github.com/jonte/4577833 | |
| def ppNum(num): | |
| return "%s (%s)" % (hex(num), num) |
| #!/bin/bash | |
| # About: Bash script to create new Jekyll posts | |
| # Author: @AamnahAkram | |
| # URL: https://gist.github.com/aamnah/f89fca7906f66f6f6a12 | |
| # Description: This is a more advanced version of the script which can | |
| # - take options | |
| # - has color coded status messages | |
| # - improved code | |
| # - lowercase permalinks | |
| # - usage message |
This is one chapter of my "Chrome Extension Workshops" tutorial, see the rest here: https://gist.github.com/caseywatts/8eec8ff974dee9f3b247
Unrelated update: my book is out! Debugging Your Brain is an applied psychology / self-help book
I'm feeling very clever. I've got this sweet line of javascript that replaces "cloud" with "butt". My mom would LOVE this, but she doesn't computer very well. I'm afraid to show her the Developer Console and have her type/paste this in. But she IS pretty good at bookmarks, she knows just how to click those!
A bookmark normally takes you to a new web page. A bookmarklet is a bookmark that runs javascript on the current page instead of taking you to a new page. To declare that it is a bookmarklet, the "location" it points to starts with javascript:.
| # Calls Feh, puts a randomized image on the background, and changes | |
| # the image every 5 minutes. | |
| import os | |
| import glob | |
| import subprocess | |
| import time | |
| import random | |
| images = glob.glob('images/*') |
Moved to git repository: https://github.com/denji/nginx-tuning
For this configuration you can use web server you like, i decided, because i work mostly with it to use nginx.
Generally, properly configured nginx can handle up to 400K to 500K requests per second (clustered), most what i saw is 50K to 80K (non-clustered) requests per second and 30% CPU load, course, this was 2 x Intel Xeon with HyperThreading enabled, but it can work without problem on slower machines.
You must understand that this config is used in testing environment and not in production so you will need to find a way to implement most of those features best possible for your servers.