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.
This file contains 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
Gist (v4.6.2) lets you upload to https://gist.github.com/ | |
The content to be uploaded can be passed as a list of files, if none are | |
specified STDIN will be read. The default filename for STDIN is "a.rb", and all | |
filenames can be overridden by repeating the "-f" flag. The most useful reason | |
to do this is to change the syntax highlighting. | |
If you'd like your gists to be associated with your GitHub account, so that you | |
can edit them and find them in future, first use `gist --login` to obtain an | |
Oauth2 access token. This is stored and used by gist in the future. |
This file contains 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
###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 |
This file contains 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
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') |
source .
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
This file contains 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
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=() |
This file contains 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
```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') |
This file contains 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
Device TOP: Connected | |
BusyBox v1.23.2 (2020-01-11 23:36:54 UTC) built-in shell (ash) | |
___ ___ .__________.__ | |
| | |____ |__\_ ____/__| | |
| | / \| || __) | | (c) 2010-2019 | |
| | | | \ || \ | | Ubiquiti Networks, Inc. |
This file contains 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
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", |
OlderNewer