Skip to content

Instantly share code, notes, and snippets.

View full-sized avatar
🏠
Working from home

Ruslan Skazkopodatelev Russkazkin

🏠
Working from home
View GitHub Profile
@carbontwelve
carbontwelve / usefull_commands.sh
Last active June 24, 2021 06:10
Running xdebug in the console, for debugging Laravel artisan commands. Useful as I keep forgetting this one...
View usefull_commands.sh
# Running xdebug in the console, for debugging Laravel artisan commands. Useful as I keep forgetting this one...
php -dxdebug.remote_autostart artisan
#Running phpcs for 5.3:
phpcs -pv --standards= --runtime-set testVersion 5.3 --ignore=*/public/*,*.js,*.css,*/tests/*,*/views/training/* .
@ebouchut
ebouchut / disable_postgres_autostart_on_macos
Created April 16, 2014 08:42
Disable Postgres (installed with Homebrew) autostart on MacOS
View disable_postgres_autostart_on_macos
launchctl unload -w ~/Library/LaunchAgents/homebrew.mxcl.postgresql.plist
@andrezrv
andrezrv / get-admin-path.php
Created October 30, 2014 21:18
Obtain path to wp-admin directory in WordPress.
View get-admin-path.php
<?php
/**
* Obtain the path to the admin directory.
*
* @return string
*/
function my_plugin_get_admin_path() {
// Replace the site base URL with the absolute path to its installation directory.
$admin_path = str_replace( get_bloginfo( 'url' ) . '/', ABSPATH, get_admin_url() );
@robertpainsi
robertpainsi / commit-message-guidelines.md
Last active September 26, 2023 20:04
Commit message guidelines
View commit-message-guidelines.md

Commit Message Guidelines

Short (72 chars or less) summary

More detailed explanatory text. Wrap it to 72 characters. The blank
line separating the summary from the body is critical (unless you omit
the body entirely).

Write your commit message in the imperative: "Fix bug" and not "Fixed
bug" or "Fixes bug." This convention matches up with commit messages
@plusplugins
plusplugins / um-favicon-list.txt
Created August 24, 2017 17:53
Ultimate Member Favicons List 2017
View um-favicon-list.txt
um-icon-alert
um-icon-alert-circled
um-icon-android-add
um-icon-android-add-circle
um-icon-android-alarm-clock
um-icon-android-alert
um-icon-android-apps
um-icon-android-archive
um-icon-android-arrow-back
um-icon-android-arrow-down
@isluewell
isluewell / AppName.php
Last active May 11, 2023 12:18
[6.0] Command app:name
View AppName.php
<?php
namespace App\Console\Commands;
use Illuminate\Console\Command;
use Illuminate\Support\Composer;
use Symfony\Component\Finder\Finder;
use Illuminate\Filesystem\Filesystem;
use Symfony\Component\Console\Input\InputArgument;