This file contains 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
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 = [] |
This file contains 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
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 |
This file contains 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
# 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 -> |
This file contains 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
/* | |
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; |
This file contains 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
# 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' |
This file contains 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
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 |
This file contains 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
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 . |
This file contains 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
# 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 |
This file contains 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
gem install puppet | |
gem install r10k | |
gem install hiera |
This file contains 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
choco install -y ruby | |
choco install -y ruby.devkit | |
choco install -y atom | |
choco install -y git.install |
NewerOlder