Search and install Gist (kenhowardpdx.vscode-gist) extension from Marketplace.
- From your Github profile, go to Settings and Develpoper Setttings
# Backup WSL2 virtual disks using native functions and compress them using 7zip | |
## Will Presley, 2020 | |
## willpresley.com | |
#### http://mats.gardstad.se/matscodemix/2009/02/05/calling-7-zip-from-powershell/ | |
# Alias for 7-zip | |
if (-not (test-path "$env:ProgramFiles\7-Zip\7z.exe")) {throw "$env:ProgramFiles\7-Zip\7z.exe needed"} | |
set-alias sz "$env:ProgramFiles\7-Zip\7z.exe" | |
#### Alternative native PS 7-zip: https://www.sans.org/blog/powershell-7-zip-module-versus-compress-archive-with-encryption/ |
#--------------------------------------------------------------------- | |
# НАСТРОЙКИ | |
#--------------------------------------------------------------------- | |
# Показать глобальную конфигурацию: | |
git config --global --list | |
git config --local user.name "user name" | |
git config --local user.email "[email protected]" | |
git config --local core.fileMode false |
W3 Schools | |
https://www.w3schools.com/php/php_quiz.asp | |
PHP Online Quiz | |
https://www.tutorialspoint.com/php/php_online_quiz.htm | |
WS Cube Tech | |
http://www.wscubetech.com/quiz-test-php | |
After Hours Programming |
# === Optimized my.cnf configuration for MySQL/MariaDB (on Ubuntu, CentOS, Almalinux etc. servers) === | |
# | |
# by Fotis Evangelou, developer of Engintron (engintron.com) | |
# | |
# ~ Updated September 2024 ~ | |
# | |
# | |
# 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. | |
# |
Paste this Code in Validator.php | |
public function validateAlphaSpaces($attribute, $value, $params) | |
{ | |
return preg_match('/^[\pL\s]+$/u', $value); | |
} | |
Create Custom Message some where at bottom in Validation.php | |
/* |
-Xms2G | |
-Xmx2G | |
-XX:ReservedCodeCacheSize=500m | |
-ea | |
-Dsun.io.useCanonCaches=false | |
-Djava.net.preferIPv4Stack=true | |
-Djsse.enableSNIExtension=false | |
-XX:+UseCodeCacheFlushing | |
-XX:+UseConcMarkSweepGC | |
-XX:SoftRefLRUPolicyMSPerMB=50 |
ECHO OFF | |
cd /d %~dp0 | |
for /f "tokens=2* delims= " %%F IN ('vagrant status ^| find /I "default"') DO (SET "STATE=%%F%%G") | |
ECHO Close this window if it remains open, and http://localhost:8081 is responsive | |
IF "%STATE%" NEQ "saved" ( | |
ECHO Starting Vagrant VM from powered down state... | |
vagrant up | |
) ELSE ( |
#!/usr/bin/env ruby | |
# 1. Install hunspell | |
# $ brew install hunspell | |
# 2. Download a dictionary and install it in a path listed by `hunspell -D` | |
# $ open http://wiki.services.openoffice.org/wiki/Dictionaries | |
# 3. Move this file into your repository | |
# $ mv commit-msg /path/to/repo/.git/hooks |