This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
      Learn more about bidirectional Unicode characters
    
  
  
    
  | ls -lR > /dev/null | 
  
    
      This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
      Learn more about bidirectional Unicode characters
    
  
  
    
  | import boto3 | |
| region = 'eu-central-1' | |
| testing_vpc_id = 'vpc-2352384b' | |
| client = boto3.client('ec2', region_name=region) | |
| def get_instances_in_vpc(vpc_id): | |
| response = client.describe_instances(Filters=[{'Name': 'vpc-id', | 
  
    
      This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
      Learn more about bidirectional Unicode characters
    
  
  
    
  | # I love super fast keyboard. Most of my friends and colleagues can't follow | |
| # I use `atkbd.softrepeat=1` on the kernel command line. | |
| # Even Visual Assist plugin in Visual Studio doubles keyboard repeat rate with _a reason_. | |
| # I'm working on my laptop without X installed to avoid procrastination. | |
| # I've spend a working day googling how to make `kbdrate` using slower delay than 250. | |
| # Add this to your /etc/profile.d/kbdrate.sh: sudo kbdrate -r 82 -d 150 if you want it in console. | |
| # Note that it will force you type password twice. I didn't find any workarounds. | |
| xset r rate 150 82 | |
| # When exiting from Vim, just type | 
  
    
      This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
      Learn more about bidirectional Unicode characters
    
  
  
    
  | # Last updated: 08/24/2916 | |
| # | |
| # Total instructions available: 18 | |
| # | |
| # https://docs.docker.com/engine/reference/builder/ | |
| # | |
| # You can use a .dockerignore file in the same context directory as | |
| # your Dockerfile to ignore files in the context before sending them | |
| # to the Docker daemon for building to speed up building. | 
  
    
      This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
      Learn more about bidirectional Unicode characters
    
  
  
    
  | export PS1='$PWD>' | |
| ## docker exec -it api-php-fpm /bin/bash -c "exec bash; export PS1='$PWD>'" | 
  
    
      This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
      Learn more about bidirectional Unicode characters
    
  
  
    
  | # brew install php56 | |
| # brew install php71 | |
| # unlink the php version you wont use that often: brew unlink php71 | |
| # manually link the php version you want to use when calling php | |
| ln -s /usr/local/Cellar/php56/5.6.33_9/bin/php /usr/local/bin/php | 
  
    
      This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
      Learn more about bidirectional Unicode characters
    
  
  
    
  | #!/usr/bin/env bash │ject-with tcp-reset | |
| # usage: ./senderscore.sh 74.91.28.11 | |
| if [ -z "$1" ] | |
| then | |
| echo "IP is missing as arguemnt." | |
| exit | |
| fi | |
| IP=$1 | 
  
    
      This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
      Learn more about bidirectional Unicode characters
    
  
  
    
  | vcl 4.0; | |
| import std; | |
| import bodyaccess; | |
| backend default { | |
| .host = "nginx"; | |
| .port = "80"; | |
| # Health check | |
| # .probe = { | 
  
    
      This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
      Learn more about bidirectional Unicode characters
    
  
  
    
  | docker run -it -e COLUMNS="`tput cols`" -e LINES="`tput lines`" some_container /bin/bash | |
| or add to .zshrc | |
| goinside(){ | |
| docker exec -it $1 bash -c "stty cols $COLUMNS rows $LINES && bash"; | |
| } | |
| export -f goinside | |
| #https://stackoverflow.com/questions/38786615/docker-number-of-lines-in-terminal-changing-inside-docker/49281526#49281526 | 
  
    
      This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
      Learn more about bidirectional Unicode characters
    
  
  
    
  | # | |
| ssh user@jump_host -L local_port:target_host:remote_port -N |