Skip to content

Instantly share code, notes, and snippets.

thkprado

Block or report user

Report or block thkprado

Hide content and notifications from this user.

Learn more about blocking users

Contact Support about this user’s behavior.

Learn more about reporting abuse

Report abuse
View GitHub Profile
View cpu_benchmark.sh
#!/bin/bash
vcgencmd measure_temp
sysbench --test=cpu --cpu-max-prime=20000 --num-threads=4 run >/dev/null 2>&1
vcgencmd measure_temp
sysbench --test=cpu --cpu-max-prime=20000 --num-threads=4 run >/dev/null 2>&1
vcgencmd measure_temp
sysbench --test=cpu --cpu-max-prime=20000 --num-threads=4 run >/dev/null 2>&1
vcgencmd measure_temp
sysbench --test=cpu --cpu-max-prime=20000 --num-threads=4 run >/dev/null 2>&1
vcgencmd measure_temp
View Oracle Install Instant Client
http://www.oracle.com/technetwork/topics/linuxsoft-082809.html
http://oraculo.serpro/pergunta/109/como-instalar-o-sqlplus-em-ambiente-linux/
- Antes de iniciar a instalação, executar o comando:
$ sudo apt-get install libaio1
- Obter arquivos instantclient-basiclite-linux e instantclient-sqlplus-linux. A versão deve ser a mesma para a arquitetura do sistema operacional (x86 ou x64).
- Criar os links simbólicos para as bibliotecas:
ln -s libclntshcore.so.12.1 libclntshcore.so
@thkprado
thkprado / installPythonSource.txt
Created Feb 18, 2016
Install Python - Source Compile Method
View installPythonSource.txt
Unix dependencies:
$ sudo apt-get install -y make build-essential zlib1g-dev wget curl
?libssl-dev
?libbz2-dev
?libreadline-dev
?libsqlite3-dev
?llvm
?libncurses5-dev
?libncursesw5-dev
View Express3to4.txt
Express 3.0 -> Express 4.0
bodyParser -> body-parser
compress -> compression
cookieSession -> cookie-session
logger -> morgan
cookieParser -> cookie-parser
session -> express-session
favicon -> static-favicon
response-time -> response-time
error-handler -> errorhandler
View factoryPrototypeTest.js
const food = {
init: function(type) {
this.type = type
},
eat: function() {
console.log('you ate the ' + this.type)
},
create: function(type) {
const o = Object.create(food)
o.init(type)
@thkprado
thkprado / HideUpdates.vbs
Created Sep 11, 2015
Hide Telemetry and Windows 10 Related Updates from Windows 7
View HideUpdates.vbs
If Not WScript.Arguments.Named.Exists("elevate") Then
CreateObject("Shell.Application").ShellExecute WScript.FullName, WScript.ScriptFullName & " /elevate", "", "runas", 1
WScript.Quit
End If
Dim hideupdates(13)
hideupdates(0) = "KB2952664"
hideupdates(1) = "KB2977759"
hideupdates(2) = "KB2990214"
@thkprado
thkprado / UninstallTelemetryWin10From7.bat
Last active Sep 11, 2015
Remove Telemetry and Windows 10 Related Updates from Windows 7. It must be executed with admin privilege.
View UninstallTelemetryWin10From7.bat
@echo off
::set list=(2952664,2990214,3021917,3022345,3035583,3044374,3050267,3064683,3068708,3072318,3075249,3075851,3075853,3080149,3083324,3083325)
set list=(2952664,2977759,2990214,3021917,3022345,3035583,3050265,3065987,3068708,3075249,3075851,3080149,3083324)
%windir%\system32\reg.exe query "HKU\S-1-5-19" 1>nul 2>nul || goto :eof
setlocal enableextensions
setLocal EnableDelayedExpansion
cd /d "%~dp0"
set name=
echo.
You can’t perform that action at this time.