Skip to content

Instantly share code, notes, and snippets.

View henrytriplette's full-sized avatar
🦦
Unfortunately I may be slow to respond.

Henry Triplette henrytriplette

🦦
Unfortunately I may be slow to respond.
View GitHub Profile
@henrytriplette
henrytriplette / global.js
Last active July 5, 2016 13:27
Three.js - Remove White Border on Alpha Renderer/AntiAliasing
/* -------------------------------------------------- */
// With Three.js transparent backgound enabled (alpha)//
// and model white textures on dark background //
// sometimes artifacts pop up on the edges. //
// To avoid that, slightly raise the clearcolor //
// opacity instead of disabilng antialias. //
/* -------------------------------------------------- */
// Standard Renderer
renderer = new THREE.WebGLRenderer( {
@henrytriplette
henrytriplette / socket.io.list.js
Created September 7, 2016 13:35
Socket.io QuickList
// sending to sender-client only
socket.emit('message', "this is a test");
// sending to all clients, include sender
io.emit('message', "this is a test");
// sending to all clients except sender
socket.broadcast.emit('message', "this is a test");
// sending to all clients in 'game' room(channel) except sender
@henrytriplette
henrytriplette / check_submission.exe
Created September 13, 2016 15:10
Unity 5 - is not built with SDK version v1.0.0 (or newer)
Replace "C:\Program Files (x86)\"
with "C:\Progra~2\" in cmd when launcing check_submission.exe

Keybase proof

I hereby claim:

  • I am henrytriplette on github.
  • I am henrytriplette (https://keybase.io/henrytriplette) on keybase.
  • I have a public key whose fingerprint is 08E3 5739 0B8B 03E3 B8EC C1B2 71AD 1635 110F 0E55

To claim this, I am signing this object:

@henrytriplette
henrytriplette / Cmd_Powershell_Bat_Shippets.md
Last active July 9, 2019 10:06
Cmd and Powershell Snippets

Rename all files inside folder in lowercase. Recursive. - Cmd

for /f "Tokens=*" %f in ('cmd /c "echo %cd%& dir /l/b/ad/s"') do (for /f "Tokens=*" %g in ('dir /l/b/a-d "%f"') do (rename "%f"\"%g" "%g"))

:: Rename all directories to lowecase. Recursive - Cmd

for /F %a in ('dir /L /B') do ren %a %a

Count number of lines inside a file

@henrytriplette
henrytriplette / InstaPy on Raspberry Pi 3.md
Last active February 8, 2021 00:21
InstaPy on Raspberry Pi 3

Install InstaPy on Rpi 3

  1. Install Raspbian (use NOOBs)

  2. sudo apt-get update && sudo apt-get upgrade

  3. mkdir Instagram

  4. cd Instagram

@henrytriplette
henrytriplette / wifi.md
Last active January 23, 2018 13:58
Windows Powershell Wifi Password

Show list of saved wifi profiles

netsh wlan show profile

Show info and password

netsh wlan show profiles name="INSERTNAMEHERE" key=clear
@henrytriplette
henrytriplette / Miner.md
Last active March 31, 2022 06:29
Raspberry Pi Monero Miner

Install Dependencies

sudo apt-get install automake autoconf pkg-config libcurl4-openssl-dev libjansson-dev libssl-dev -y 
sudo apt-get update -y
sudo apt-get install git -y
sudo apt-get install -y --force-yes autoconf automake libtool
sudo apt-get install screen -y
sudo apt-get install build-essential -y
@henrytriplette
henrytriplette / MySQL_Snippets.md
Last active May 10, 2019 09:55
MySQL Snippets

Windows: Export all MySQL db into single .sql files

mysql.exe -u root -p -s -N -e "SHOW DATABASES" | for /F "usebackq" %D in (`findstr /V "information_schema performance_schema"`) do mysqldump %D -u root -p > D:\Backup\MySQL\%D.sql

Windows: Import MySQL .sql file into db

First create empty database, then import the dump file into the newly created db.

@henrytriplette
henrytriplette / RaspberryPi Useful commands.md
Last active August 29, 2019 02:13
RaspberryPi Useful commands

Disable screen blanking in X-Windows on Raspbian

xset s off         # don't activate screensaver
xset -dpms         # disable DPMS (Energy Star) features.
xset s noblank     # don't blank the video device

Disk space, memory and cpu

df -h: Shows information about the available disk space.