- Step 1: Navigate to Proxy settings.
- Step 2: Select "Manual proxy settings - HTTP".
- Hostname: localhost
- Port: 80
Set no proxy for:
#!/bin/sh | |
### | |
# SOME COMMANDS WILL NOT WORK ON macOS (Sierra or newer) | |
# For Sierra or newer, see https://github.com/mathiasbynens/dotfiles/blob/master/.macos | |
### | |
# Alot of these configs have been taken from the various places | |
# on the web, most from here | |
# https://github.com/mathiasbynens/dotfiles/blob/5b3c8418ed42d93af2e647dc9d122f25cc034871/.osx |
@font-face { | |
font-family: 'EntypoRegular'; | |
src: url('font/entypo.eot'); | |
src: url('font/entypo.eot?#iefix') format('embedded-opentype'), | |
url('font/entypo.woff') format('woff'), | |
url('font/entypo.ttf') format('truetype'), | |
url('font/entypo.svg#EntypoRegular') format('svg'); | |
font-weight: normal; | |
font-style: normal; | |
} |
sudo find /private/var/folders/ -name com.apple.dock.iconcache -exec rm {} \; |
#!/bin/bash | |
osascript -e "tell application \"Address Book\"" \ | |
-e " set firstParam to \"$1\"" \ | |
-e " set secondParam to \"$2\"" \ | |
-e " set thirdParam to \"$3\"" \ | |
-e " set fourthParam to \"$4\"" \ | |
-e " set contactEmailLabel to \"\"" \ | |
-e " set spaceOffset to (offset of \" \" in firstParam)" \ | |
-e " if (spaceOffset is not equal to 0) then" \ | |
-e " set AppleScript's text item delimiters to \" \"" \ |
tell application "Notes" | |
set note_body_list to (get body of every note) | |
end tell | |
set note_count to (count of note_body_list) | |
set blah_folder to choose folder | |
set blah_path to POSIX path of blah_folder | |
repeat with i from 1 to note_count | |
set filename_string to ((blah_path & "note" & (i as string) & ".html") as text) |
func testReservationListPositions() { | |
let moc = CoreDataStack.sharedStack().mainObjectContext | |
let reservationListVC = ReservationListViewController() | |
do { | |
let reservation1 = try ReservationFactory.generateWithTemplate(ReservationFactory.Template(), parentContext: moc) | |
} catch { | |
print(error) | |
} | |
let cache = new Map(); | |
let pending = new Map(); | |
function fetchTextSync(url) { | |
if (cache.has(url)) { | |
return cache.get(url); | |
} | |
if (pending.has(url)) { | |
throw pending.get(url); | |
} |