Skip to content

Instantly share code, notes, and snippets.

View matiasiglesias's full-sized avatar

Matias Iglesias matiasiglesias

View GitHub Profile
@matiasiglesias
matiasiglesias / fetch_news.sh
Created March 18, 2016 16:39 — forked from rogeliodh/fetch_news.sh
[Bash] Script to fetch news with calibre
#!/bin/bash
# This is free and unencumbered shell script released into the public domain.
#
####################### Begin Customization Section #############################
#
# Name of the recipe to fetch. You can run:
# ebook-convert --list-recipes
# to look for the correct name. Do not forget the .recipe suffix
RECIPE="La Jornada (Mexico).recipe"
@matiasiglesias
matiasiglesias / LC_CTYPE.txt
Created October 20, 2017 12:22 — forked from thanksdanny/LC_CTYPE.txt
Centos warning: setlocale: LC_CTYPE: cannot change locale (UTF-8): No such file or directory
vi /etc/environment
add these lines...
LANG=en_US.utf-8
LC_ALL=en_US.utf-8
@matiasiglesias
matiasiglesias / angular2codestyle.xml
Last active March 10, 2018 03:12 — forked from jckeen/angular2codestyle.xml
Angular 2 TypeScript Code Style For WebStorm
<!--
These are code style settings, based off the Style Guide for Angular 2:
https://angular.io/docs/ts/latest/guide/style-guide.html
WebStorm does not currently reformat code based off of tslint.json settings.
This is an attempt to set TypeScript settings for Code Style to follow the Style Guide.
I will update this as I find differences.
To Import: Settings > Editor > Code Style > Import
-->
<code_scheme name="Angular 2">
<TypeScriptCodeStyleSettings>
@matiasiglesias
matiasiglesias / gist:d037c8268eaeab2f39cb084232f56916
Created October 31, 2019 19:02
Android Environment Variable For LINUX/MAC
Environment Variable For LINUX/MAC
export ANDROID_SDK_ROOT=$HOME/Library/Android/sdk
export ANDROID_HOME=$HOME/Library/Android/sdk (deprecated)
# avdmanager, sdkmanager
export PATH=$PATH:$ANDROID_SDK_ROOT/tools/bin
# adb, logcat
# Setup JHipster to use the latest LTS version of NodeJS
nvm use --lts && node -v > .nvmrc
mvn versions:set-property -Dproperty=node.version -DnewVersion=$(cat .nvmrc)
# Setup JHipster to use your local version of yarn for prod builds
mvn versions:set-property -Dproperty=yarn.version -DnewVersion="v$(yarn -v)"
# Or Setup JHipster to use your local version of npm for prod builds
mvn versions:set-property -Dproperty=npm.version -DnewVersion="v$(npm -v)"
@matiasiglesias
matiasiglesias / Remove old Jenkins jobs
Last active March 12, 2020 13:17
Script to remove old jobs. Go to Manage Jenkins -> script console and paste this script. Just change MAX_BUILDS for the number of jobs you want to keep
MAX_BUILDS = 10 // max builds to keep
def jobs = Jenkins.instance.items;
def branchesArray = ["master", "develop"] as String[];
def deleteJobs(job) {
def recent = job.builds.limit(MAX_BUILDS)
println "Recent Builds: " + recent
println "============================="
@matiasiglesias
matiasiglesias / 000-apache-virtual-host.conf
Created July 9, 2022 14:10
Jira multi-container Docker
<VirtualHost *:80>
ServerAdmin your@email.com
ServerName YOUR-JIRA-INSTANCE-URL
ServerAlias jira
ProxyRequests Off
<Proxy *>
Order Deny,Allow
Allow from all
</Proxy>
@matiasiglesias
matiasiglesias / .pgpass
Last active July 25, 2022 15:22
Backup DB postgresql
DB_HOST:DB_PORT:DB_DATABASE:DB_USER:DB_PASSWORD
@matiasiglesias
matiasiglesias / script.sh
Created September 8, 2022 16:49
Migrar cuentas IMAP de un servidor a otro
imapsync --host1 imap.gmail.com -user1 usuario@gmail.com --password1 "contraseñea" --ssl1 --gmail1 --host2 "mail.nuevoservidor.com" --user2 usuario@nuevoservidor.com --password2 "contraseña" --ssl2 --useheader Message-ID