Skip to content

Instantly share code, notes, and snippets.

Avatar

Dusty Argyle dustycodes

  • Sarcos Corp
  • Salt Lake City, Utah
View GitHub Profile
@dustycodes
dustycodes / init.coffee
Created Jan 4, 2018
Atom setup for c++ development
View init.coffee
# Your init script
#
# Atom will evaluate this file each time a new window is opened. It is run
# after packages are loaded/activated and after the previous editor state
# has been restored.
#
# An example hack to log to the console when each text editor is saved.
#
# atom.workspace.observeTextEditors (editor) ->
# editor.onDidSave ->
@dustycodes
dustycodes / ssh.cs
Created Mar 8, 2017 — forked from piccaso/ssh.cs
ssh.net Example - Keybased Authentication, File Upload, Shell Commands
View ssh.cs
/*
get SSH.NET (BSD License: http://sshnet.codeplex.com/license)
with NuGet:
>Install-Package SSH.NET -Version 2013.4.7
or just get the dll from here: http://j.mp/sshNet
*/
using System;
View r10k-example.yaml
# The location to use for storing cached Git repos
:cachedir: 'C:/tools/ruby23/lib/ruby/gems/2.3.0/gems/r10k-2.5.1/cache'
# A list of git repositories to create
:sources:
# This will clone the git repository and instantiate an environment per
# branch in /etc/puppetlabs/code/environments
:DUSTYCODES:
remote: 'ssh://git@myserver.example.com/dustycodes/puppet-r10k.git'
basedir: 'C:/Users/u0770958/Documents/Repositories/puppet/environment'
View atom-puppet-packages.sh
apm install script
apm install atom-alignment
apm install language-puppet
apm install language-yaml
apm install linter
apm install linter-puppet-lint
apm install linter-js-yaml
apm install language-ruby
# Favorite theme
apm install atom-material-syntax-dark
View windows-puppet-environment-setup.sh
mkdir -p ~/Documents/Repositories/puppet/{environment,manifests,modules,ssh-keys}
mkdir -p C:/tools/ruby23/lib/ruby/gems/2.3.0/gems/r10k-2.5.1/cache # For r10k caching
cd ~/Documents/Repositories/puppet
touch hiera.yaml
touch r10k.yaml
touch runner.sh
touch ssh-keys/id_rsa
atom .
View windows-r10k-gems-ssl-remedy.sh
# Fix gems
cd /c
curl -O https://rubygems.org/downloads/rubygems-update-2.6.7.gem
gem install --local C:\rubygems-update-2.6.7.gem
update_rubygems --no-ri --no-rdoc
gem uninstall rubygems-update -x
# Fix r10k SSL error
echo "export SSL_CERT_FILE=/mingw64/ssl/certs/ca-bundle.crt" >> ~/.bash_profile
source ~/.bash_profile
View gem-deps-p4dev.ps1
gem install puppet
gem install r10k
gem install hiera
@dustycodes
dustycodes / choco-deps-p4dev.ps1
Last active Jan 18, 2017
chocolatey installs for Puppet 4 Development Environment With Atom, Windows, r10k
View choco-deps-p4dev.ps1
choco install -y ruby
choco install -y ruby.devkit
choco install -y atom
choco install -y git.install
View rosmaster.bash
$MASTER_IP='YOURIP' # or hostname
export ROS_MASTER="http://${MASTER_IP}:11311/"
# and/or save it
echo "export ROS_MASTER=http://${MASTER_IP}:11311/" >> ~/.bashrc
You can’t perform that action at this time.