This is the "thing you want to run" like pihole, I am using a simple web server.
You'll want to prepare a tar of the container
#### FROM CLIENT (your laptop)
source "null" "words" { | |
} | |
build { | |
name = "utils.words" | |
sources = ["null.words"] | |
provisioner "shell-local" { | |
# setulimit, this works with macbook https://gist.github.com/gerardkok/8e61df7bbb132522b8232fb3841ae3b4 | |
# http(ie) is required here, curl could work | |
inline = concat(["ulimit -n 524288"],[ | |
"mkdir -p ${path.cwd}/inventory", |
Device TOP: Connected | |
BusyBox v1.23.2 (2020-01-11 23:36:54 UTC) built-in shell (ash) | |
___ ___ .__________.__ | |
| | |____ |__\_ ____/__| | |
| | / \| || __) | | (c) 2010-2019 | |
| | | | \ || \ | | Ubiquiti Networks, Inc. |
```python | |
import json | |
import logging | |
from datetime import date | |
from datetime import datetime | |
import boto3 | |
from dynamodb_json import json_util as json_ddb | |
logger = logging.getLogger('aws.ddb') |
set +m | |
from=100000 to=999999 | |
if test "${#from}" -gt "${#to}"; then | |
format="%0${#from}X" | |
else | |
format="%0${#to}X" | |
fi | |
from=$(printf '%d' "0x$from") to=$(printf '%d' "0x$to") | |
pids=() |
convert howtogeek.png -quality 95 howtogeek.jpg
convert example.png -resize 200x100 example.png
convert example.png -resize 200 example.png
convert example.png -resize x200 example.png
Simply open the ~/Library/Group\ Containers/group.com.docker/settings.json
config file and set the diskSizeMiB
field to your desired size.
Save, and Docker will now limit the size of the Docker.raw.
You might need to restart Docker to resize the Docker.raw.
Ohai.plugin(:NetworkAddrs) do | |
provides "networkAddrs" | |
depends "network/interfaces", "hostname" | |
collect_data(:default) do | |
networkAddrs(Mash.new) | |
network[:interfaces].each do |iface, addrs| | |
addrs[:addresses].each do |ip, params| | |
networkAddrs["ipaddress_#{iface}"] = ip if params[:family].eql?('inet') | |
networkAddrs["ipaddress6_#{iface}"] = ip if params[:family].eql?('inet6') | |
networkAddrs["macaddress_#{iface}"] = ip if params[:family].eql?('lladdr') |
###Gist Examples | |
## Upload clipboard with a file name of "Gist Help" and copy the resulting gist to your clipboard. | |
gist -c -f "Gist Help" -P | |
## Do tha same as above, but private. | |
gist -c -f "Gist Help" -p -P | |
# Upload a local file with the same gist name. | |
gist ab.rb | |
# Do the same with multiple files | |
gist a b c | |
gist *.rb |