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
<?php | |
namespace App\Providers; | |
use Illuminate\Support\ServiceProvider; | |
class AppServiceProvider extends ServiceProvider | |
{ | |
/** | |
* Bootstrap any application services. |
<?php | |
namespace App\Exceptions; | |
use Exception; | |
use Illuminate\Auth\AuthenticationException; | |
use Illuminate\Foundation\Exceptions\Handler as ExceptionHandler; | |
use Auth; | |
use Log; | |
class Handler extends ExceptionHandler |
import string | |
import sys | |
inputFile = open(sys.argv[1], 'r'); | |
fileContents = inputFile.read(); | |
fileContents = ','.join(fileContents.split()); | |
print("Converted CSV: \n" + fileContents) | |
outputFile = open((inputFile.name).replace('.', '') + ".csv", 'w') | |
outputFile.write(fileContents) |
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() |
/////////////////////////////////////////////////////////////////////////////// | |
// | |
// 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) { |
pipeline { | |
agent any | |
environment { | |
GIT_NAME = sh returnStdout: true, script: "git --no-pager show -s --format='%an' ${env.GIT_COMMIT}" | |
} | |
stages { | |
stage(build) { | |
steps { |
echo "Today in Computer History:\n" > ~/cowsay.txt; | |
http --body 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; |
#!/bin/bash | |
echo " .----------------. .----------------. .----------------. .----------------. .----------------. "; | |
echo "| .--------------. || .--------------. || .--------------. || .--------------. || .--------------. |"; | |
echo "| | ______ | || | _______ | || | ____ | || | ____ ____ | || | ______ | |"; | |
echo "| | |_ __ \ | || | |_ __ \ | || | .' \`. | || ||_ \ / _|| || | / _ __ \`. | |"; | |
echo "| | | |__) | | || | | |__) | | || | / .--. \ | || | | \/ | | || | |_/____) | | |"; | |
echo "| | | ___/ | || | | __ / | || | | | | | | || | | |\ /| | | || | / ___.' | |"; | |
echo "| | _| |_ | || | _| | \ \_ | || | \ \`--' / | || | _| |_\/_| |_ | || | |_| | |"; | |
echo "| | |_____| | || | |____| |___| | || | \`.____.' | || ||_____||_____|| || | (_) | |"; |
#!/bin/bash | |
echo ""; | |
echo ""; | |
echo "....................../´¯/) "; | |
echo "....................,/¯../ "; | |
echo ".................../..../ "; | |
echo "............./´¯/'...'/¯¯·¸ "; | |
echo "........../'/.../..../......./¨¯\ "; |