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
require 'fileutils' | |
require 'digest' | |
class MediaMover | |
NAS_MEDIA_DIR = '/media/nas/video' | |
NAS_RAW_INCOMING_DIR = NAS_MEDIA_DIR + '/Incoming Raw Footage/Insta360' | |
INSTA360_MOUNT_POINT = '/media/dav/disk' | |
INSTA360_MEDIA_DIR = INSTA360_MOUNT_POINT + '/DCIM/Camera01' | |
def run |
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
# Coderpad with simple test system | |
# provides a few basic assertions and a test harness so you can at least test drive | |
# those silly interview puzzles that only ever come up in interviews and almost | |
# never in real work. | |
class Code | |
def sut(param1 = nil, param2 = nil) | |
return true | |
end |
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
In vim: | |
%s#\:\s\+#='# | |
%s/$/'/ | |
gets you most of the way there |
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
# bundle exec ruby scripts/combine-quickbooks-p-n-l.rb report-1.csv report-2.csv | |
# | |
# Run and export the two reports in Quickbooks, then feed into this script. | |
require 'csv' | |
class CombineQuickbooksPNL | |
def initialize(unspecified_csv_file, corporate_csv_file) | |
@unspecified_csv_file = unspecified_csv_file | |
@corporate_csv_file = corporate_csv_file |
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
# frozen_string_literal: true | |
require 'quickbooks-ruby' | |
require 'launchy' | |
require 'yaml' | |
require 'text-table' | |
require 'pp' | |
require 'byebug' | |
Quickbooks.sandbox_mode = true |
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
<?xml version="1.0" encoding="UTF-8"?> | |
<!-- Solr managed schema - automatically generated - DO NOT EDIT --> | |
<schema name="enterpriseSearch" version="1.6"> | |
<uniqueKey>docType-identifier</uniqueKey> | |
<fieldType name="_bbox_coord" class="solr.TrieDoubleField" stored="false" docValues="true" precisionStep="8"/> | |
<fieldType name="alphaNumericSort" class="solr.TextField" omitNorms="true" sortMissingLast="false"> | |
<analyzer> | |
<tokenizer class="solr.KeywordTokenizerFactory"/> | |
<filter class="solr.LowerCaseFilterFactory"/> | |
<filter class="solr.TrimFilterFactory"/> |
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
require 'base64' | |
require 'openssl' | |
HOST = 'https://www.example.com' | |
if ARGV.length != 1 | |
STDERR.puts "Pass in <shop> as param" | |
exit | |
end |
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 my Blockstack ID is secured with the address 19HZAtt3k2ydZVtqXjn5uGvXQZUYDjjwu6 https://explorer.blockstack.org/address/19HZAtt3k2ydZVtqXjn5uGvXQZUYDjjwu6 |
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
This message is a reminder to help you keep the contact data associated with your domain registration up-to-date. | |
According to ICANN's WHOIS Data Reminder Policy, as an accredited registrar, Moniker must present - at least annually - to the registrant the current WHOIS information, and remind the registrant that provision of false WHOIS information can be grounds for cancellation of their domain name registration. | |
Registrants must review their WHOIS data and make any corrections, if necessary. | |
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
require 'fileutils' | |
class ModifyXcodeFileTemplateCommentSections | |
XCODE_TEMPLATE_DIR="/Applications/Xcode.app/Contents/Developer/Platforms/iPhoneOS.platform/Developer/Library/Xcode/Templates/File Templates" | |
ANNOYING_COMMENT_BLOCK = <<-EOB | |
// | |
// ___FILENAME___ | |
// ___PROJECTNAME___ | |
// |
NewerOlder