Skip to content

Instantly share code, notes, and snippets.

View aceat64's full-sized avatar

Andrew LeCody aceat64

View GitHub Profile

Keybase proof

I hereby claim:

  • I am aceat64 on github.
  • I am andrewlecody (https://keybase.io/andrewlecody) on keybase.
  • I have a public key ASBGQuT0YD4OvLvPmNbcP1z9ZdbIrRoV1tcPouTw9kpPGwo

To claim this, I am signing this object:

@aceat64
aceat64 / Tekton Socket Holders
Created July 11, 2017 16:19 — forked from anonymous/Tekton Socket Holders
OpenScad script to generate socket holder for Tekton sockets
// sae
//socketDiameters = [ 17.081, 17.081, 17.081, 18.263, 20.216, 22.254, 24.398, 26.392, 28.469, 30.591];
//socketLabels = [
//"\u2075/\u2081\u2086", // 5/16
//"\u00b3/\u2088", // 3/8
//"\u2077/\u2081\u2086", // 7/16
//"\u00b9/\u2082", // 1/2
//"\u2079/\u2081\u2086", // 9/16
//"\u2075/\u2088", // 5/8
//"\u00B9\u00B9/\u2081\u2086", // 11/16
@aceat64
aceat64 / pubkey.txt
Last active February 18, 2017 20:53
New Public Key
-----BEGIN PGP PUBLIC KEY BLOCK-----
Version: GnuPG v2
mFIEWHKfFRMIKoZIzj0DAQcCAwRBOUwl7zl7+g8cjsg7ahR0nUlAXilUu+IPhDm2
YlbjB52iZ4SMEs4XTmsHXLa+5T8CQ+td7d/GzspIu6JKCz9stCZBbmRyZXcgTGVD
b2R5IDxhbmRyZXdsZWNvZHlAZ21haWwuY29tPoh5BBMTCAAVBQJYcp8VAgsJAhsD
AhUIAhYAAheAABYJEL8A5v40aOcWCxpUUkVaT1ItR1BHIocA/1xQPtNOFroHaTGG
wO7nX/SLssTu28L1wLaWfXR8oX3wAP9VEeCacrCRHYqlW82f6LbglYTNjUkNTvX+
haLbzW+pWohGBBARAgAGBQJYqLJdAAoJEPBB1Mudnn+S+HcAoOCP4j7dXlsiHIZF
ByDdjD3tT9VQAKD1hy1iLszpNIWFcfLd0UHh68B4dLhWBFhynxUSCCqGSM49AwEH
@aceat64
aceat64 / delete_dups_from_gmusic.py
Created January 17, 2017 03:55
Delete duplicate files from google music
#!/usr/bin/python
from gmusicapi import Mobileclient
import sys, json
api = Mobileclient()
logged_in = api.login('[email protected]', 'password_or_app_password_if_using_2fa', Mobileclient.FROM_MAC_ADDRESS)
if logged_in:
count = 0
dupes = 0
songs = api.get_all_songs()
default_view:
view: yes
entities:
# - group.location
- group.thermostat
- group.garage
# - group.bedroom
# - group.cameras
environment:
Verifying that +andrewl is my blockchain ID. https://onename.com/andrewl
<?php
$routes->resources('NetworkObjects', ['inflect' => 'dasherize'], function ($routes) {
$routes->resources('Attributes');
});
AssetsController.php:
<?php
public $paginate = array(
// The default number of rows to show on a page
'limit' => 100,
// The max number of rows that can be shown on a page
'maxLimit' => 1000,
// Use custom find so we can sort by 2nd level associated models
@aceat64
aceat64 / gist:9f9bd704340f1390cdc2
Created December 18, 2014 22:46
Null vs Empty Arrays
$ php -a
Interactive mode enabled
php > var_dump(array(null));
array(1) {
[0]=>
NULL
}
php > var_dump(array());
array(0) {
@aceat64
aceat64 / gist:82df3918b39a56c24470
Last active August 29, 2015 14:11
Random new lines on output
<?php
$parser->addSubcommand('sharepoint', array(
'help' => __('Import from sharepoint csv'),
'parser' => array(
'description' => array(
"Use this command to import assets from a CSV file created by sharepoint.",
"The file argument is required for this command.",
"The following fields are required: serial number, asset tag, model, vendor | manufacturer, bundle id | service id",
),
'arguments' => array(