Skip to content

Instantly share code, notes, and snippets.

<?php
eval(file_get_contents('shittydb.class.php'));
# Insert more code here
<VValue type="int" value="0" />
<VValue type="int" value="1" />
<VValue type="int" value="2" />
<VValue type="int" value="3" />
<VValue type="int" value="4" />
<VValue type="int" value="5" />
#!/bin/bash
ISWWW=true
while getopts ":nd:" opt; do
case $opt in
d)
DOMAIN=$OPTARG
;;
n)

Keybase proof

I hereby claim:

  • I am lucasRolff on github.
  • I am lucasrolff (https://keybase.io/lucasrolff) on keybase.
  • I have a public key whose fingerprint is 858E D9C8 BABB A53D AECE ED64 8255 AE6D D620 1265

To claim this, I am signing this object:

@lucasRolff
lucasRolff / db-connect-test.php
Created May 5, 2017 20:58 — forked from M165437/db-connect-test.php
Script for a quick PHP MySQL DB connection test.
<?php
# Fill our vars and run on cli
# $ php -f db-connect-test.php
$dbname = 'name';
$dbuser = 'user';
$dbpass = 'pass';
$dbhost = 'host';
$link = mysqli_connect($dbhost, $dbuser, $dbpass) or die("Unable to Connect to '$dbhost'");
@lucasRolff
lucasRolff / gist:0d8d604a32e02cdceb646e8753df4b06
Last active June 28, 2018 22:26 — forked from AutomationD/gist:dfd1f82568b37ff95398
fpm - build openresty deb package
#!/bin/bash
version=1.11.2.1
wget http://openresty.org/download/ngx_openresty-${version}.tar.gz
tar zxf ngx_openresty-${version}.tar.gz
cd ngx_openresty-${version}
./configure --prefix=/etc/nginx \
--sbin-path=/usr/sbin/nginx \
--conf-path=/etc/nginx/nginx.conf \
@lucasRolff
lucasRolff / whm_dark_mode.css
Created February 27, 2019 20:34 — forked from troglodyne/dark_orb.css
Dark mode CSS for use in Stylus plugin
@-moz-document regexp("^http[s]?://[a-zA-Z0-9._-]+:208[67]/.*") {
#topFrameWrapper > div {
background-color: #1d1d1d;
color: white;
}
#pageContainer {
background-color: white;
filter: invert(100%);
}
#breadcrumbsContainer > * {
@lucasRolff
lucasRolff / ExampleUsage.php
Created April 27, 2022 18:13 — forked from x7ryan/ExampleUsage.php
A simple Laravel Livewire trait to include rules and messages from a Laravel FormRequest Class. Simply use this trait and define a protected property useFormRequest as a reference to the FormRequest class you wish to use. This can be used to share validation logic between livewire components and traditonal Laravel controllers, for example when u…
<?php
namespace App\Http\Livewire;
use Livewire\Component;
use App\Http\Livewire\Concerns\FormRequest;
class ExampleUsage extends Component
{
use FormRequest;
@lucasRolff
lucasRolff / rspamc_learn.sh
Created May 4, 2022 09:26 — forked from moisseev/rspamc_learn.sh
Train Rspamd using Dovecot folders ( * the script expunges folders *)
#!/bin/sh
USER="spam@example.com"
FOLDER_PREFIX="train_"
FOLDER_HAM="${FOLDER_PREFIX}ham"
FOLDER_PROB="${FOLDER_PREFIX}prob"
FOLDER_SPAM="${FOLDER_PREFIX}spam"
DOVEADM="/usr/local/bin/doveadm"
RSPAMADM="/usr/local/bin/rspamadm"
RSPAMC_CONNECT="-h localhost:11334" # rspamc (--connect|-h) option