Kind of continue from the other gist how to install LAMP on an Amazon AMI
##Install git
sudo yum install git-core
##Create ssh directory since it doesn't exists by default on the Amazon AMI
| /* Copied, Pasted and summarized from ps' source code. | |
| You can use sysctl to get other process' argv. | |
| */ | |
| #include <sys/sysctl.h> | |
| #include <stdio.h> | |
| #include <stdlib.h> | |
| #include <string.h> | |
| #define pid_of(pproc) pproc->kp_proc.p_pid |
Kind of continue from the other gist how to install LAMP on an Amazon AMI
##Install git
sudo yum install git-core
##Create ssh directory since it doesn't exists by default on the Amazon AMI
This gist assumes:
| #!/bin/sh | |
| # | |
| # Originally part of vpnc source code: | |
| # © 2005-2012 Maurice Massar, Jörg Mayer, Antonio Borneo et al. | |
| # © 2009-2012 David Woodhouse <dwmw2@infradead.org> | |
| # | |
| # This program is free software; you can redistribute it and/or modify | |
| # it under the terms of the GNU General Public License as published by | |
| # the Free Software Foundation; either version 2 of the License, or | |
| # (at your option) any later version. |
sw_vers — Print Mac OS X operating system version informationsystem_profiler — Reports system hardware and software configuration.system_profiler SPHardwareDataType — Hardware overview.hostinfo — Host information.nvram -p — Print all of the firmware variables.getconf DARWIN_USER_CACHE_DIR — Retrieve standard configuration variables/usr/libexec/path_helper — Helper for constructing PATH environment variable| NSLog(@"Starting"); | |
| AudioDeviceID defaultDevice = 0; | |
| UInt32 defaultSize = sizeof(AudioDeviceID); | |
| const AudioObjectPropertyAddress defaultAddr = { | |
| kAudioHardwarePropertyDefaultOutputDevice, | |
| kAudioObjectPropertyScopeGlobal, | |
| kAudioObjectPropertyElementMaster | |
| }; | |
sudo -i and type in your Mac Administrator account password. sudo gives you root level or administrator level privileges.dsconfigad -show
| # $OpenBSD: pf.conf,v 1.52 2013/02/13 23:11:14 halex Exp $ | |
| # | |
| # See pf.conf(5) for syntax and examples. | |
| # | |
| # Remember to set net.inet.ip.forwarding=1 and/or net.inet6.ip6.forwarding=1 | |
| # in /etc/sysctl.conf if packets are to be forwarded between interfaces. | |
| ### Macros | |
| # system |
| Automatically check for updates: | |
| Enable: sudo defaults write /Library/Preferences/com.apple.SoftwareUpdate AutomaticCheckEnabled -bool TRUE | |
| Disable: sudo defaults write /Library/Preferences/com.apple.SoftwareUpdate AutomaticCheckEnabled -bool FALSE | |
| Download newly available updates in the background: | |
| Enable: sudo defaults write /Library/Preferences/com.apple.SoftwareUpdate AutomaticDownload -bool TRUE | |
| Disable: sudo defaults write /Library/Preferences/com.apple.SoftwareUpdate AutomaticDownload -bool FALSE |
| 'use strict'; | |
| /** | |
| * Created by Alexander Litvinov | |
| * Email: alexander@codeordie.ru | |
| * May be freely distributed under the MIT license | |
| */ | |
| let singleton = Symbol(); | |
| let singletonEnforcer = Symbol(); |