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
ipconfig /release
ipconfig /flushdns
ipconfig /renew
netsh winsock reset
netsh interface ipv4 reset
netsh interface ipv6 reset
netsh winsock reset catalog
netsh int ipv4 reset reset.log
netsh int ipv6 reset reset.log

Save render as png

Main render function

var getImageData = false // Turn to true to launch export

function render(time) {

  // Pdf export
@henrytriplette
henrytriplette / IIS *.woff2 font 404.md
Last active May 28, 2018 11:14
Fix Windows Server IIS 7 *.woff2 font 404

Open IIS Manager At server level:

  • In the panel, look for MIME Types
  • Click add
File: .woff2
Mime: font/x-woff2

Or:

@henrytriplette
henrytriplette / Windows 10 GRUB Remove.md
Last active February 15, 2026 01:51
Windows 10 - How to Remove GRUB from UEFI partition

Select the hard drive

From administrator cmd run these commands to identify and select the hard drive

diskpart
 
list disk
 
sel disk 

Assign it a drive letter

@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.
@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 / 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 / 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 / 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 / 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