This file contains hidden or 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
package main | |
import ( | |
log "github.com/sirupsen/logrus" | |
"libs.altipla.consulting/errors" | |
"golang.org/x/oauth2/google" | |
) | |
func main() { |
This file contains hidden or 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
func foo() { | |
mylist := []*thing{...} | |
var wg sync.WaitGroup | |
ch := make(chan *thing) | |
for i := 0; i < maxWorkers; i++ { | |
wg.Add(1) | |
go worker(&wg, ch) | |
} |
This file contains hidden or 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
.foo { | |
background-color: #ffea9a; | |
margin-left: 3px; | |
padding: 0 0.2em; | |
border-radius: 4rem 2rem 4.2rem 1.1rem; | |
box-shadow: 0.2em 0 0 #ffea9a, -0.2em 0 0 #ffea9a; | |
} |
This file contains hidden or 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
FROM java:7-jdk | |
RUN echo "deb mirror://mirrorlist.gerritforge.com/deb gerrit contrib" > /etc/apt/sources.list.d/GerritForge.list && \ | |
apt-key adv --keyserver keyserver.ubuntu.com --recv-keys 1871F775 && \ | |
apt-get update && \ | |
apt-get install sudo && \ | |
apt-get -y install gerrit=2.12.3-1 || (cat /tmp/gerrit-installer.log && exit 1) | |
RUN wget http://central.maven.org/maven2/org/bouncycastle/bcprov-jdk15on/1.54/bcprov-jdk15on-1.54.jar -O /opt/bcprov.jar && \ |
This file contains hidden or 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
# swith to sudo | |
sudo -i | |
# create swap | |
touch /2GiB.swap | |
chattr +C /2GiB.swap | |
fallocate -l 2048m /2GiB.swap | |
chmod 600 /2GiB.swap | |
mkswap /2GiB.swap |
This file contains hidden or 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
{ | |
"color_scheme": "Packages/User/MonokaiIDEA.tmTheme", | |
"draw_indent_guides": false, | |
"enable_tab_scrolling": false, | |
"ensure_newline_at_eof_on_save": true, | |
"file_exclude_patterns": | |
[ | |
"*.pyc", | |
"*.pyo", | |
"*.exe", |
This file contains hidden or 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
{ | |
"keys": [ | |
"tab" | |
], | |
"command": "expand_abbreviation_by_tab", | |
"context": [ | |
{ | |
"operand": "source.css, source.sass, source.less, source.scss, source.stylus, source.jade, text.slim, text.xml, text.html - source, text.haml, text.scala.html, source string, source.soy", | |
"operator": "equal", | |
"match_all": true, |
This file contains hidden or 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
<?php | |
return [ | |
'domains' => [ | |
'front' => 'mydomain.com', | |
'uploads' => 'uploads.mydomain.com', | |
], | |
]; |
This file contains hidden or 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 | |
if [ "$1" == "" ]; then | |
echo "first arg should be the user name" | |
exit 1 | |
fi | |
USER=$1 | |
DATE="deploy-"`date +%s` | |
HOST="ftp.latala.altiplaconsulting.com" |
This file contains hidden or 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 | |
#Se fija a 12 el no de threads máximo (tantos como cores en un nodo) | |
#Se asigna al trabajo el nombre helloomp | |
export OMP_THREAD_LIMIT=12 | |
#PBS -N helloomp | |
echo "No de threads inicial: $OMP_THREAD_LIMIT" | |
#Se asigna al trabajo la cola ac #Se ejecuta HelloOMP, que está en el directorio en el que se ha ejecutado qsub | |
#PBS -q ac for ((P=OMP_THREAD_LIMIT;P>0;P=P/2)) | |
#Se imprime información del trabajo usando variables de entorno de PBS | |
do |
NewerOlder