Skip to content

Instantly share code, notes, and snippets.

View danielbaccin's full-sized avatar

Daniel Baccin danielbaccin

View GitHub Profile
ALTER USER user IDENTIFIED BY "1234" ACCOUNT UNLOCK
@danielbaccin
danielbaccin / gist:e6c2a9d5bb4c14f9630f
Last active September 9, 2015 14:17
Moving a repository from bitbucket to github
git remote -v
git remote rename origin bitbucket
git remote
git remote add origim urlDoRepositorioNoGithub
git remote -v
git push origin master
git remote rm bitbucket
git remote -v
referencia:
@danielbaccin
danielbaccin / gist:69583604a9988ff0bfde
Created July 26, 2015 20:08
boot com DISKPART WIN
http://www.profissionaisti.com.br/2012/10/tutorial-boot-do-windows-7-atraves-de-um-pen-drive/
@danielbaccin
danielbaccin / gist:0b5c360c3d7c7ad5855c
Created July 24, 2015 21:44
configurando ftrScanAPI no ubuntu
apt-get install lib32stdc++6.
apt-get install libusb-0.1-4:i386
sudo apt-get install libgtk2.0-0:i386
referencias
http://askubuntu.com/questions/74371/how-to-install-32-bit-version-of-libstdc-so-6-on-a-64-bit-machine
http://askubuntu.com/questions/311401/libusb-0-1-so-4-shared-lib-error-in-ubuntu-64-bit-system
http://askubuntu.com/questions/356605/ubuntu-13-10-64-bit-machinarium-error-while-loading-shared-libraries-libgtk-x1
@danielbaccin
danielbaccin / gist:7508749b657b9cde78ee
Created July 24, 2015 02:41
Android USB Debugging on Ubuntu
cd /etc/udev/rules.d/
vi 51-android.rules
verificar o VendorIds na lista
http://developer.android.com/tools/device.html#VendorIds
incluir a linha correspondente ao dispositivo que deseja habilitar
SUBSYSTEM=="usb", ATTR{idVendor}=="0x1d57", MODE="0666", GROUP="plugdev"
chmod a+r /etc/udev/rules.d/51-android.rules
sudo service udev restart
sudo adb kill-server
sudo adb start-server
@danielbaccin
danielbaccin / generate-sample-jar.sh
Created July 23, 2015 22:04
Script para gerar Applet de exemplo da griaule no Linux
#!/bin/bash
# http://www.linu.com.br/papers/paper032.html
# http://stackoverflow.com/questions/4169717/why-does-my-applet-get-a-java-security-accesscontrolexception-access-denied-ja
# http://www.griaulebiometrics.com/wiki/index.php/Fingerprint_SDK_2009:FAQ#How_do_I_compile_the_library_for_Java_64_bits_on_Windows.3F
# 1. baixa sample e descompacat (http://www.griaulebiometrics.com/page/pt-br/downloads);
# 2. copia esse script (generate-sample-jar.sh) para raiz do sample e dá permissao de execucao;
# 3. altera variaveis DLLDIR e LICENSEDIR
@danielbaccin
danielbaccin / gist:c698afb4daa89bd000a8
Created May 11, 2015 20:43
RECUPERAR SENHA DE ROOT NO UBUNTU
http://sejalivre.org/aprenda-a-recuperar-sua-senha-de-root-no-ubuntu-debian-e-linux-mint/
@danielbaccin
danielbaccin / gist:12ab37cd24bf2c98326d
Created March 4, 2015 20:27
listar conexões oracle
select
username,
osuser,
terminal,
utl_inaddr.get_host_address(terminal) IP_ADDRESS
from
v$session
where
username is not null
order by
@danielbaccin
danielbaccin / gist:8df3aa1d9eeee93162ed
Last active August 29, 2015 14:07
assert de time zone linux
referencia: http://www.vivaolinux.com.br/artigo/Modificando-o-TimeZone-2-metodos
# cat /etc/timezone
America/Sao_Paulo
# ls /usr/share/zoneinfo/America/
# ls /usr/share/zoneinfo/America/ | grep Noronha
Noronha
@danielbaccin
danielbaccin / 0_reuse_code.js
Created February 4, 2014 18:53
Here are some things you can do with Gists in GistBox.
// Use Gists to store code you would like to remember later on
console.log(window); // log the "window" object to the console