Skip to content

Instantly share code, notes, and snippets.

View Askar-Rymbayev's full-sized avatar

Askar Askar-Rymbayev

  • Kazakhstan, Almaty
  • 09:33 (UTC +05:00)
View GitHub Profile
@paulofreitas
paulofreitas / AuthServiceProvider.php
Last active July 7, 2023 13:15
Extending the default Eloquent User Provider (Laravel 5.4+)
<?php
namespace App\Providers;
use App\Auth\UserProvider;
use Illuminate\Foundation\Support\Providers\AuthServiceProvider as ServiceProvider;
class AuthServiceProvider extends ServiceProvider
{
/**
@freearhey
freearhey / collection.xml
Created August 31, 2016 05:45
Использование vue.js в XSLT шаблоне
<?xml version="1.0" encoding="UTF-8"?>
<?xml-stylesheet href="template.xsl" type="text/xsl" ?>
<collection />
@isaacs
isaacs / node-and-npm-in-30-seconds.sh
Last active October 27, 2025 08:27
Use one of these techniques to install node and npm without having to sudo. Discussed in more detail at http://joyeur.com/2010/12/10/installing-node-and-npm/ Note: npm >=0.3 is *safer* when using sudo.
echo 'export PATH=$HOME/local/bin:$PATH' >> ~/.bashrc
. ~/.bashrc
mkdir ~/local
mkdir ~/node-latest-install
cd ~/node-latest-install
curl http://nodejs.org/dist/node-latest.tar.gz | tar xz --strip-components=1
./configure --prefix=~/local
make install # ok, fine, this step probably takes more than 30 seconds...
curl https://www.npmjs.org/install.sh | sh