Skip to content

Instantly share code, notes, and snippets.

View lesstif's full-sized avatar

KwangSeob Jeong lesstif

View GitHub Profile
@lesstif
lesstif / passwords.txt
Created November 22, 2021 01:38 — forked from w0rd-driven/passwords.txt
BFG Repo-Cleaner --replace-text example
PASSWORD1 # Replace literal string 'PASSWORD1' with '***REMOVED***' (default)
PASSWORD2==>examplePass # replace with 'examplePass' instead
PASSWORD3==> # replace with the empty string
regex:password=\w+==>password= # Replace, using a regex
regex:\r(\n)==>$1 # Replace Windows newlines with Unix newlines
@lesstif
lesstif / my.cnf
Last active July 22, 2021 01:32 — forked from fevangelou/my.cnf
Optimized my.cnf configuration for MariaDB (on Ubuntu, CentOS etc. servers)
# === Optimized my.cnf configuration for MySQL/MariaSQL (on Ubuntu, CentOS etc. servers) ===
#
# by Fotis Evangelou, developer of Engintron (engintron.com)
#
# ~ Updated February 2021 ~
#
#
# The settings provided below are a starting point for a 8-16 GB RAM server with 4-8 CPU cores.
# If you have different resources available you should adjust accordingly to save CPU, RAM & disk I/O usage.
#
@lesstif
lesstif / gist:9e895302c499e8d41e35cdbb08201d26
Created March 5, 2020 00:47 — forked from abhishekkhaware/gist:7152721
Create An Alias For Laravel and Codecept in Windows PowerShell.
# Laravel Artisan Commands Shortcut
function art($arg1,$arg2,$arg3,$arg4,$arg5) { php artisan $arg1 $arg2 $arg3 $arg4 $arg5}
Set-Alias a art
#### Use as by default Alias #####
# ge:r => generate:resource
# ge:c => generate:controller
@lesstif
lesstif / Laravel Nova snippets.md
Created April 2, 2019 01:12 — forked from Krato/Laravel Nova snippets.md
A set of snippets I use in Laravel Nova

A set of snippets I use in Laravel Nova

Snippets

Vue,js devtools (Only with manual installation)

cd ./nova 
yarn
mv webpack.mix.js.dist webpack.mix.js
@lesstif
lesstif / rsync-exclude.sh
Last active August 20, 2018 09:20 — forked from apisznasdin/rsync exclude
rsync all exclude recybled bin and thumbnail data
#!/bin/bash -x
rsync -ah --progress
--exclude='$RECYCLE.BIN' --exclude='$Recycle.Bin' --exclude='.AppleDB' --exclude='.AppleDesktop' \
--exclude='.AppleDouble' --exclude='.com.apple.timemachine.supported' --exclude='.dbfseventsd' \
--exclude='.DocumentRevisions-V100*' --exclude='.DS_Store' --exclude='.fseventsd' --exclude='.PKInstallSandboxManager' \
--exclude='.Spotlight*' --exclude='.SymAV*' --exclude='.symSchedScanLockxz' --exclude='.TemporaryItems' \
--exclude='.Trash*' --exclude='.vol' --exclude='.VolumeIcon.icns' --exclude='Desktop DB' --exclude='Desktop DF' \
--exclude='hiberfil.sys' --exclude='lost+found' --exclude='Network Trash Folder' --exclude='pagefile.sys' \
--exclude='Recycled' --exclude='RECYCLER' --exclude='System Volume Information' --exclude='Temporary Items' --exclude='Thumbs.db' \