Quick note, be sure to change the sites name test to the name of your app
sudo apt update
sudo apt upgrade
sudo apt install mysql-server
| # -*- mode: ruby -*- | |
| # vi: set ft=ruby : | |
| # All Vagrant configuration is done below. The "2" in Vagrant.configure | |
| # configures the configuration version (we support older styles for | |
| # backwards compatibility). Please don't change it unless you know what | |
| # you're doing. | |
| Vagrant.configure("2") do |config| | |
| # The most common configuration options are documented and commented below. | |
| # For a complete reference, please see the online documentation at |
| import maya.cmds as cmds | |
| import random | |
| import time | |
| # How many cubes to generate | |
| numCubes = 50 | |
| # Clean up after? | |
| cleanUpAfter = False |
| <!DOCTYPE html> | |
| <html lang="en"> | |
| <head> | |
| <meta charset="utf-8"> | |
| <meta http-equiv="X-UA-Compatible" content="IE=edge"> | |
| <meta name="viewport" content="width=device-width, initial-scale=1"> | |
| <title></title> | |
| <!-- Bootstrap --> | |
| <link rel="stylesheet" href="https://cdnjs.cloudflare.com/ajax/libs/twitter-bootstrap/4.3.1/css/bootstrap.min.css" integrity="sha256-YLGeXaapI0/5IgZopewRJcFXomhRMlYYjugPLSyNjTY=" crossorigin="anonymous" /> |
| #!/bin/bash | |
| echo ""; | |
| echo ""; | |
| echo "....................../´¯/) "; | |
| echo "....................,/¯../ "; | |
| echo ".................../..../ "; | |
| echo "............./´¯/'...'/¯¯·¸ "; | |
| echo "........../'/.../..../......./¨¯\ "; |
| #!/bin/bash | |
| echo " .----------------. .----------------. .----------------. .----------------. .----------------. "; | |
| echo "| .--------------. || .--------------. || .--------------. || .--------------. || .--------------. |"; | |
| echo "| | ______ | || | _______ | || | ____ | || | ____ ____ | || | ______ | |"; | |
| echo "| | |_ __ \ | || | |_ __ \ | || | .' \`. | || ||_ \ / _|| || | / _ __ \`. | |"; | |
| echo "| | | |__) | | || | | |__) | | || | / .--. \ | || | | \/ | | || | |_/____) | | |"; | |
| echo "| | | ___/ | || | | __ / | || | | | | | | || | | |\ /| | | || | / ___.' | |"; | |
| echo "| | _| |_ | || | _| | \ \_ | || | \ \`--' / | || | _| |_\/_| |_ | || | |_| | |"; | |
| echo "| | |_____| | || | |____| |___| | || | \`.____.' | || ||_____||_____|| || | (_) | |"; |
| echo "Today in Computer History:\n" > ~/cowsay.txt; | |
| curl -s -k https://www.computerhistory.org/tdih/ | awk -F: '/chm-tdih-entry-title/ {gsub(/^[ \t]+/,"\n",$0); print; exit}' | sed -e 's/<[^>][^>]*>//g' -e '/^ -e *$/d' >> ~/cowsay.txt; | |
| echo https://www.computerhistory.org/tdih/ >> ~/cowsay.txt; |
| pipeline { | |
| agent any | |
| environment { | |
| GIT_NAME = sh returnStdout: true, script: "git --no-pager show -s --format='%an' ${env.GIT_COMMIT}" | |
| } | |
| stages { | |
| stage(build) { | |
| steps { |
| /////////////////////////////////////////////////////////////////////////////// | |
| // | |
| // randomNum takes void arguments and gets its random seed from the current | |
| // uptime of the system | |
| // | |
| /////////////////////////////////////////////////////////////////////////////// | |
| int randomNum(void) { | |
| static uint16_t start_state = 0; | |
| static uint16_t lfsr = 0; | |
| if (lfsr == start_state) { |
| import string | |
| import sys | |
| inputFile = open(sys.argv[1], 'r') | |
| searchCriteria = open(sys.argv[2], 'r') | |
| csvContents = inputFile.read() | |
| searchContents = searchCriteria.read() | |
| csvArray = csvContents.split(',') | |
| searchArray = searchContents.split() |