- Login to
grandcentral
asadmindsalvo
- In a folder, go to
C:\Users
- Click on the user you're trying to migrate (e.g.
gcasebeer
) - Rename the
Desktop
directory toDesktop.old
- Drag
- (
\\dc4\Users$\\Desktop
)
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/bash | |
sudo -s | |
apt-get clean | |
apt-get update | |
apt-get install openssh-server -y | |
passwd kubuntu | |
# enter password: AllVideo123! -- it will ask you to enter it twice. |
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/bash | |
PROJECT="win-lust" | |
ZONE="us-east1-b" | |
gcloud compute --project $PROJECT instances create --zone $ZONE --machine-type "n1-standard-1" --subnet "winlust" --metadata-from-file="startup-script=master_startup.sh" --maintenance-policy "MIGRATE" --image "ubuntu-1604-xenial-v20170125" --image-project "ubuntu-os-cloud" --no-scopes $(seq -s ' ' -f "saltmaster%03g" 3) | |
gcloud compute --project $PROJECT instances create --zone $ZONE --machine-type "f1-micro" --subnet "winlust" --metadata-from-file="startup-script=minion_startup.sh" --maintenance-policy "MIGRATE" --image "ubuntu-1604-xenial-v20170125" --image-project "ubuntu-os-cloud" --no-scopes $(seq -s ' ' -f "saltminion%03g" 20) |
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
https://rubygems.org/downloads/vagrant-berkshelf-4.1.0.gem | |
https://rubygems.org/downloads/vagrant-aws-0.6.0.gem | |
https://rubygems.org/downloads/vagrant-omnibus-1.4.1.gem | |
http://cloud.ja.sonbarnett.com/2P3m4545222l | |
http://cloud.ja.sonbarnett.com/1E3K39143h0j |
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
package hello | |
import ( | |
"fmt" | |
"net/http" | |
"github.com/gorilla/mux" | |
) | |
func init() { |
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
def mad_based_outlier(points, thresh=3.5): | |
if len(points.shape) == 1: | |
points = points[:,None] | |
median = np.median(points, axis=0) | |
diff = np.sum((points - median)**2, axis=-1) | |
diff = np.sqrt(diff) | |
med_abs_deviation = np.median(diff) | |
modified_z_score = 0.6745 * diff / med_abs_deviation |
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
// Use Gists to store code you would like to remember later on | |
console.log(window); // log the "window" object to the console |
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
module HashConverter | |
class << self | |
def to_underscore hash | |
convert hash, :underscore | |
end | |
def to_camel_case hash | |
convert hash, :camelize | |
end | |
def convert obj, *method | |
case obj |
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/bash | |
# Note: Works with bash 4.x and above only # | |
# STOLEN FROM: http://www.cyberciti.biz/tips/unix-linux-bash-shell-script-wrapper-examples.html | |
# curl -I http://cyberciti.biz/ | |
# ping -v -c 2 !!:2 | |
# host -t aaaa !!:4 | |
# host -t mx !!:3 | |
# host -t a ftp://nixcraft.com/ | |
# host -a ftp://nixcraft.com/ | |
# ping 8.8.8.8 |