- Download strongswan
https://www.strongswan.org/download.html
sudo apt-get update
sudo apt-get install build-essential libgmp3-dev
tar xvf strongswan.tar.gz
cd strongswan
https://www.strongswan.org/download.html
sudo apt-get update
sudo apt-get install build-essential libgmp3-dev
tar xvf strongswan.tar.gz
cd strongswan
| #!/bin/sh | |
| file=path/to/file | |
| bucket=your-bucket | |
| resource="/${bucket}/${file}" | |
| contentType="application/x-compressed-tar" | |
| dateValue="`date +'%a, %d %b %Y %H:%M:%S %z'`" | |
| stringToSign="GET | |
| ${contentType} | |
| ${dateValue} | |
| ${resource}" |
| # Bash best practices and style-guide | |
| Just simple methods to keep the code clean. | |
| Inspired by [progrium/bashstyle](https://github.com/progrium/bashstyle) and [Kfir Lavi post](http://www.kfirlavi.com/blog/2012/11/14/defensive-bash-programming/). | |
| ## Quick big rules | |
| * All code goes in a function | |
| * Always double quote variables |
| import rethinkdb as r | |
| import asyncio | |
| from typing import Callable, Dict | |
| r.set_loop_type('asyncio') | |
| async def get_connection(): | |
| return await r.connect( | |
| db='test', |
| kubectl get pods | grep Evicted | awk '{print $1}' | xargs kubectl delete pod |
Following mining and findings performed on EVGA GeForce GTX 1070 SC GAMING Black Edition Graphics Card cards.
First run nvidia-xconfig --enable-all-gpus then set about editing the xorg.conf file to correctly set the Coolbits option.
# /etc/X11/xorg.conf
Section "Device"
Identifier "Device0"
Driver "nvidia"
VendorName "NVIDIA Corporation"
kubectl -n kube-system create sa tiller
kubectl create clusterrolebinding tiller --clusterrole cluster-admin --serviceaccount=kube-system:tiller
helm init --service-account tiller
| #!/bin/bash | |
| # | |
| # Shell scripts for get image manifest from v2 registry | |
| # | |
| # Tested on Debian 8, curl 7.38.0, jq-1.5 | |
| # | |
| set -e -u | |
| # Default tag is latest |
| // 🔥 Node 7.6 has async/await! Here is a quick run down on how async/await works | |
| const axios = require('axios'); // promised based requests - like fetch() | |
| function getCoffee() { | |
| return new Promise(resolve => { | |
| setTimeout(() => resolve('☕'), 2000); // it takes 2 seconds to make coffee | |
| }); | |
| } |
| <!-- Example #1 - no styling --> | |
| Made with ❤ in Switzerland | |
| Made with ♥ in Switzerland | |
| Made with ♡ in Switzerland | |
| Made with ❤️ in Switzerland | |
| Made with ♥️ in Switzerland | |
| <!-- Example #2 - inline-styled ❤ --> | |
| Made with <span style="color: #e25555;">♥</span> in Switzerland | |
| Made with <span style="color: #e25555;">♥</span> in Switzerland |