Skip to content

Instantly share code, notes, and snippets.

View ErickWendel's full-sized avatar

Erick Wendel ErickWendel

View GitHub Profile
## -*- coding: utf-8 -*-
import os
import time
import datetime
import logging
import logging.handlers
class Logger(object) :
#inner class for logs
class __Logger:
#http://www.sitepoint.com/using-python-parse-spreadsheet-data/
import xlrd
import json
#spreadsheets in my excel
investments = ['NTN-B Principal 150519', 'NTN-B Principal 150824', 'NTN-B Principal 150535']
#my excel
workbook = xlrd.open_workbook('pl.xls')
#get all names of spreadsheets for excel
sheets = [x for x in workbook.sheet_names()]
export PATH="$HOME/.rbenv/bin:$PATH"
code () { VSCODE_CWD="$PWD" open -n -b "com.microsoft.VSCode" --args $* ;}
source /Users/erickwendel/.dnx/dnvm/dnvm.sh
export MONO_MANAGED_WATCHER=disabled
alias monod='mono --debug --debugger-agent=transport=dt_socket,server=y,address=127.0.0.1:55555'
[ -s "/Users/erickwendel/.dnx/dnvm/dnvm.sh" ] && . "/Users/erickwendel/.dnx/dnvm/dnvm.sh" # Load dnvm
alias ll='ls -lah'
alias art-mobile='cd ~/Documents/vagrant-artmanager/artmanager-dev/projects/artmanager-mobile/'
scp -rv index.js [email protected]:Documents/index.js
ssh [email protected]
keytool -genkey -v -keystore my-release-key.keystore -alias appkey -keyalg RSA -keysize 2048 -validity 10000
jarsigner -verbose -sigalg SHA1withRSA -digestalg SHA1 -keystore my-release-key.keystore /Users/erickwendel/Documents/vagrant-artmanager/artmanager-dev/projects/artmanager-mobile/platforms/android/build/outputs/apk/android-release-unsigned.apk appkey
~/Library/Android/sdk/build-tools/21.1.2/zipalign -v 4 /Users/erickwendel/Documents/vagrant-artmanager/artmanager-dev/projects/artmanager-mobile/platforms/android/build/outputs/apk/android-release-unsigned.apk ArtManager-release10.apk
adb -s 127.0.0.1:4444 shell pm list packages
adb -s 127.0.0.1:4444 uninstall com.smackers.smackslides
@ErickWendel
ErickWendel / uiPhoEndereco.directive.js
Last active December 1, 2016 19:12
uiPhoEndereco.directive.js
'use strict';
function UiPhoEndereco() {
return {
templateUrl: 'app/modules/main/scripts/directives/uiPhoEndereco/uiPhoEndereco.html',
restrict: 'AE',
require: ['uiText', 'ui-pho-select', 'vsGoogleAutocomplete'],
scope: {
model: '='
},
cvt 1600 900 60
xrandr
xrandr --newmode "1600x900_60.00" 118.25 1600 1696 1856 2112 900 903 908 934 -hsync +vsync
xrandr --verify what is a external Monitor (in my case VGA1)
xrandr --addmode VGA1 "1600x900_60.00"
xrandr --output VGA1 --mode 1600x900_60.00
apt-get update
apt-get install build-essential libssl-dev
curl https://raw.githubusercontent.com/creationix/nvm/v0.25.0/install.sh | bash
source ~/.profile
nvm --version
sudo apt-get update
sudo apt-key adv --keyserver hkp://p80.pool.sks-keyservers.net:80 --recv-keys 58118E89F3A912897C070ADBF76221572C52609D
sudo apt-add-repository 'deb https://apt.dockerproject.org/repo ubuntu-xenial main'
sudo apt-get update
apt-cache policy docker-engine
sudo apt-get install -y docker-engine
sudo groupadd docker
sudo gpasswd -a $USER docker