Verify Permissions
diskutil verifyPermissions /
Repair Permissions
diskutil repairPermissions /
Disabling the feature If you prefer to not allow guest access to your computer, you can disable the Guest Session feature. To do so, press Ctrl+Alt+T to open a terminal window, and then run this command:
sudo sh -c 'printf "[Seat:*]\nallow-guest=false\n" >/etc/lightdm/lightdm.conf.d/50-no-guest.conf'
The command creates a small configuration file. To re-enable Guest Session, simply remove that file:
Name | Arch | Ubuntu |
---|---|---|
Package Manager | Pacman | Apt-Get |
Command to Refresh and Upgrade | pacman -Syy | apt-get update |
Command to Refresh and Upgrade | pacman -Syu | apt-get update && apt-get dist-upgrade |
Command to install wget | pacman -S wget | apt-get install wget |
Command to install sublime-text | pacaur -S sublime-text | sudo add-apt-repository ppa:webupd8team/sublime-text-3 && sudo apt-get update && sudo apt-get install sublime-text-installer |
import Foundation | |
extension Data { | |
var prettyPrintedJSONString: NSString? { /// NSString gives us a nice sanitized debugDescription | |
guard let object = try? JSONSerialization.jsonObject(with: self, options: []), | |
let data = try? JSONSerialization.data(withJSONObject: object, options: [.prettyPrinted]), | |
let prettyPrintedString = NSString(data: data, encoding: String.Encoding.utf8.rawValue) else { return nil } | |
return prettyPrintedString | |
} |
class HelloWorld: | |
def __init__(self, name): | |
self.name = name.capitalize() | |
def sayHi(self): | |
print "Hello man " + self.name + "!" | |
hello = HelloWorld("world") | |
hello.sayHi() |
// How to use CoreLocation to get your location Speed, Floor, timestamp, Course Direction, Altitude above sea level | |
//TODO: Step 1 #################################################################### | |
// First of all import "CoreLocation" | |
import CoreLocation | |
//TODO: Step 2 #################################################################### |