Skip to content

Instantly share code, notes, and snippets.

View jzucker2's full-sized avatar

Jordan Zucker jzucker2

  • PubNub
  • San Francisco
View GitHub Profile
from datetime import datetime
quarantine_days = datetime.datetime.now() - datetime.datetime(2020, 3, 16)
print('This shitty quarantine has going for {}'.format(quarantine_days))

Airflow Updates

  • Need to fix image pull secrets, in the configmap and in the workers
  • Need to fix git-sync init container code and checking out to /tmp which docker images also uses
  • Need to add DMSOperator
  • Fix for passwords with @ symbol in them in uri string in env variables
  • JSON linter/validator for Connections extra
jordan@jordan-zucker:~/Coding/caravan (master $% u=)$ k describe pod jordandag3runthis1-8df809f80c874d6ca50acb0d0480307c
Name:         jordandag3runthis1-8df809f80c874d6ca50acb0d0480307c
Namespace:    default
Node:         minikube/192.168.99.100
Start Time:   Mon, 15 Jan 2018 11:59:57 -0800
Labels:       airflow-slave=
              dag_id=jordan_dag_3
              execution_date=2018-01-15T19_59_54.838835
              task_id=run_this_1

Convert to mp3

Found an example online

for i in *.m4a; do ffmpeg -i "$i" "${i%.*}.mp3"; done
// the idea behind this is to make sure we establish an SSL connection with all 3 pubnub non-subscribe connections
// this is to try and get all three connections to be established right away. Running this frequently won't make things
// better, it just needs to run whenever the app becomes active
func establishSSL() {
DispatchQueue.concurrentPerform(iterations: 10) { (_) in
self.client.publish("Establish all 3 ssl connections", toChannel: "AnyChannel", withCompletion: { (status) in
print("We just published with: \(status.debugDescription)")
})
}
}

Ten Must Watch Movies (Short)

  1. Maltese Falcon
  2. Citizen Kane
  3. There Will Be Blood
  4. Godfather 1/2
  5. Singin' in the Rain
  6. Star Wars
  7. City Lights
  8. Chinatown

Ten Must Watch Movies

I wrote this all of the top of my head. I could have made half of this up. I probably didn't though.

1. Maltese Falcon

Takes place in San Francisco, opening shots were likely stock footage from earlier and mostly filmed on sound stages in LA. Seminal Bogart film, it launched the career of Bogart and its director John Huston (plays the father figure in 8: Chinatown). They were known to get absolutely hammered every night after filming. Throughout their career (they made many movies together, all good). They more or less created the noir genre with this film, known for its heavy use of shadows. Bogart in this movie is the ultimate tough guy, impervious to dames, able to take a punch and give one right back. Very obviously the influence for Blade Runner, both Gosling and Harrison Ford in the original. Love interest Mary Astor is the inspiration for Rachael (Sean Young) in Blade Runner. Also big inspiration for last season of Archer. Sydney Greenstreet, Bogart, and Peter Lorre all reu

2017-10-31 12:45:24.453700-0700 PubNubSample[302:11328] [MC] Lazy loading NSBundle MobileCoreServices.framework
2017-10-31 12:45:24.454762-0700 PubNubSample[302:11328] [MC] Loaded MobileCoreServices.framework
2017-10-31 12:45:24.466559-0700 PubNubSample[302:11328] [MC] System group container for systemgroup.com.apple.configurationprofiles path is /private/var/containers/Shared/SystemGroup/systemgroup.com.apple.configurationprofiles
2017-10-31 12:45:24:480 PubNubSample[302:11328] <Logger::com.pubnub.pubnub-objc> File logger enabled.
2017-10-31 12:45:24:480 PubNubSample[302:11328] <Logger::com.pubnub.pubnub-objc> Log files stored in: /var/mobile/Containers/Data/Application/15701EF8-7AEF-4CF3-96E9-9160BE8CF16E/Documents/Logs/com.pubnub.pubnub-objc.
2017-10-31 12:45:24:480 PubNubSample[302:11328] <Logger::com.pubnub.pubnub-objc> Disk quota changed to 52428800 bytes.
2017-10-31 12:45:24.509222-0700 PubNubSample[302:11328] refreshPreferences: HangTracerEnabled: 0
2017-10-31 12:45:24.509255-0700 PubNubSample[302
2017-10-30 10:19:09.127081-0700 PubNubSample[945:258248] [MC] Lazy loading NSBundle MobileCoreServices.framework
2017-10-30 10:19:09.128682-0700 PubNubSample[945:258248] [MC] Loaded MobileCoreServices.framework
2017-10-30 10:19:09.165872-0700 PubNubSample[945:258248] [MC] System group container for systemgroup.com.apple.configurationprofiles path is /private/var/containers/Shared/SystemGroup/systemgroup.com.apple.configurationprofiles
2017-10-30 10:19:09:185 PubNubSample[945:258248] <Logger::com.pubnub.pubnub-objc> File logger enabled.
2017-10-30 10:19:09:185 PubNubSample[945:258248] <Logger::com.pubnub.pubnub-objc> Log files stored in: /var/mobile/Containers/Data/Application/00434C97-4A00-463F-8BEB-885B1B376B3E/Documents/Logs/com.pubnub.pubnub-objc.
2017-10-30 10:19:09:185 PubNubSample[945:258248] <Logger::com.pubnub.pubnub-objc> Disk quota changed to 52428800 bytes.
2017-10-30 10:19:09.220138-0700 PubNubSample[945:258248] refreshPreferences: HangTracerEnabled: 0
2017-10-30 10:19:09.220366-0700 PubNubSam
//
// ViewController.swift
// PubNubSample
//
// Created by QBurst on 11/07/17.
// Copyright © 2017 QBurst. All rights reserved.
//
import UIKit
import PubNub