This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
*Add pagination of items to categories/view | |
*Add pagination of items to rooms/view | |
*Room printouts with QR codes | |
*Tooltips or help page to explain fields | |
*Advanced search | |
**Search through attributes, files, comments and verifications | |
*Grid view for categories | |
*CSV export system | |
*Thumbnails for uploaded files | |
*AJAXify things like adding comments, files, verifications, etc |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php | |
// generate user account data | |
$ldap_user_row = array( | |
'username' => $username, | |
'user_password' => phpbb_hash($password), | |
'user_email' => (!empty($config['ldap_email'])) ? utf8_htmlspecialchars($ldap_result[0][htmlspecialchars_decode($config['ldap_email'])][0]) : '', | |
'group_id' => (int) $row['group_id'], | |
'user_type' => USER_NORMAL, | |
'user_ip' => $user->ip, | |
'user_new' => ($config['new_member_post_limit']) ? 1 : 0, |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?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( |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
$ php -a | |
Interactive mode enabled | |
php > var_dump(array(null)); | |
array(1) { | |
[0]=> | |
NULL | |
} | |
php > var_dump(array()); | |
array(0) { |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php | |
$routes->resources('NetworkObjects', ['inflect' => 'dasherize'], function ($routes) { | |
$routes->resources('Attributes'); | |
}); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Verifying that +andrewl is my blockchain ID. https://onename.com/andrewl |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
default_view: | |
view: yes | |
entities: | |
# - group.location | |
- group.thermostat | |
- group.garage | |
# - group.bedroom | |
# - group.cameras | |
environment: |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/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() |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
-----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 |
OlderNewer