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
#!/bin/sh | |
if [ -n "$1" ]; then | |
variable="$1" | |
elif [ -n "$HELLO_WORLD_VALUE" ]; then | |
variable="$HELLO_WORLD_VALUE" | |
else | |
variable="World" | |
fi |
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
#!/usr/bin/sh | |
if [ -n "$1" ]; then | |
DIST="$1" | |
else | |
DIST="$CPAN_DISTRIBUTION" | |
fi | |
rm -f *.tar.gz | |
rm -rf ./$DIST |
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
#!/bin/sh | |
sudo apt update -y | |
sudo apt install openjdk-11-jre -y | |
curl -fsSL https://pkg.jenkins.io/debian-stable/jenkins.io-2023.key | sudo tee /usr/share/keyrings/jenkins-keyring.asc > /dev/null | |
echo deb [signed-by=/usr/share/keyrings/jenkins-keyring.asc] https://pkg.jenkins.io/debian-stable binary/ | sudo tee /etc/apt/sources.list.d/jenkins.list > /dev/null | |
sudo apt update -y |
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
#!/bin/sh | |
# prevent interactive prompts | |
sudo sed -i "/#\$nrconf{restart} = 'i';/s/.*/\$nrconf{restart} = 'a';/" \ | |
/etc/needrestart/needrestart.conf | |
cat /etc/needrestart/needrestart.conf | grep -i nrconf{restart} | |
sudo apt-get update && sudo apt-get install -y gnupg software-properties-common | |
wget -O- https://apt.releases.hashicorp.com/gpg | gpg --dearmor | sudo tee /usr/share/keyrings/hashicorp-archive-keyring.gpg > /dev/null |
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
#!/bin/sh | |
# prevent interactive prompts | |
sudo sed -i "/#\$nrconf{restart} = 'i';/s/.*/\$nrconf{restart} = 'a';/" \ | |
/etc/needrestart/needrestart.conf | |
cat /etc/needrestart/needrestart.conf | grep -i nrconf{restart} | |
# Add Docker's official GPG key: | |
sudo apt-get update | |
sudo apt-get install ca-certificates curl |
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
#!/usr/bin/env perl | |
use strict; | |
use warnings; | |
use Data::Dumper; | |
use MIDI; | |
use Text::Morse; | |
use Pod::Usage; | |
use Getopt::Long; |
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 sed -i "/#\$nrconf{restart} = 'i';/s/.*/\$nrconf{restart} = 'a';/" /etc/needrestart/needrestart.conf | |
sudo apt-get update -y | |
sudo apt-get install gcc -y | |
sudo apt-get install make -y | |
sudo apt-get install zip -y | |
sudo apt-get install docker.io -y | |
sudo apt-get install tree -y | |
sudo usermod -aG docker ubuntu | |
newgrp docker |
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
wget https://github.com/jeffa/Sandbox-Spreadsheet/archive/refs/heads/master.zip | |
wget https://gist.githubusercontent.com/jeffa/78148e4197186b562e2985d620548ea1/raw/a001493ee921b14c23da8986ba075d7621b6e643/Dockerfile | |
unzip master.zip | |
mv Dockerfile Sandbox-Spreadsheet-master/ | |
cd Sandbox-Spreadsheet-master/ | |
docker pull perl:5.38 | |
docker tag perl:5.38 myorg/perl:5.38 | |
docker build -t myorg/myapp:dev . | |
docker run -d -p 80:3000 --name sandbox myorg/myapp:dev |
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
# docker build -t myorg/myapp:dev . | |
FROM myorg/perl:5.38 | |
ADD . /app | |
WORKDIR /app | |
RUN cpanm --notest \ | |
JSON Spreadsheet::Read HTML::TableExtract Imager::File::PNG \ | |
Spreadsheet::ParseExcel Spreadsheet::Engine DBD::CSV Data::SpreadPagination \ | |
YAML Dancer Template Text::CSV Spreadsheet::ParseXLSX \ | |
DBIx::HTML Games::Sudoku::Component Text::FIGlet JavaScript::Minifier Encode::Wechsler | |
EXPOSE 3000 |
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 sed -i "/#\$nrconf{restart} = 'i';/s/.*/\$nrconf{restart} = 'a';/" /etc/needrestart/needrestart.conf | |
sudo apt-get update -y | |
sudo apt-get install gcc -y | |
sudo apt-get install make -y | |
sudo apt-get install zip -y | |
sudo apt-get install docker.io -y | |
sudo apt-get install tree -y | |
#sudo adduser ubuntu docker | |
sudo usermod -aG docker ubuntu | |
newgrp docker |
NewerOlder