I hereby claim:
- I am rezen on github.
- I am rezen (https://keybase.io/rezen) on keybase.
- I have a public key whose fingerprint is C4C1 2B93 6D91 CD53 5DEB D31B C2E6 DEA0 5DA0 698A
To claim this, I am signing this object:
| var series = [ | |
| function( callback ){ | |
| callback( 'bob', 12); | |
| return 1; | |
| }, | |
| function ( callback, person, age ) { | |
| console.log( person,age); | |
| callback( 'moew' ); | |
| return 12; |
| #!/bin/sh | |
| # @notes | |
| # | |
| # If you have a moderately sized database ( 2gb dumps) | |
| # make sure to update your mysql conf to allow larger packets | |
| # for dump. Below are some suggested my.cnf settings | |
| # | |
| # If you have a fairly large db, mysqldump is not | |
| # recommended. Instead try something like |
| #!/bin/sh | |
| # https://www.digitalocean.com/community/tutorials/lemp-stack-monitoring-with-monit-on-ubuntu-14-04 | |
| sudo yum install -y pam-devel openssl-devel | |
| cd /usr/local/src | |
| wget http://mmonit.com/monit/dist/monit-5.11.tar.gz | |
| sudo wget http://mmonit.com/monit/dist/monit-5.11.tar.gz | |
| sudo tar -zxvf monit-5.11.tar.gz | |
| cd monit-5.11 |
| Binary number system | |
| https://www.youtube.com/watch?v=ry1hpm1GXVI | |
| Why binary? | |
| https://www.youtube.com/watch?v=1sWCBgGALXE | |
| 8-bits = 1 byte | |
| 8-bits (aka 1 bytes) is amount needed for 1 of the 255 asci charactors | |
| 2^7 | 2^6|2^5 |2^4 |2^3|2^2|2^1|2^0 | |
| 128 | 64 | 32 | 16 | 8 | 4 | 2 | 1 (max number = 255) |
| #!/bin/bash | |
| # | |
| # Starts up a MongoDB replica set | |
| # | |
| # There is a lot of documentation about replica sets: | |
| # | |
| # http://docs.mongodb.org/manual/reference/replica-configuration/ | |
| # http://docs.mongodb.org/manual/administration/replica-sets/ | |
| # | |
| # To read data from a SECONDARY, when in the client, use: |
| #!/usr/bin/env bash | |
| # yum | |
| sudo yum -y update | |
| sudo rpm -Uvh http://repo.webtatic.com/yum/el6/latest.rpm | |
| sudo rm -f /etc/localtime | |
| sudo ln -s /usr/share/zoneinfo/US/Pacific /etc/localtime |
| :: Make sure to download and install dotnet45+ before running the script! | |
| :: Install Chocolatey! | |
| :: @todo Add http://babun.github.io/ | |
| @powershell -NoProfile -ExecutionPolicy Bypass -Command "iex ((new-object net.webclient).DownloadString('https://chocolatey.org/install.ps1'))" && SET PATH=%PATH%;%ALLUSERSPROFILE%\chocolatey\bin | |
| :: Browsers | |
| choco install -y firefox | |
| choco install -y googlechrome | |
| choco install -y ie11 |
I hereby claim:
To claim this, I am signing this object:
| #!/usr/bin/env bash | |
| # @author Andres Hermosilla | |
| # @notes | |
| # Jenkins ssl | |
| # http://balodeamit.blogspot.com/2014/03/jenkins-switch-to-ssl-https-mode.html | |
| # https://www.digitalocean.com/community/tutorials/how-to-configure-nginx-with-ssl-as-a-reverse-proxy-for-jenkins | |
| # @todo | |
| # - Setup security with LDAP | |
| # - Add optional systems such as selenium |
| """ | |
| Tools for creating a CA cert and signed server certs. | |
| Divined from http://svn.osafoundation.org/m2crypto/trunk/tests/test_x509.py | |
| The mk_temporary_xxx calls return a NamedTemporaryFile with certs. | |
| Usage ; | |
| # Create a temporary CA cert and it's private key | |
| cacert, cakey = mk_temporary_cacert() |