Skip to content

Instantly share code, notes, and snippets.

@ngfw
ngfw / gist:4405c1892d2b96f09a3ebc43285045da
Last active July 28, 2016 21:22
How to be annoying in Terminal
trap '' 2;WW=$(tput cols);HH=$(tput lines); for h in $(seq 1 $HH); do sleep 0.1; for w in $(seq 1 $WW); do printf "\xf0\x9f\x92\xa9 "; sleep 0.1; done; printf "\xF0\x9F\x98\x81 "; done;trap 2;
@ngfw
ngfw / Centos-7-webserver-installation.sh
Last active July 31, 2016 15:54
Installes rsync, vim, nginx, php-fpm mredis, git and php
#!/bin/bash
#
# Cantos 7 quick webserver installation
# Installes rsync, vim, nginx, php-fpm mredis, git and php
# Default Webserver Directory: /home/webserver
# NOTE: script disables SeLinux
#
######## CONFIG ##########
router="index.php"
<?php
$countries = array(
array('name' => 'Afghanistan'),
array('name' => 'Albania'),
array('name' => 'Algeria'),
array('name' => 'American Samoa'),
array('name' => 'Andorra'),
array('name' => 'Angola'),
array('name' => 'Anguilla'),
@ngfw
ngfw / setup_new_tallstack_project.sh
Created August 25, 2024 15:14
This Bash script automates the creation and setup of a new Laravel project, streamlining the initial configuration process. With this script, you can quickly set up a Laravel project with essential packages like Livewire, Filament, Jetstream, and Tailwind CSS. It also handles MySQL database creation and configuration, making it easier to get sta…
#!/bin/bash
# Check if project name is provided as an argument
if [ -z "$1" ]; then
echo "Error: No project name provided."
echo "Usage: ./setup_new_tallstack_project.sh project_name"
exit 1
fi
# Variables