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
openssl s_client -host SERVER_URL -port 993 -crlf |
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
Add new release não funciona quando mudamos o i18n para pt_BR | |
Funciona com en_US e es_ES | |
Sequencia de chamadas: | |
buggenie/modules/project/templates/releasecenter.html.php | |
onclick = TBG.Main.Helpers.Backdrop.show | |
buggenie/thebuggenie/js/thebuggenie.js | |
TBG.Main.Helpers.ajax url = '/buggenie/thebuggenie/get/partials/project_build/project_id/1' | |
core/load_routes.inc.php |
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
Debugging Titanium Android applications with node-inspector | |
Thanks to Stevo Perisic | |
Download the https://github.com/node-inspector/node-inspector using | |
$ npm install -g node-inspector | |
Than go to your titanium project folder and run: | |
$ node-inspector | |
after that in the same dir run: |
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
/home/fer/genymotion/player --vm-name "Moto X - 4.2.2 - API 17 - 720x1280" |
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
ti build -p android --device-id "Moto X - 4.2.2 - API 17 - 720x1280" | |
http://www.appcelerator.com/blog/2013/12/using-genymotion-with-titanium-3-2/ | |
package Android App for distribution (production): check keystore: | |
$ keytool -list -v -keystore /home/fer/.titanium/mobilesdk/linux/3.2.1.GA/android/dev_keystore | |
password => tirocks |
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
##### TAR ##### | |
cd /root/projects | |
tar -cvpzf /root/projects.tar.gz --exclude=./sfitx ./ | |
c - create a new backup archive. | |
v - verbose mode, tar will print what it's doing to the screen. | |
p - preserves the permissions of the files put in the archive for restoration later. | |
z - compress the backup file with 'gzip' to make it smaller. | |
f <filename> - specifies where to store the backup | |
--exclude=/example/path - The options following this model instruct tar what directories NOT to backup. | |
--one-file-system - Do not include files on a different filesystem. |
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
connecting thru tiny_tds via cli: | |
sudo yum install freetds | |
/etc/freetds.conf -> set tds version! (on ubuntu it was /etc/freetds/freetds.conf and didn't work until set the version to 8.0 | |
$ TDSVER=7.1 tsql -H servername -p 1433 -U domain\\user.name -P `cat pass.txt` | |
try with TDSVER=8.0 too... | |
------------------------------------------- | |
installing tiny_tds gem: | |
sudo yum install freetds-devel | |
rvm use 2.0.0 | |
gem install tiny_tds --platform=ruby --no-ri --no-rdoc #--platform to recompile native |
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
------------------------------------------------------- | |
copy table FROM SHELL between distinct database files: | |
-------------------------------------------------------- | |
sqlite3 source.sqlite3 ".schema myTable" | sqlite3 destination.sqlite3 | |
sqlite3 source.sqlite3 "SELECT * FROM myTable" | sqlite3 destination.sqlite3 ".import /dev/stdin myTable" | |
--------------------------------------------- | |
import data into table: | |
--------------------------------------------- | |
$ head cbo_ocupacoes.csv |
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
################################################### | |
#configuring authentication of a linux box with Microsoft Active-Directory | |
#refer: http://wiki.ubuntu-br.org/AutenticandoAD | |
$ apt-get install krb5-config krb5-user | |
$ vi /etc/krb5.conf | |
[libdefaults] | |
default_realm = DOMAIN.BR | |
default_tgs_enctypes = RC4-HMAC DES-CBC-MD5 DES-CBC-CRC |
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
############################################## | |
#query what packages depend upon XXX | |
repoquery --whatrequires --installed XXX | |
############################################## | |
#remove a repo named XXX | |
cd /etc/yum.repos.d/ | |
mv XXX.repo XXX.repo.not | |
ATT: However, each .repo file can and usually have more than one yum repository defined in it | |
############################################## | |
#query installed package content |
OlderNewer