Skip to content

Instantly share code, notes, and snippets.

@danhively
danhively / _verify-repair-permissions-disk.md
Created August 21, 2016 05:24 — forked from bzerangue/_verify-repair-permissions-disk.md
Mac OS X Utilities via Terminal: (Verify and Repair: Disk Permissions AND Disk / Software Update / TimeMachine)

Verify and Repair Disk Permissions via Terminal (Mac OS X)

Verify Permissions

diskutil verifyPermissions /

Repair Permissions

diskutil repairPermissions /

The current kernel/drivers of Fedora 24 do not support the Wifi chip used on my Mac Book Pro. Proprietary Broadcom drivers are packaged and available in the rpmfusion repo.

Verify that your card is a Broadcom using: lspci -vnn -d 14e4:

Sample output:

02:00.0 Network controller [0280]: Broadcom Corporation BCM4360 802.11ac Wireless Network Adapter [14e4:43a0] (rev 03)

Install

Install the rpmfusion repo: http://rpmfusion.org/

@danhively
danhively / devlaptop
Created June 9, 2016 19:40 — forked from spjeff/devlaptop
Boxstarter install for Windows 10 developer laptop
#BoxStarter http://boxstarter.org/WebLauncher
#CMD start http://boxstarter.org/package/nr/url?https://gist.github.com/spjeff/0ff734e86cbd8182d214
cinst 7zip.install -y
cinst adobereader -y
cinst audacity -y
cinst autohotkey.portable -y
cinst avastfreeantivirus -y
cinst attributechanger -y
cinst AzureStorageExplorer -y
@danhively
danhively / fedora23.sh
Last active December 7, 2015 09:13 — forked from mvoropaiev/fedora.sh
#!/usr/bin/env bash
# update system
sudo dnf check-update --refresh \
&& sudo dnf upgrade
# tlp
sudo dnf install -y\
tlp \
tlp-rdw
@danhively
danhively / fedora-install-nodejs.sh
Last active November 11, 2016 06:44 — forked from trajakovic/fedora-install-nodejs.sh
Install node.js on fedora (23+).(v5.0.0)
#!/usr/bin/env bash
func_check_for_root() {
if [ ! $( id -u ) -eq 0 ]; then
echo "ERROR: $0 Must be run as root, Script terminating" ;exit 7
fi
}
func_check_for_root
#SETUP PARAMS
#!/bin/sh
# Alot of these configs have been taken from the various places
# on the web, most from here
# https://github.com/mathiasbynens/dotfiles/blob/master/.osx
# Set the colours you can use
black='\033[0;30m'
white='\033[0;37m'
red='\033[0;31m'
# Inspiration http://lapwinglabs.com/blog/hacker-guide-to-setting-up-your-mac && http://fredkelly.net/articles/2014/10/19/developing_on_yosemite.html
#Create alias
alias upgrade='sudo softwareupdate --install --all --list'
#Enable repeat on keydown
defaults write -g ApplePressAndHoldEnabled -bool false
#Show Path bar in Finder
defaults write com.apple.finder ShowPathbar -bool true
// these code can simply get wwdc2014 videos and pdfs get it into the download tools
// https://developer.apple.com/videos/wwdc/2014/
// paset it in chrome or safrari
var hds = sds = pdfs = [];
function model_session() {
var tmp = {
title:"",
hd : "",
sd : "",
@danhively
danhively / HD.txt
Last active August 29, 2015 14:08 — forked from tony0x59/HD.txt
http://devstreaming.apple.com/videos/wwdc/2014/403xxksrj0qs8c0/403/403_hd_intermediate_swift.mov
http://devstreaming.apple.com/videos/wwdc/2014/419xxli6f60a6bs/419/419_hd_advanced_graphics_and_animation_performance.mov
http://devstreaming.apple.com/videos/wwdc/2014/101xx36lr6smzjo/101/101_hd.mov
http://devstreaming.apple.com/videos/wwdc/2014/236xxwk3fv82sx2/236/236_hd_building_interruptible_and_responsive_interactions.mov
http://devstreaming.apple.com/videos/wwdc/2014/306xxjtg7uz13v0/306/306_hd_javascript_for_automation.mov
http://devstreaming.apple.com/videos/wwdc/2014/404xxdxsstkaqjb/404/404_hd_advanced_swift.mov
http://devstreaming.apple.com/videos/wwdc/2014/701xx8n8ca3aq4j/701/701_hd_designing_accessories_for_ios_and_os_x.mov
http://devstreaming.apple.com/videos/wwdc/2014/224xxxlsvigdoc0/224/224_hd_core_os_ios_application_architectural_patterns.mov
http://devstreaming.apple.com/videos/wwdc/2014/717xxux5eg6f9v4/717/717_hd_kids_and_apps.mov
http://devstreaming.apple.com/videos/wwdc/2014/716xx8q4shlqcp8/716/
# Inspiration http://lapwinglabs.com/blog/hacker-guide-to-setting-up-your-mac && http://fredkelly.net/articles/2014/10/19/developing_on_yosemite.html
#Create alias
alias upgrade='sudo softwareupdate --install --all --list'
#Enable repeat on keydown
defaults write -g ApplePressAndHoldEnabled -bool false
#Show Path bar in Finder
defaults write com.apple.finder ShowPathbar -bool true