Skip to content

Instantly share code, notes, and snippets.

Vladimir Chumak coderua

  • Ukraine
Block or report user

Report or block coderua

Hide content and notifications from this user.

Learn more about blocking users

Contact Support about this user’s behavior.

Learn more about reporting abuse

Report abuse
View GitHub Profile
coderua /
Last active Dec 6, 2018 — forked from danielv99/
L2TP VPN client on Linux Debian
# Requirements
# debian/ubuntu
apt-get -y update && apt-get -y upgrade
apt-get -y install strongswan xl2tpd libstrongswan-standard-plugins libstrongswan-extra-plugins
# Setup variables for L2TP connestion
coderua / curl_stub.php
Created Feb 13, 2016
Curl testing stub
View curl_stub.php
* Curl testing stub
$url = '';
$userAgent = 'User-Agent: Mozilla/5.0 (Windows NT 10.0; WOW64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/47.0.2526.111 Safari/537.36';
$headers = array();
coderua / DisablesForeignKeys.php
Created Feb 5, 2016
PHP Trait for Disable/Enable foreign key checkin for different drivers in Laravel
View DisablesForeignKeys.php
* Disable/Enable foreign key checkin for different drivers
* Usage:
* 1. Save the trait to app/Traits/DisablesForeignKeys.php
* 2. Add use statement in database/seeds/DatabaseSeeder.php:
* use App\Traits\DisablesForeignKeys;
* 3. Add use to class definition:
* class DatabaseSeeder extends Seeder
# Automate mysql secure installation for debian-baed systems
# - You can set a password for root accounts.
# - You can remove root accounts that are accessible from outside the local host.
# - You can remove anonymous-user accounts.
# - You can remove the test database (which by default can be accessed by all users, even anonymous users),
# and privileges that permit anyone to access databases with names that start with test_.
coderua / sudoers
Created Dec 11, 2012
Unix: Sudo without password
View sudoers
# Чтобы не вводить пароль при каждом повышении привилигей (sudo -s) необходимо
# 1. В файл sudoers нужно добавить стоку.
# 2. Изменить <username> на реальное имя пользователя в системе
# Примечание. В FreeBSD полный путь к файлу — /usr/local/etc/sudoers, в Linux Ubuntu — /etc/sudoers.
<username> ALL=(ALL) NOPASSWD: ALL
You can’t perform that action at this time.