- Call 1-800-829-1040
- Press 1 for English (or other language as desired)
- Press 2 for personal tax
- Press 1 for form / tax history
- Press 3 for other
- Press 2 for other
- Ignore 2 SSN prompts till you get secret other menu
- Press 2 for personal tax
- Press 3 for other
- Wait for agent!
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
# If you want to restart all k8s deployments by label (e.g. where appname=foo, team=bar, and environ=baz), you can | |
kubectl get deployments --selector=appname=foo,team=bar,environ=baz | tail -n +2 | cut -d ' ' -f 1 | xargs kubectl rollout restart deployment |
Want the Subject field (for bold iMessages) in macOS’ Messages app?
- Quit Messages
- Open Terminal
- Run
defaults write com.apple.MobileSMS MMSShowSubject 1
- Start Messages
This worked for me on a fresh install of macOS 14.1.1 (23B81) (new Mac mini).
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/bash | |
for file in ./*.svg | |
do | |
rsvg-convert -h 150 "${file}" > "${file%.svg}"@3x.png | |
rsvg-convert -h 100 "${file}" > "${file%.svg}"@2x.png | |
rsvg-convert -h 50 "${file}" > "${file%.svg}".png | |
done |
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
//: # Feature Flag example | |
//: ## Implementation | |
import Foundation | |
enum Feature: String { | |
case Login, AdminTool | |
var key: String { |
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
//: Playground - noun: a place where people can play | |
import Foundation | |
// this is either a third party SDK interface or your own analytics client implementation | |
// that actually sends JSON across the wire to deliver tracked analytics events | |
protocol AnalyticsClient { | |
func sendAnalyticsDataToTheBackend(_ eventJSON: [String: Any]) | |
} |
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
platform :ios, '9.3' | |
target 'target-name' do | |
use_frameworks! | |
pod 'AFNetworking', '~> 2' | |
pod 'RSBarcodes_Swift', :git => 'https://github.com/yeahdongcn/RSBarcodes_Swift', :branch => 'master' | |
swift3 = [] | |
swift4 = ['RSBarcodes_Swift'] # if these pods are in Swift 4 | |
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
// The correct numbers | |
let expectedSequence = [1, 1, 2, 3, 5, 8, 13, 21, 34] | |
// Iterative | |
func digit(index: Int) -> Int { | |
var digits = [1, 1] | |
for i in (2...index) { |
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
import Foundation | |
extension Character { | |
var invalid: Bool { | |
let invalid = Set(" -&+$,/:;=?@\"#{}|^~[]`\\*()%.!'".characters) | |
return invalid.contains(self) | |
} | |
var isAscii: Bool { | |
guard let number = String(self).utf16.first else { return false } |
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
extension String { | |
func split(string: String) -> [String] { | |
guard !string.characters.isEmpty else { return [string] } | |
var strings: [String] = [] | |
let targetDistance = string.characters.startIndex.distanceTo(string.characters.endIndex) | |
var currentIndex = self.startIndex | |
var currentView = String.CharacterView() |
NewerOlder