Skip to content

Instantly share code, notes, and snippets.

View Toldy's full-sized avatar
⛰️

Julien Colin Toldy

⛰️
  • OpenRunner
  • Grenoble
View GitHub Profile
@Toldy
Toldy / scan_strings.sh
Created October 11, 2016 22:14
Scan a Localizable.string file and find its entries which are not used in the project
#!/bin/bash
# Before launching:
# - Copy the Base.lproj/Localizable.string to the same dir than this file
# - In the project Dir: Remove all strings files (rm -rf *.lproj)
# - Fill PROJECT_DIRECTORY
PROJECT_DIRECTORY=
echo "" > ./Localizable_results.txt
@Toldy
Toldy / DeepLinking.swift
Created October 26, 2016 10:14
Deeplink app to app
let urlScheme = "rogervoice://call?phone_number=0546832706"
if let url = NSURL(string: urlScheme) as? URL, UIApplication.shared.canOpenURL(url) {
if #available(iOS 10, *) {
UIApplication.shared.open(url, options: [:], completionHandler: { (success) in
print("Open \(urlScheme): \(success)")
})
} else {
let success = UIApplication.shared.openURL(url)
## Command line tools (many binaries)
xcode-select --install
## Dock
# Show only opened apps
defaults write com.apple.dock static-only -bool TRUE; killall Dock
# Autohide
defaults write com.apple.dock autohide -bool TRUE; killall Dock
# Autohide speed
defaults write com.apple.dock autohide-time-modifier -float 0.5; killall Dock