Skip to content

Instantly share code, notes, and snippets.

@isleshocky77
isleshocky77 / authentication_get_security_token.sh
Created February 20, 2020 22:34
Lift Master / MyQ / Chamberlain API Usage with cURL (and jq)
MYQ_EMAIL=""
MYQ_PASSWORD=""
MYQ_API_URI="https://myqexternal.myqdevice.com/api/v4"
MYQ_APP_ID="JVM/G9Nwih5BwKgNCjLxiFUQxQijAebyyg8QUHr7JOrP+tuPb8iHfRHKwTmDzHOu"
curl "$MYQ_API_URI/User/Validate" \
-d '{"username":"'$MYQ_EMAIL'","password":"'$MYQ_PASSWORD'"}' \
-H 'Content-Type: application/json' \
-H 'User-Agent: Chamberlain/3.73' \
-H 'BrandID: 2' \
0440823f1ca755c5cf6ec0817791cbdb0233ec3ace9b2757919dbefe55e9aa0d7cce299ee737c5a2e6a4217d074e93013f0a97ddd199d8ee9a7d7afb44c3f4230a;synace
@isleshocky77
isleshocky77 / Chrome_61_Backup_Saved_Passwords.js
Last active December 4, 2017 18:48 — forked from MoradiDavijani/Chrome 61 Backup Saved Passwords
As Chrome removed the "Backup" button in "Saved Passwords", you can make a backup from your passwords by running this code in the console!
// 1. Open chrome://settings/passwords
// 2. Open chrome developer tools (using F12 or Ctrl+Shift+i)
// 3. Run the following code in the console tab
// 4. Copy output in a text file and save it somewhere safe!
function asyncForEach(array, done, iterator) {
var i = 0;
next();
function next(err) {
if (err) {
@isleshocky77
isleshocky77 / gist_button_delete.js
Created December 1, 2016 16:53
Gist Delete Button - Tampermonkey User script to add Delete button to each gist on the list view
// ==UserScript==
// @name Gist Delete Button
// @namespace http://ostrow.tech
// @version 0.1
// @description Adds Delete buttons to the list page of gist.com
// @author Stephen Ostrow <stephen@ostrow.tech>
// @match https://gist.github.com/isleshocky77
// @grant none
// ==/UserScript==
@isleshocky77
isleshocky77 / convertNumberToAlphabeticColumn.awk
Created March 1, 2016 20:51
awk function for converting number to an alphabetic column
function convertNumberToAlphabeticColumn(columnNumber) {
dividend = int(columnNumber);
alphabet = "ABCDEFGHIJKLMNOPQRSTUVWXYZ";
columnName = "";
while (dividend > 0)
{
mod = int( dividend ) % 26;
columnName = substr( alphabet, mod, 1 )columnName;
dividend = int( dividend - mod ) / 26 ;
}
@isleshocky77
isleshocky77 / imageChangeDate.sh
Created November 9, 2015 21:55
Changes the date of image in a directory
#!/usr/bin/env bash
options=':c:om'
while getopts $options option
do
case $option in
c ) timeChange=$OPTARG;;
m ) syncModifiedTimestamp=true;;
o ) execute=true;;
h ) echo "imageChangeDate.sh [-c] timeChange String] [-o] Overwrite File"; exit;;