Skip to content

Instantly share code, notes, and snippets.

View messi89's full-sized avatar
πŸ¦…
The hunter eagle

Messi89 messi89

πŸ¦…
The hunter eagle
View GitHub Profile
@tobysteward
tobysteward / BlogController.php
Last active January 2, 2025 07:28
Laravel AJAX Pagination with JQuery
<?php
class BlogController extends Controller
{
/**
* Posts
*
* @return void
*/
public function showPosts()
@hwdsl2
hwdsl2 / .MOVED.md
Last active May 13, 2025 05:30
IPsec VPN Server Auto Setup Script for Ubuntu and Debian
@oskarnrk
oskarnrk / mod_xml2enc-installer.sh
Last active December 14, 2020 01:09
Install mod_xml2enc for Apache2 in Ubuntu 13.10 or later
#!/bin/sh
sudo apt-get install apache2-prefork-dev libxml2 libxml2-dev apache2-dev
mkdir ~/modbuild/ && cd ~/modbuild/
wget http://apache.webthing.com/svn/apache/filters/mod_xml2enc.c
wget http://apache.webthing.com/svn/apache/filters/mod_xml2enc.h
sudo apxs2 -aic -I/usr/include/libxml2 ./mod_xml2enc.c
cd ~
sudo rm -rfd ~/modbuild/
sudo service apache2 restart

Steps

  1. Setup Laravel app
  2. Setup vue.js inside laravel app

Setup Laravel app

  • New Laravel app
  • Rename .env.example to .env
  • Config config/database.php to MySQL or SQLite
  • For SQLite, run touch storage/database.sqlite to create sqlite database
@matthiasbayer
matthiasbayer / php7-build.sh
Created December 11, 2015 12:39
Build PHP7 from source
#!/usr/bin/env bash
set -e
PHP_DIR=${PHP_DIR:-/etc/php7/cli}
FPM_DIR=${FPM_DIR:-/etc/php7/fpm}
PHP_VERSION=${PHP_VERSION:-7.0.0}
MODS_DIR=${MODS_DIR:-/etc/php7/mods-available}
BUILD_DIR=/usr/src/php
@eyecatchup
eyecatchup / git-commit-log-stats.md
Last active April 11, 2025 08:16
Some commands to get git commit log statistics for a repository on the command line.

git commit stats

Commands to get commit statistics for a Git repository from the command line -
using git log, git shortlog and friends.




@stevebauman
stevebauman / Throttle.php
Last active February 25, 2025 07:16
Laravel Throttle Validation Rule
<?php
namespace App\Rules;
use Illuminate\Http\Request;
use Illuminate\Cache\RateLimiter;
use Illuminate\Contracts\Validation\Rule;
class Throttle implements Rule
{
@TheRadziu
TheRadziu / ultimate-vita-comparison.md
Last active February 1, 2025 15:22
Ultimate Vita Comparison (Firmwares & Rips vs Dumps)

Due to so many misinformation, false claims and confusion that goes around the web I've decided to make this quick comparison of all most known backup enabling tools, hackable vita firmwares and which one you should be using and why.
Date of last update: 13.01.2020

NoNpDRM Rips vs Dumps

NoNpDRM Rips Vitamin / MaiDumpTool Dumps
All original files untouched βœ… ❌
Support Retail DLCs βœ… ❌
Support Ripped (NoNpDRM) DLCs βœ… ❌
Support Dumped (Vitamin/Mai) DLCs βœ…1 βœ…
Q1. What is the InteractionManager and how is it used? Why is it important?
Q2. Which node_modules will run in React Native? How can we test for this?
Q3. What is wrong with this code for querying a native API?
class GyroJs {
setGyroPosition(pos) {
@zoilomora
zoilomora / README.md
Last active April 15, 2025 01:56
How to disable cloud-init in Ubuntu

How to disable cloud-init in Ubuntu

Prevent start

  • Create an empty file to prevent the service from starting

      sudo touch /etc/cloud/cloud-init.disabled
    

Uninstall