zsh -c "$(curl -fsSL https://raw.githubusercontent.com/NicholasTD07/dotfiles/install-script/install.zsh)"
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
# coding: utf-8 | |
from pytube import ( | |
Playlist as P, | |
Stream as S, | |
YouTube as Y | |
) | |
from pytube.cli import on_progress | |
async def download_best_quality_streams(youtube: Y): |
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
cask "kensingtonworks" do | |
version "3.1.6_1689898605" | |
sha256 "6ce8715647defb7a9adb9e3cb3e6651f745302083dcb8c6beccf6b138477d973" | |
url "https://www.kensington.com/siteassets/software-support/kensingtonworks/july-2023/kensingtonworks_#{version}.pkg" | |
name "KensingtonWorks" | |
desc "Software for customizing Kensington devices" | |
homepage "https://www.kensington.com/software/kensingtonworks/" | |
pkg "kensingtonworks_#{version}.pkg" |
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
from os import listdir | |
from os.path import isfile, join | |
import time | |
import os.path | |
mypath = "/Volumes/VOLUME1/DCIM/100MEDIA/" | |
onlyfiles = [join(mypath, f) for f in listdir(mypath)] | |
onlyfiles = [f for f in onlyfiles if isfile(f)] |
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 'pp' | |
require 'fastlane' | |
require 'snapshot/reset_simulators' | |
# Run the script where you have fastlane installed with `bundle exec ruby clean_up_and_create_sims.rb` | |
def delete_all_iOS_sims | |
FastlaneCore::Simulator.delete_all | |
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
WEEKS = 52 | |
MONTHS = 12 | |
# per year | |
def starter(hours_per_week, days_per_month): | |
base = 49 | |
hourly = 10.65 | |
daily = 87 |
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
// Swift 3 | |
protocol ActionType { } | |
struct InitialAction: ActionType { } | |
class Store<State> { | |
var state: State! | |
typealias Reducer = (State?, ActionType) -> State | |
final let reducer: Reducer |
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
protocol ActionType { } | |
struct InitialAction: ActionType { } | |
class Store<State> { | |
var state: State! | |
typealias Reducer = (State?, ActionType) -> State | |
final let reducer: Reducer | |
init(with reducer: @escaping Reducer) { |
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
#!/bin/sh | |
main() { | |
no_bouncing_dock_icons | |
} | |
no_bouncing_dock_icons() { | |
defaults write com.apple.dock no-bouncing -bool TRUE | |
killall Dock | |
} |
NewerOlder