This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
-p 3478:3478/udp \ | |
-p 10001:10001/udp \ | |
-p 8080:8080 \ | |
-p 8081:8081 \ | |
-p 8443:8443 \ | |
-p 8843:8843 \ | |
-p 8880:8880 \ | |
-p 6789:6789 \ | |
aws ec2 create-security-group --description "my security group" --group-name "my-security-group" |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/sh | |
echo "Please enter your desired hostname NO SPACES ALLOWED, use dash" | |
read HWNAME | |
scutil --set ComputerName "$HWNAME" | |
scutil --set LocalHostName "$HWNAME" | |
dscacheutil -flushcache |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/usr/bin/env python | |
import urllib2 | |
import os | |
import subprocess | |
#download all the things 1/2 | |
filedata = urllib2.urlopen('https://raw.githubusercontent.com/homebysix/docklib/master/docklib.py') | |
datatowrite = filedata.read() | |
with open('./docklib.py', 'wb') as f: |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/usr/bin/env python | |
from docklib import Dock | |
from system import os | |
def makeDock(): | |
tech_dock = [ | |
'/Applications/Google Chrome.app', | |
'/Applications/Microsoft Excel.app', | |
'/Applications/Microsoft Word.app', | |
'/Applications/Microsoft PowerPoint.app', |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
SERVER="1.2.3.4." | |
#client side-set them | |
sudo defaults write /Library/Preferences/ManagedInstalls SoftwareRepoURL "http://$SERVER/munki_repo" | |
sudo defaults write /Library/Preferences/ManagedInstalls ClientIdentifier "basic_manifest" | |
sudo defaults write /Library/Preferences/ManagedInstalls InstallAppleSoftwareUpdates -bool TRUE | |
#client side-check them | |
sudo defaults read /Library/Preferences/ManagedInstalls SoftwareRepoURL | |
sudo defaults read /Library/Preferences/ManagedInstalls ClientIdentifier |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# includes eraseDock function in case you mess up | |
import os | |
from docklib import Dock | |
def makeDock(): | |
tech_dock = [ | |
'/Applications/Google Chrome.app', | |
'/Applications/Microsoft Excel.app', | |
'/Applications/Microsoft Word.app', | |
'/Applications/Microsoft PowerPoint.app', |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/sh | |
#echo "run as root" | |
sudo pacman-key --init | |
sudo pacman-key --populate archlinux | |
sudo pacman-key --refresh-keys | |
sudo useradd -m archie | |
passwd archie | |
#lets update |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/usr/bin/env python | |
#requires docklib.py | |
import os | |
from docklib import Dock | |
tech_dock = [ | |
'/Applications/Google Chrome.app', | |
'/Applications/Microsoft Excel.app', | |
'/Applications/Microsoft Word.app', | |
'/Applications/Microsoft PowerPoint.app', | |
'/Applications/Slack.app' |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
detect = '#+BEGIN_SRC emacs-lisp :exports code' | |
detectend = '#+END_SRC' | |
infile = 'c:/Users/netkam/OneDrive - Peralta Community College District/org/1812.org' | |
outfile = open('C:/Users/netkam/AppData/Roaming/.emacs', 'w') | |
with open(infile) as input_data: | |
# Skips text before the beginning of the interesting block: | |
for line in input_data: | |
if line.strip() == detect: # Or whatever test is needed | |
break |