zsh -c "$(curl -fsSL https://raw.githubusercontent.com/NicholasTD07/dotfiles/install-script/install.zsh)"
For faster connection speed and more flexibility.
- Start Xcode in command line by running this in commandline
/Applications/Xcode.app/Contents/MacOS/Xcode
- Start downloading of the simulator
- Cancel it. YES CANCEL IT!
- You will get a message like this:
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
" For Vundle, uncomment next line | |
" Plugin 'Lokaltog/vim-easymotion' | |
" easymotion | |
let g:EasyMotion_smartcase = 1 " turn on case insensitive feature | |
let g:EasyMotion_do_mapping = 0 " disable default mappings | |
let g:EasyMotion_use_smartsign_us = 1 " 1 will match 1 and ! | |
let g:EasyMotion_use_upper = 1 | |
let g:EasyMotion_keys = 'ABCDEFGHIJKLMNOPQRSTUVWXYZ;' |
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/env xcrun swift | |
// Usage: path/to/TimeTracking.swift | |
// Go to bottom to see how it's used. | |
// The MIT License (MIT) | |
// Copyright (c) 2015 Nicholas T. | |
// Permission is hereby granted, free of charge, to any person obtaining a copy |
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
# Using this script downloads ALL the videos in NSScreencast. | |
# Use it wisely, it's extra load/bandwidth for the NSScreencast website. | |
# Usage: `EMAIL=your email PASSWORD=your password END=how many videos should be downloaded? ruby download-nsscreencast.rb` | |
require "mechanize" | |
require "parallel" | |
mechanize = Mechanize.new | |
mechanize.post("https://www.nsscreencast.com/user_sessions", {"email" => ENV["EMAIL"], "password" => ENV["PASSWORD"]}) | |
mechanize.pluggable_parser.default = Mechanize::Download |
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 | |
# "Delete all unavailable devices." | |
xcrun simctl delete unavailable |
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 | |
# I was having ghost devices in my iOS Simulator. | |
# There were multiple device for one device type, one OS. | |
# For example, there were at least 4-5 devices for iPhone 6, OS 8.4 | |
# USE IT AT YOUR OWN RISK | |
devices=(`xcrun simctl list devices | grep -v '^[-=]' | cut -d "(" -f2 | cut -d ")" -f1`) | |
for device in $devices; do |
NewerOlder