Skip to content

Instantly share code, notes, and snippets.

View rjsworking's full-sized avatar

rjsworking rjsworking

View GitHub Profile
var ruinbase = 'Wydob3cgdG8gYXBwZWFyIGZ1bm55JywgJ3doeSBhcmUgbXkgdGh1bWJzIHVuZXZlbicsICdhbSBpIGxhY2sgdG9hc3QgYW5kIHRvbGVyYW50JywgJ3lvdXIgeW91cmUgZGlmZmVyZW5jZScsICd3aHkgZG9lc250IG15IHBvbyBmbG9hdCcsICdtaWRnZXQgZ29vZ2xlIGltYWdlcycsICd0YWxsIG1pZGdldHM/PycsICdob21lbWFkZSBsdWJlPycsICdpIGhhdGUgbXkgYm9zcycsICd3aGF0IGNvdW50cyBhcyBmYXQnLCAnaG93IHRvIHRlbGwgcGFydG5lciB0aGV5IGZhdCcsICdpcyBpdCBub3JtYWwgdG8gc3RpbGwgbG92ZSBteSBleCcsICdob3cgdG8gZ2V0IGJhY2sgd2l0aCBleCcsICdwZW5pcyByZW1vdmUgZG9nIGhvdyB0bycsICdyb21hbnRpYyB3YXlzIHRvIHByb3Bvc2UnLCAnZW5nYWdlbWVudCByaW5ncycsICdzZXggc2hvcCBpbiBteSBjaXR5JywgJ2hvdyB0byB0ZWxsIGlmIHBhcnRuZXIgY2hlYXRpbmcnLCAnd2F5cyB0byBraWxsIHNvbWVvbmUgaHlwb3RoZXRpY2FsbHknLCAndW5kZXRlY3RhYmxlIHBvaXNvbnMnLCAnaG93IHRvIGRlbGV0ZSBzZWFyY2ggaGlzdG9yeSBpbiBicm93c2VyJywgJ2FzaGxleSBtYWRpc29uIGhhY2snLCAndmlldyBhc2hsZXkgbWFkaXNvbiBsaXN0JywgJ2FzaGxleSBtYWRpc29uIGxpc3QgbXkgY2l0eScsICdwYXRlcm5pdHkgdGVzdCcsICdtYWlsIG9yZGVyIHBhdGVybml0eSB0ZXN0JywgJ2F0dHJhY3RlZCB0byBtb3RoZXIgd2h5JywgJ2lzIGluY2VzdCBpbGxlZ2FsIGluIHRoaXMgY291
@rjsworking
rjsworking / supervisord.sh
Created March 14, 2021 16:20 — forked from danmackinlay/supervisord.sh
an init.d script for supervisord
#! /bin/sh
### BEGIN INIT INFO
# Provides: supervisord
# Required-Start: $remote_fs
# Required-Stop: $remote_fs
# Default-Start: 2 3 4 5
# Default-Stop: 0 1 6
# Short-Description: Example initscript
# Description: This file should be used to construct scripts to be
# placed in /etc/init.d.
@rjsworking
rjsworking / enginx_zf.conf
Created March 3, 2021 19:30 — forked from rturowicz/enginx_zf.conf
vhost - nginx (ZF)
# appserver
server {
listen 80;
server_name zftemplate.desktop;
access_log /var/log/nginx/zftemplate.desktop.access.log;
error_log /var/log/nginx/zftemplate.desktop.error.log;
root /home/user/WorkspacePHP/zftemplate/public;
rewrite ^/([0-9]*)/css/(.*) /css/$2;
rewrite ^/([0-9]*)/js/(.*) /js/$2;
@rjsworking
rjsworking / addvhost.sh
Created February 25, 2021 15:30 — forked from runbrun/addvhost.sh
bash script to create nginx virtual hosts
#!/usr/bin/env bash
#
# Nginx - new server block
# http://rosehosting.com
read -p "Enter username : " username
read -p "Enter domain name : " domain
# Functions
ok() { echo -e '\e[32m'$domain'\e[m'; } # Green
die() { echo -e '\e[1;31m'$domain'\e[m'; exit 1; }
@rjsworking
rjsworking / progress-bar.blade.php
Created January 31, 2021 10:23 — forked from gwleuverink/progress-bar.blade.php
Progress bar blade component
@props([
'percentage' => 0,
'failed' => false
])
@php
$done = $failed || $percentage == 100;
@endphp
<div {{ $attributes->merge(['class' => ' space-y-1'])->whereDoesntStartWith('wire:poll') }}
@rjsworking
rjsworking / nginx-cookieless.conf
Created January 7, 2020 17:50 — forked from dcnl1980/nginx-cookieless.conf
Nginx Cookieless Domain
#
# Name: nginx-cookieless.conf
# Auth: Chris van Steenbergen <cvsteenbergen@gmail.com>
# Date: 12 August 2016
# Desc: Nginx Cookieless Domain configuration for 100% performance grade with
#
# See for yourself at: https://tools.pingdom.com/#!/beJG0v/http://www.reclick.nl
#
server {
@rjsworking
rjsworking / deploy.sh
Last active October 16, 2020 01:21 — forked from BenSampo/deploy.sh
Laravel deploy script
# Change to the project directory
cd /home/forge/domain.com
# Turn on maintenance mode
php artisan down
# Pull the latest changes from the git repository
git pull origin master
# Install/update composer dependecies
@rjsworking
rjsworking / my.ini
Created April 7, 2019 09:00 — forked from martinguenster/my.ini
my.ini
[client]
# TCP/IP port number to use for connection
port = 3306
[mysql]
# This option is on by default, which enables database, table, and column name completion.
no_auto_rehash
# The maximum size of the buffer for client/server communication. The default is 16MB, the maximum is 1GB.
max_allowed_packet = 16M
# Set the prompt to the specified format
@rjsworking
rjsworking / deployment_guide.md
Created April 2, 2019 18:43 — forked from vicgonvt/deployment_guide.md
Deployment Guide for Ubuntu Server from Scratch with Laravel

Setting Up Laravel in Ubuntu / DigitalOcean

Getting Started

  • Create droplet with Ubuntu 18.10
  • ssh root@[DROPLET IP ADDRESS]
  • Get password from your email
  • Change password on first login
  • adduser laravel
  • Enter password and other information
@rjsworking
rjsworking / error_blade_directive.php
Created March 29, 2019 10:45 — forked from calebporzio/error_blade_directive.php
A little Blade directive to make working with validation errors a bit nicer.
<?php
// Usage:
// Before
@if ($errors->has('email'))
<span>{{ $errors->first('email') }}</span>
@endif
// After: