Skip to content

Instantly share code, notes, and snippets.

Avatar

jeffmikels

View GitHub Profile
@jeffmikels
jeffmikels / syntax.php
Created Mar 17, 2021
Dokuwiki PAGEINDEX Plugin version 1.3
View syntax.php
<?php
/**
* Plugin page index: index table for pages in a name space
*
* @license GPL 2 (http://www.gnu.org/licenses/gpl.html)
* @author Kite <Kite@puzzlers.org>
* @based_on "externallink" plugin by Otto Vainio <plugins@valjakko.net>
*/
if(!defined('DOKU_INC')) {
@jeffmikels
jeffmikels / hex.py
Created Mar 12, 2021
Python script to output anything as hex
View hex.py
#!/usr/bin/env python3
# usage:
# hex.py file1 file2
# cat file1 | hex.py
import os, sys
if len(sys.argv) > 1:
for fn in sys.argv[1:]:
@jeffmikels
jeffmikels / facebook-friend-process.js
Created Jan 13, 2021
browser script to process facebook friends in bulk
View facebook-friend-process.js
// THIS SCRIPT WORKS ON THE FOLLOWING FACEBOOK PAGE
// https://www.facebook.com/[yourprofile]/friends
let loopcancel = false;
let next_friend = 0;
// not reliable... will also return liked pages and events
let friendTileClasses = 'bp9cbjyn ue3kfks5 pw54ja7n uo3d90p7 l82x9zwi n1f8r23x rq0escxv j83agx80 bi6gxh9e discj3wi hv4rvrfc ihqw7lf3 dati1w0a gfomwglr';
function get_friends() {
@jeffmikels
jeffmikels / fix-pro6.lua
Created Dec 21, 2019
Hammerspoon script to rearrange propresenter screen windows
View fix-pro6.lua
-- CONFIGURE PROPRESENTER SETTINGS
local pro6_bundle_id = 'com.renewedvision.ProPresenter6'
local pro6_icon_path = "[PATH TO PROPRESENTER ICON]"
-- CONFIGURE DISPLAY SETTINGS
-- hammerspoon reads all the displays as one giant canvas of pixels
-- if two displays are ordered horizontally:
-- the main display will have these coordinates:
-- {x=0,y=0,w=display1_width,h=display1_height}
--
@jeffmikels
jeffmikels / make_pro6_doc.py
Created Dec 21, 2019
Generate ProPresenter6 Document
View make_pro6_doc.py
#!/usr/bin/env python3
import os
import re
import base64
import json
import uuid
import html
# This script generates a ProPresenter file from a slide object
@jeffmikels
jeffmikels / output.txt
Created Dec 10, 2019
flutter issue #46460
View output.txt
Joshua:flutter_lobby_signage jeff$ flutter doctor
Doctor summary (to see all details, run flutter doctor -v):
[✓] Flutter (Channel stable, v1.9.1+hotfix.6, on Mac OS X 10.14.5 18F132, locale en-US)
[✓] Android toolchain - develop for Android devices (Android SDK version 28.0.3)
[✓] Xcode - develop for iOS and macOS (Xcode 11.0)
[✓] Android Studio (version 3.3)
[✓] VS Code (version 1.40.2)
[✓] Connected device (2 available)