This will help you set up LXC containers to be used by non-root users. This guide has been tested and updated based on Ubuntu 16.04/18.04.
Update your system to the newest packages and reboot. You may need to do this several times:
| import requests | |
| import json | |
| def get_ip(): | |
| res = requests.get('https://wtfismyip.com/json') | |
| return res.json()['YourFuckingIPAddress'] | |
| class Godaddy: |
| ssl_protocols TLSv1 TLSv1.1 TLSv1.2; | |
| ssl_prefer_server_ciphers on; | |
| ssl_ciphers EECDH+CHACHA20:EECDH+AES128:RSA+AES128:EECDH+AES256:RSA+AES256:EECDH+3DES:RSA+3DES:!MD5; |
The Tower of Hanoi is a mathematical game or puzzle. It consists of three rods, and a number of disks of different sizes which can slide onto any rod. The puzzle starts with the disks in a neat stack in ascending order of size on one rod, the smallest at the top, thus making a conical shape.
The objective of the puzzle is to move the entire stack to another rod, obeying the following simple rules:
Only one disk can be moved at a time.
Each move consists of taking the upper disk from one of the stacks and placing it on top of another stack i.e. a disk can only be moved if it is the uppermost disk on a stack.
| #!/usr/bin/env ruby | |
| class Node | |
| attr_accessor :data, :next_node | |
| def initialize(data, next_node=nil) | |
| @data = data | |
| @next = next_node | |
| end |
| #!/usr/bin/env bash | |
| for file in *.avi; | |
| do name=`python3 -c "import re; print(re.sub(r'\.[^\.]+$', '.mp4', '''$file'''))"`; | |
| echo $name; | |
| ffmpeg -i "$file" -movflags +faststart "${name}" && rm "$file"; | |
| done |
| POSITION TITLE: Instructor / Trainer for Software Engineers C++ or Python | |
| SPECIFICATION NUMBER: 69605CRI | |
| LOCATION: New York, New York | |
| COMPENSATION: $150,000 base or market rate + Bonus | |
| COMPANY: Our client is a leader in the Financial Services Industry. |
| #!/usr/bin/env bash | |
| name=`echo $1 | cut -d'.' -f1`; | |
| echo $name; | |
| ffmpeg -i "$1" -strict -2 "${name}.mp4"; |
| pool: stuffpoll | |
| state: DEGRADED | |
| status: One or more devices could not be used because the label is missing or | |
| invalid. Sufficient replicas exist for the pool to continue | |
| functioning in a degraded state. | |
| action: Replace the device using 'zpool replace'. | |
| see: http://zfsonlinux.org/msg/ZFS-8000-4J | |
| scan: resilvered 4K in 0h0m with 0 errors on Sat May 5 02:57:41 2018 | |
| config: |
cd /var/www/gitea/bin
https://github.com/go-gitea/gitea/releases
wget https://github.com/go-gitea/gitea/releases/download/v<VERSION>/gitea-<VERSION>-linux-amd64
chmod +x gitea--linux-amd64