Skip to content

Instantly share code, notes, and snippets.

(?i)((access_key|access_token|admin_pass|admin_user|algolia_admin_key|algolia_api_key|alias_pass|alicloud_access_key|amazon_secret_access_key|amazonaws|ansible_vault_password|aos_key|api_key|api_key_secret|api_key_sid|api_secret|api.googlemaps AIza|apidocs|apikey|apiSecret|app_debug|app_id|app_key|app_log_level|app_secret|appkey|appkeysecret|application_key|appsecret|appspot|auth_token|authorizationToken|authsecret|aws_access|aws_access_key_id|aws_bucket|aws_key|aws_secret|aws_secret_key|aws_token|AWSSecretKey|b2_app_key|bashrc password|bintray_apikey|bintray_gpg_password|bintray_key|bintraykey|bluemix_api_key|bluemix_pass|browserstack_access_key|bucket_password|bucketeer_aws_access_key_id|bucketeer_aws_secret_access_key|built_branch_deploy_key|bx_password|cache_driver|cache_s3_secret_key|cattle_access_key|cattle_secret_key|certificate_password|ci_deploy_password|client_secret|client_zpk_secret_key|clojars_password|cloud_api_key|cloud_watch_aws_access_key|cloudant_password|cloudflare_api_key|cloudflare_auth_k
@mokhosh
mokhosh / laravel-deployment-vps.md
Last active December 29, 2023 20:20
Deploy Laravel to VPS (LEMP, Git, Mail, Redis, SSL, etc.)

A BETTER ALTERNATIVE

Use laravel-sheploy instead. It's more capabale and much eaiser to use.

Sign in and create git user

  • ssh root@IP
  • adduser git
  • usermod -aG sudo git

Set SSH keys

on local machine

@refo
refo / createcertfilesfrompfx.sh
Created August 3, 2018 07:35
Create nginx cert files (pem, key) from pfx
#!/bin/bash
# Source:
# https://gist.github.com/ericharth/8334664
#
# Thanks:
# https://github.com/anderssonjohan
#
# Usage:
# ./createcertfilesfrompfx.sh /path/to/domain.pfx
#
@marianmirzacu
marianmirzacu / laravel
Last active November 24, 2023 13:48
nginx config file for laravel with php7.3
server {
server_name DOMAIN_NAME;
access_log /var/log/nginx/DOMAIN_NAME_access.log;
error_log /var/log/nginx/DOMAIN_NAME_error.log;
rewrite_log on;
root /var/www/DOMAIN_NAME/public;
index index.php index.html;
@WillSquire
WillSquire / freebsd_server_configuration.md
Last active October 22, 2016 07:43
FreeBSD 10.2 server setup

FreeBSD 10.2 server setup

Port or package

Two common options for getting FreeBSD software is to use pkg or ports. Whilst ports may take longer to install software and might also need to have dependancies sourced prior to compiling the port, ports can be configured and optimised for the current system through compiler configuration and version. Pkg on the other had is already compiled so is easier to install. Either can be used, but it is easier to maintain one rather than both, so it might be wise to choose a pattern and stick to it.

User

First show the list of users currently setup on the system to see where your at by entering:

awk -F":" '{print $1}' /etc/passwd
@kevin-smets
kevin-smets / iterm2-solarized.md
Last active July 27, 2024 13:28
iTerm2 + Oh My Zsh + Solarized color scheme + Source Code Pro Powerline + Font Awesome + [Powerlevel10k] - (macOS)

Default

Default

Powerlevel10k

Powerlevel10k