Skip to content

Instantly share code, notes, and snippets.

View notverypc's full-sized avatar
🍰
Cake or Death?

notverypc notverypc

🍰
Cake or Death?
View GitHub Profile
@notverypc
notverypc / InstaUpdate
Created June 3, 2013 08:50
InstaDMG Update command
[~]: cd ~/InstaDMG/
[~/InstaDMG]: svn update
At revision 453.
@notverypc
notverypc / Temporareyms
Created July 17, 2013 10:01
Enable TextEdit & Preview with Network accounts.
cd /path/to/Users
sudo mkdir .TemporaryItems
chgrp staff .TemporaryItems
chmod 1770 .TemporaryItems
@notverypc
notverypc / Disknames
Created July 26, 2013 13:14
Get the name etc of connected drives to Raspberry Pi
sudo blkid
@notverypc
notverypc / ignorefile
Created September 7, 2013 09:03
List folder contents but ignore a file
# Replace Icon with the name of the file you wish to ignore
ls | grep -v 'Icon'
@notverypc
notverypc / ResetPrinter
Created September 30, 2013 14:10
Reset Printers.. Command sent via ARD
killall "PrinterProxy" "Printer Setup Utility" "cupsd" 2>/dev/null
sleep 1
rm -rf /etc/cups/printers.conf* \
/etc/cups/ppds.dat \
/etc/cups/ppds/* 2>/dev/null
@notverypc
notverypc / CancelPrint
Created October 2, 2013 08:41
Cancel/Delete all print jobs. This is an AppleScript App that can delete all print jobs. Useful for network account etc.. Save as a "Run-Only" app to hide the password
display dialog "Are you sure you want to cancel ALL of the print jobs in the print queue?" buttons {"Yes", "No"} default button 2 with title "Cancel Print Jobs" with icon alias ((path to startup disk) & ¬
"Library:Scripts:NCS:PrinterScripts:PrintFaxPref.icns" as string)
if button returned of result = "Yes" then
set AdminUser to "YOUR ADMIN ACCOUNT"
set AdminPass to "ADMIN PASSWORD"
do shell script "cancel -a -" user name AdminUser password AdminPass with administrator privileges
display dialog "All jobs have been cancelled" buttons ["OK"] default button 1 with title "Cancel Print Jobs" with icon alias ((path to startup disk) & ¬
@notverypc
notverypc / Proxy
Created October 16, 2013 14:12
Setting Proxy via ARD
networksetup -setproxyautodiscovery "Wi-Fi" on
networksetup -setproxyautodiscovery "Ethernet" on
@notverypc
notverypc / debug
Created October 22, 2013 14:31
Debug Menu on AppStore
defaults write com.apple.appstore ShowDebugMenu -bool true
@notverypc
notverypc / Mavericks
Created October 26, 2013 20:14
Creating a Mavericks USB installer
sudo /Applications/Install\ OS\ X\ Mavericks.app/Contents/Resources/createinstallmedia --volume /Volumes/Untitled --applicationpath /Applications/Install\ OS\ X\ Mavericks.app --nointeraction
@notverypc
notverypc / HideAppStore
Created October 29, 2013 16:14
Hide & Un-Hide App Store
/bin/chmod 754 "/Applications/App Store.app"
/usr/bin/chflags hidden "/Applications/App Store.app"
/bin/chmod 755 "/Applications/App Store.app"
/usr/bin/chflags nohidden "/Applications/App Store.app"