Skip to content

Instantly share code, notes, and snippets.

View johnatandias's full-sized avatar
👨‍👩‍👧‍👦
No success compensates for your family's failure.

Johnatan Dias johnatandias

👨‍👩‍👧‍👦
No success compensates for your family's failure.
View GitHub Profile
@johnatandias
johnatandias / GetSqlServerProductKey.ps1
Created November 9, 2017 14:32
Obter chave do SQL Server 2008
function GetSqlServerProductKey {
param ($targets = ".")
$hklm = 2147483650
$regPath = "SOFTWARE\Microsoft\Microsoft SQL Server\100\Tools\Setup"
$regValue1 = "DigitalProductId"
$regValue2 = "PatchLevel"
$regValue3 = "Edition"
Foreach ($target in $targets) {
$productKey = $null
$win32os = $null
@johnatandias
johnatandias / Processos rodando.sql
Created November 17, 2017 14:10
Processos rodando no SQL Server
SELECT Processo = spid,
Computador = hostname,
Usuario = loginame,
Status = status,
BloqueadoPor = blocked,
TipoComando = cmd,
Aplicativo = program_name
FROM
master..sysprocesses
WHERE
@johnatandias
johnatandias / git.md
Created December 7, 2017 21:33 — forked from leocomelli/git.md
Lista de comandos úteis do GIT

#GIT

Estados

  • Modificado (modified);
  • Preparado (staged/index)
  • Consolidado (comitted);

Ajuda

@johnatandias
johnatandias / user-settings.json
Last active September 18, 2018 14:10
User settings - VS code
{
"workbench.sideBar.location": "right",
"window.zoomLevel": -1,
"files.autoSave": "afterDelay",
"gitlens.advanced.messages": {
"suppressShowKeyBindingsNotice": true
},
"workbench.iconTheme": "vscode-icons",
"files.associations": {
"*.webapp": "json"
@johnatandias
johnatandias / DevelopmentEnvironmentReactNative.md
Created August 31, 2018 03:37
Development environment React Native

INSTALLATION

INSTALL NODEJS

Since React native is a framework of JavaScript, it requires to have Nodejs(A JavaScript runtime) installed.

curl -sL https://deb.nodesource.com/setup_9.x | sudo -E bash -
sudo apt-get install -y nodejs

INSTALL NPM

NPM will be installed with the Nodejs installation itself. However, you can install the latest version for npm.

@johnatandias
johnatandias / keybindings.json
Created September 26, 2018 19:15
My Vscode Keybindings
[
{
"key": "ctrl+alt+s",
"command": "workbench.action.files.saveAs"
},
{
"key": "ctrl+shift+s",
"command": "-workbench.action.files.saveAs"
},
{
(() => {
const synth = window.speechSynthesis;
const message = new SpeechSynthesisUtterance("See how simple it is");
message.rate = 0.7; // Voice speed
synth.speak(message);
})();
/**
* A simple broadcast class created in a "Reactive" model
* @constructor
* @template T t
*/
export class Subject<T> {
_changeObservers: { (param: T): void; }[] = [];
/**
* Subscribe to listener new messages about this subject
@johnatandias
johnatandias / treino_hard.cfg
Created July 1, 2019 20:17
CS:GO Treino hard
sv_cheats 0
bot_kick
mp_autobalance 0
mp_limitteams 0
mp_startmoney 10000
bot_add_t
bot_add_t
bot_add_t
bot_add_t
bot_add_t
@johnatandias
johnatandias / treino.cfg
Created July 1, 2019 20:20
CS:GO - Treino
sv_cheats 1
sv_infinite_ammo 2
ammo_grenade_limit_total 5
sv_showimpacts 1
mp_buytime 9999
mp_buy_anywhere 1
sv_regeneration_force_on 1
mp_warmup_end
mp_freezetime 0
mp_roundtime 60