Skip to content

Instantly share code, notes, and snippets.

View streeetlamp's full-sized avatar
🐶
breaking things

streetlamp streeetlamp

🐶
breaking things
View GitHub Profile
@BenSampo
BenSampo / deploy.sh
Last active May 11, 2025 06:59
Laravel deploy script
# Change to the project directory
cd $FORGE_SITE_PATH
# Turn on maintenance mode
php artisan down || true
# Pull the latest changes from the git repository
# git reset --hard
# git clean -df
git pull origin $FORGE_SITE_BRANCH
@Prezens
Prezens / gist:f99fd28124b5557eb16816229391afee
Created April 2, 2019 07:40
Apache .htaccess settings for Vue, vue-router
<IfModule mod_rewrite.c>
RewriteEngine On
RewriteBase /
RewriteRule ^index\.html$ - [L]
RewriteCond %{REQUEST_FILENAME} !-f
RewriteCond %{REQUEST_FILENAME} !-d
RewriteRule . /index.html [L]
</IfModule>
https://router.vuejs.org/guide/essentials/history-mode.html#example-server-configurations
@woodwardtw
woodwardtw / fac-check.php
Created April 23, 2020 14:02
check on faculty-ish status
//write to user profile if user is faculty
function user_status ($user){
//attempt to differentiate between new user ID and edit profile user object
if (is_numeric($user)){
$user_id = $user;
$user_info = get_userdata($user_id);
$email = $user_info->user_email;
} else {
@eyeseast
eyeseast / python.md
Last active April 28, 2025 13:00
How to set up Python in 2022

I have an updated version of this on my blog here: https://chrisamico.com/blog/2023-01-14/python-setup/.

Python

This is my recommended Python setup, as of Fall 2022. The Python landscape can be a confusing mess of overlapping tools that sometimes don't work well together. This is an effort to standardize our approach and environments.

Tools and helpful links:

  • Python docs: https://docs.python.org/3/
  • Python Standard Library:  - Start here when you're trying to solve a specific problem