Skip to content

Instantly share code, notes, and snippets.

@jpatters
jpatters / HeidiDecode.js
Last active May 17, 2024 12:41
Decodes a password from HeidiSQL. HeidiSQL passwords can be found in the registry. Use File -> Export Settings to dump all settings. Great for if you forget a password.
function heidiDecode(hex) {
var str = '';
var shift = parseInt(hex.substr(-1));
hex = hex.substr(0, hex.length - 1);
for (var i = 0; i < hex.length; i += 2)
str += String.fromCharCode(parseInt(hex.substr(i, 2), 16) - shift);
return str;
}
document.write(heidiDecode('755A5A585C3D8141786B3C385E3A393'));
@sebsto
sebsto / gist:6af5bf3acaf25c00dd938c3bbe722cc1
Last active May 17, 2024 12:40
Start VNCServer on Mac1 EC2 Instance
# YouTube (english) : https://www.youtube.com/watch?v=FtU2_bBfSgM
# YouTube (french) : https://www.youtube.com/watch?v=VjnaVBnERDU
#
# On your laptop, connect to the Mac instance with SSH (similar to Linux instances)
#
ssh -i <your private key.pem> ec2-user@<your public ip address>
#
# On the Mac
@engelin
engelin / create-jira-issue.yaml
Created January 30, 2023 17:46
Jira & github integration backup
name: Create a Jira Issue
on:
issues:
types:
- opened
- reopened
jobs:
create-jira-issue:
runs-on: ubuntu-latest
@pdaug
pdaug / web_scrapper_get_trip.js
Last active May 17, 2024 12:39
The script web scrapper runner in console browser to get all device trips at tracker platform
// webscrapper
(async function () {
const delay = 2000;
const table = document.querySelector("table.history_table tbody");
const tableSecondChildren = table.children[1];
tableSecondChildren.click();
await new Promise(function (resolve) {
setTimeout(function() {
resolve();
@kevin-smets
kevin-smets / iterm2-solarized.md
Last active May 17, 2024 12:37
iTerm2 + Oh My Zsh + Solarized color scheme + Source Code Pro Powerline + Font Awesome + [Powerlevel10k] - (macOS)

Default

Default

Powerlevel10k

Powerlevel10k

@audacus
audacus / vanilla-js-ajax.js
Last active May 17, 2024 12:37
Template for making a AJAX request with vanilla JavaScript.
// create request object
var xhttp = new XMLHttpRequest();
// set params
var method = 'GET' || 'DELETE' || 'POST' || 'PUT' || 'PATCH';
var url = 'controller/action';
var asynchronous = true;
// open request
xhttp.open(method, url, asynchronous);
// set ajax headers
xhttp.setRequestHeader('X-Requested-With', 'XMLHttpRequest');
@Klerith
Klerith / configurar-node-ts.md
Last active May 17, 2024 12:37
Node con TypeScript - TS-Node-dev simplificado

Node con TypeScript - TS-Node-dev (preferido)

  1. Instalar TypeScript y demás dependencias
npm i -D typescript @types/node ts-node-dev rimraf
  1. Inicializar el archivo de configuración de TypeScript ( Se puede configurar al gusto)
npx tsc --init --outDir dist/ --rootDir src