Skip to content

Instantly share code, notes, and snippets.

View dustycodes's full-sized avatar

Dusty Argyle dustycodes

View GitHub Profile
from concurrent.futures import ThreadPoolExecutor, as_completed
from tqdm import tqdm
def get_data(
static_param1: int, static_param2: int, dynamic_param: int
):
return static_param1 * static_param2 * dynamic_param
results = []
@dustycodes
dustycodes / install_docker_compose_tx2.sh
Created August 19, 2021 13:30
Install docker-compose on Jetson TX2
sudo apt-get install -y curl python3-pip libffi-dev python-openssl libssl-dev zlib1g-dev gcc g++ make -y
# Install Docker if you don't have it already
# curl -sSL https://get.docker.com/ | sh
sudo snap install rustup --classic
sudo apt install -y rustc
pip3 install setuptools_rust
pip3 install docker-compose
@dustycodes
dustycodes / init.coffee
Created January 4, 2018 16:26
Atom setup for c++ development
# 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 / freenect-launch.bash
Created July 15, 2016 17:30
launch the freenect launch
roslaunch freenect_launch freenect.launch
@dustycodes
dustycodes / ssh.cs
Created March 8, 2017 23:39 — forked from piccaso/ssh.cs
ssh.net Example - Keybased Authentication, File Upload, Shell Commands
/*
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;
# 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'
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 .
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
# 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
@dustycodes
dustycodes / choco-deps-p4dev.ps1
Last active January 18, 2017 21:22
chocolatey installs for Puppet 4 Development Environment With Atom, Windows, r10k
choco install -y ruby
choco install -y ruby.devkit
choco install -y atom
choco install -y git.install