This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php | |
$value = 'passs'; | |
$d = password_hash($value, PASSWORD_BCRYPT, [ | |
'cost' => 10, | |
]); | |
echo $d; | |
$enc = "$2y$10$/5axuHxOPVuTmdJTrOe8w.9DsSd7ZSt0.uL6qREo/zyei8FAYb5fu"; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# Change to the project directory | |
cd /home/forge/domain.com | |
# Turn on maintenance mode | |
php artisan down | |
# Pull the latest changes from the git repository | |
git pull origin master | |
# Install/update composer dependecies |
This tutorial will walk you through the steps needed to get root
SSH
access on an [Engenius EAP600][1] dual-band WiFi access point. SSH doesn't
come enabled out of the box on these things, so if you want to SSH into the
device (which is running an old version of OpenWRT), keep reading.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
service nfslock stop | |
chkconfig nfslock off | |
service rpcidmapd stop | |
chkconfig rpcidmapd off | |
service portreserve stop | |
chkconfig portreserve off | |
service rpcbind stop |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
alias cd..='cd ..' | |
alias ..='cd ..' | |
alias ...='cd ../../../' | |
alias ....='cd ../../../../' | |
alias .....='cd ../../../../' | |
alias .4='cd ../../../../' | |
alias .5='cd ../../../../..' | |
alias h='history' | |
alias path='echo -e ${PATH//:/\\n}' | |
alias now='date +"%T' |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php | |
use Illuminate\Console\Command; | |
use Symfony\Component\Console\Input\InputArgument; | |
use Symfony\Component\Console\Input\InputOption; | |
class TestCommand extends Command { | |
/** | |
* The console command name. |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// Demo using DHCP and DNS to perform a web client request. | |
// 2011-06-08 <jc@wippler.nl> http://opensource.org/licenses/mit-license.php | |
#include <EtherCard.h> | |
// ethernet interface mac address, must be unique on the LAN | |
static byte mymac[] = { 0x74,0x69,0x69,0x2D,0x30,0x31 }; | |
static byte myip[] = { 10,0,0,36 }; | |
static byte mymask[] = { 255,255,255,0 }; | |
static byte gwip[] = { 10,0,0,100 }; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<!DOCTYPE html> | |
<html> | |
<head> | |
<link href="http://code.jquery.com/ui/1.9.2/themes/smoothness/jquery-ui.css" rel="stylesheet" type="text/css" /> | |
<script src="http://code.jquery.com/jquery-1.8.3.min.js"></script> | |
<script src="http://code.jquery.com/ui/1.9.2/jquery-ui.js"></script> | |
<script src="http://www.jawish.org/blog/uploads/jquery.gdocsviewer.min.js"></script> | |
<!-- <script src="http://www.jawish.org/blog/uploads/jquery.zohoviewer.min.js"></script> --> | |
<meta charset="utf-8"> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php | |
use App; | |
use Log; | |
class InsertNewBookLogger { | |
public function log(Request $request) { | |
if (App::environment('local')) | |
{ |