Skip to content

Instantly share code, notes, and snippets.

View jmwamser's full-sized avatar

Jordan Wamser jmwamser

  • RedPanda Coding
  • Salina, KS United States
View GitHub Profile
#!/bin/bash
# Create directory structure
mkdir -p results
# Create the stress test script
cat > stress-test.js << 'EOL'
const puppeteer = require('puppeteer');
const fs = require('fs');
const path = require('path');
#!/usr/bin/env bash
echo "Starting installation for Ubuntu 24.04 x86_64..."
# Update package lists
sudo apt-get update
# Install essential build tools
sudo apt-get install -y \
build-essential \
@jmwamser
jmwamser / Fresh macOS Setup.md
Created March 9, 2024 13:57 — forked from ashfurrow/Fresh macOS Setup.md
All the stuff I do on a fresh macOS Installation

Apps to install from macOS App Store:

  • Pastebot
  • GIF Brewery
  • Slack
  • Keynote/Pages/Numbers
  • 1Password
  • OmniFocus 3
  • Airmail 3
  • iA Writer
@jmwamser
jmwamser / script.sh
Created January 30, 2024 13:06 — forked from charlesastwood/script.sh
Install Symfony on AWS
sudo yum update
sudo yum install httpd24 php70 php70-cli php70-intl php70-gd php70-zip php70-xml php70-mysqlnd php70-mbstring php70-dom php70-soap php70-memcached memcached php70-fpm php70-opcache php70-mcrypt git
sudo service httpd start
sudo chkconfig httpd on
sudo groupadd www
sudo usermod -a -G www ec2-user
exit
sudo chown -R root:www /var/www
sudo chmod 2775 /var/www
@jmwamser
jmwamser / longhorn_browser_testing.md
Created November 9, 2023 14:35 — forked from sketchings/browser_testing.md
Longhorn Browser Testing

Longhorn Browser Testing: Outline

Prerequisite

  • Have PHP (preferably a supported version which is 8+) installed on your machine (or in a container if you prefer). To check which version is installed, open a terminal or command line and enter
    • php -v
  • For installation instructions, visit
  • Have PHP Dependency Manager Composer installed:

Installing Brew

$ /usr/bin/ruby -e "$(curl -fsSL https://raw.githubusercontent.com/Homebrew/install/master/install)"

Installing MSSQL Tools

brew tap microsoft/mssql-release https://github.com/Microsoft/homebrew-mssql-release
#!/usr/bin/php
<?php
declare(strict_types = 1);
// require_once ('hhb_.inc.php');
hhb_init ();
if ($argc !== 3) {
fprintf ( STDERR, "usage: %s timestamp url\n", $argv [0] );
fprintf ( STDERR, "example: %s 20091012061648 http://www.p4w.se\n", $argv [0] );
die ( 1 );
}
@jmwamser
jmwamser / ProvinceState Arrays
Created October 8, 2018 12:46 — forked from james2doyle/ProvinceState Arrays
PHP array for states and Provinces in Canada and the US
$provinces = array(0 => 'Alberta',
1 => 'British Columbia',
2 => 'Manitoba',
3 => 'New Brunswick',
4 => 'Newfoundland and Labrador',
5 => 'Northwest Territories',
6 => 'Nova Scotia',
7 => 'Nunavut',
8 => 'Ontario',
9 => 'Prince Edward Island',
@jmwamser
jmwamser / .htaccess
Created September 10, 2018 18:18 — forked from Guibzs/.htaccess
Symfony 4 .htaccess
<IfModule mod_rewrite.c>
Options -MultiViews
RewriteEngine On
RewriteCond %{REQUEST_FILENAME} !-f
RewriteRule ^(.*)$ index.php [QSA,L]
</IfModule>
<IfModule !mod_rewrite.c>
<IfModule mod_alias.c>
RedirectMatch 302 ^/$ /index.php/
curl --silent --location https://rpm.nodesource.com/setup_8.x | sudo bash -
sudo yum -y install nodejs