Skip to content

Instantly share code, notes, and snippets.

View yazeed's full-sized avatar

Yazeed Al Oyoun yazeed

View GitHub Profile
@Bodom78
Bodom78 / laravel-mongodb-sentinel
Last active January 1, 2018 11:25
Use the Sentinel 2.x authentication package with Laravel 5.1 and MongoDB
Work in Progress: More testing to be done.
At a glance Authentication, Activation, Throttle, Groups & Permissions seem to
be working.
Downside: Copy and modify files.
Upside: Not really much work to get it up and running.
Assumes you have Laravel 5.1, jenssegers/laravel-mongodb + session addon set up
and your app is namespaced to App/
@bayareawebpro
bayareawebpro / deployer.php
Created May 28, 2018 23:49
Laravel Deployer Config
<?php
return [
/*
|--------------------------------------------------------------------------
| Default deployment strategy
|--------------------------------------------------------------------------
|
| This option defines which deployment strategy to use by default on all
sudo apt-get install zsh -y
git clone git://github.com/robbyrussell/oh-my-zsh.git /home/vagrant/.oh-my-zsh
cp /home/vagrant/.oh-my-zsh/templates/zshrc.zsh-template /home/vagrant/.zshrc
sudo chsh -s /usr/bin/zsh vagrant
sed -i 's/robbyrussell/agnoster/g' /home/vagrant/.zshrc
@Kuki145
Kuki145 / migrate.sh
Last active December 27, 2019 22:50
Steps to update a Mariner node to Freedom-Gemini node
# ================================================================================================
# IMPORTANT NOTE
# These commands should only be used to migrate your ot-node from version 2.0.59 to version 4.0.0
# They could cause problems if your node has already been running on version 4.0.0 for some time
# ================================================================================================
mkdir ~/Node_2_0_59_backup/
docker cp otnode:/ot-node/data/kademlia.crt ~/Node_2_0_59_backup/
docker cp otnode:/ot-node/data/kademlia.key ~/Node_2_0_59_backup/
@mnshankar
mnshankar / macros
Last active March 17, 2021 19:51
Laravel 4 (Twitter Bootstrap 3.0 compliant) form macros that I commonly use
<?php
/*********************************************************************************************
* Example usage (In view)
* <div class="welcome">
<?php echo Form::open(array('route'=>'process','class'=>'form-horizontal'))?>
<?php echo Form::textField('first_name')?>
<?php echo Form::textField('last_name')?>
<?php echo Form::emailField('email')?>
<?php echo Form::passwordField('password')?>
<?php echo Form::selectField('select_one', array('1'=>'abc', '2'=>'def'))?>
@atodev
atodev / sniper.js
Last active November 22, 2021 17:49
[Sniper] # MEV
https://explore.flashbots.net/
https://github.com/alchemistcoin/alchemist
--How to make $1m per month as a Solidity developer
https://www.youtube.com/watch?v=lXq0eU8viFQ
--Flashbots
https://github.com/flashbots/pm
https://github.com/flashbots/simple-arbitrage
https://docs.flashbots.net/
@msurguy
msurguy / eloquent.md
Last active February 8, 2022 03:13
Laravel 4 Eloquent Cheat Sheet.

Conventions:

Defining Eloquent model (will assume that DB table named is set as plural of class name and primary key named "id"):

class Shop extends Eloquent {}

Using custom table name

protected $table = 'my_shops';

@bretton
bretton / improved-lnd-bitcoind-mainnet.md
Last active November 15, 2022 18:53
Detailed guide to installing LND and Bitcoind on Ubuntu 16.04 LTS for Mainnet

Intro

This guide is specific to getting LND 0.5-beta and Bitcoind running on Ubuntu 16.04 LTS for mainnet. It is aging rapidly and includes steps not necessary on newer versions of LND. As of April 2021 it is very out of date for bitcoind. As of December 2021 it is outdated for LND too.

Original installation guide:

This guide is broken into the following sections:

  • Install bitcoind and set to start automatically
  • Install development tools and dependancies
@anchetaWern
anchetaWern / laravel-ums.markdown
Created December 6, 2012 11:14
Building a User Management System in Laravel

There's no shortage of good resources for learning laravel. So instead of the usual introductory tutorial were just gonna learn Laravel by building a project from scratch and that's gonna be a User Management System.

I don't know if my definition of a User Management System is correct but here's my idea of what's it's capable of doing:

  • Register Roles
  • Register Users
  • Update Users