I hereby claim:
- I am mgarces on github.
- I am mgarces (https://keybase.io/mgarces) on keybase.
- I have a public key ASANfwWYgEpXlwRnpD2xL74cZN3UZqYUEC5YYYwgKI41swo
To claim this, I am signing this object:
Once in a while, you may need to cleanup resources (containers, volumes, images, networks) ...
// see: https://github.com/chadoe/docker-cleanup-volumes
$ docker volume rm $(docker volume ls -qf dangling=true)
$ docker volume ls -qf dangling=true | xargs -r docker volume rm
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
# I had a bit of trouble getting my unifi controller (hosted offsite) to use a proxy/letsencrypt. So here are the fruits of my labor. | |
# The unifi default port is 8443 running on localhost. | |
# License: CC0 (Public Domain) | |
server { | |
# SSL configuration | |
# | |
listen 443 ssl default_server; | |
listen [::]:443 ssl default_server; |
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 'https://rubygems.org' | |
require 'json' | |
require 'open-uri' | |
require 'kramdown' | |
versions = JSON.parse(open('https://pages.github.com/versions.json').read) | |
gem 'font-awesome-sass' | |
gem 'kramdown' | |
gem 'github-pages', versions['github-pages'] |
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
server { | |
listen 80; | |
server_name *.rados.test rados.test; | |
client_max_body_size 10g; | |
# This is the important option that tengine has, but nginx does not | |
fastcgi_request_buffering off; | |
location / { |
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
[Tue Aug 12 12:29:11.888327 2014] [core:error] [pid 6120] [client 10.5.5.222:52943] End of script output before headers: s3gw.fcgi | |
[Tue Aug 12 12:29:17.037566 2014] [fcgid:warn] [pid 6121] (104)Connection reset by peer: [client 10.5.5.222:52960] mod_fcgid: error reading data from FastCGI server | |
[Tue Aug 12 12:29:17.037731 2014] [core:error] [pid 6121] [client 10.5.5.222:52960] End of script output before headers: s3gw.fcgi |
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
The last packet successfully received from the server was 7,419,456 milliseconds ago. The last packet sent successfully to the server was 9,448,563 milliseconds ago. | |
at sun.reflect.GeneratedConstructorAccessor2.newInstance(Unknown Source) | |
at sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:45) | |
at java.lang.reflect.Constructor.newInstance(Constructor.java:526) | |
at com.mysql.jdbc.Util.handleNewInstance(Util.java:409) | |
at com.mysql.jdbc.SQLError.createCommunicationsException(SQLError.java:1127) | |
at com.mysql.jdbc.MysqlIO.reuseAndReadPacket(MysqlIO.java:3715) | |
at com.mysql.jdbc.MysqlIO.reuseAndReadPacket(MysqlIO.java:3604) | |
at com.mysql.jdbc.MysqlIO.checkErrorPacket(MysqlIO.java:4155) | |
at com.mysql.jdbc.MysqlIO.checkErrorPacket(MysqlIO.java:926) |
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
for n in $(for i in {3..10000} ; do out=$(( $i % 2 )); if [ $out -eq 1 ]; then echo $i ; fi ; done) ; do F=($(factor $n)) ; if [ -z "${F[2]}" ]; then echo $n ; fi ; done |
NewerOlder