Skip to content

Instantly share code, notes, and snippets.

View floptwo's full-sized avatar

Manu Louisor floptwo

View GitHub Profile
imliam / pagination.blade.php
Last active November 26, 2018 15:23
Laravel 5 - Bootstrap 4 Pagination
View pagination.blade.php
| Laravel 5, Bootstrap 4 Pagination
| A partial view to handle pagination for collections in Laravel's query
| builder or Eloquent ORM, styled with Bootstrap 4.
| The pagination displays like the following, where * denotes the current
andreibosco /
Last active July 14, 2023 03:57
disable creative cloud startup on mac
cecilemuller /
Last active September 27, 2023 04:31
How to setup Let's Encrypt for Nginx on Ubuntu 18.04 (including IPv6, HTTP/2 and A+ SSL rating)
ralph089 / .wakeup
Last active May 4, 2023 00:47
Restarts Bluetooth Module on Mac OS X. You can use the script as shortcut to restart Bluetooth on demand or you can use it with "SleepWatcher" to automatically restart Bluetooth on wakeup (See I created it, because my Logitech Bluetooth Mouse doesn't stay connected after sleep-mode, so i had to manually re-pair my mouse.
View .wakeup
# Restart Bluetooth Module on Mac OS X
# Requires Blueutil to be installed:
log() {
echo "$@"
ayamomiji / deploy.rb
Last active October 19, 2021 18:12
capistrano 3: precompile assets on local machine then upload
View deploy.rb
namespace :deploy do
namespace :assets do
desc "Precompile assets on local machine and upload them to the server."
task :precompile do
run_locally do
execute 'RAILS_ENV=production bundle exec rake assets:precompile'
zaherg /
Last active October 18, 2020 17:45
a small tips to install latest nginx , php 5.5 & laravel 4.1 since that Laravel 4.1 has been released, i have removed the line which explain how to install laravel from dev branch using composer.
markbates / gist:4240848
Created December 8, 2012 16:06
Getting Started with Rack
View gist:4240848

If you're writing web applications with Ruby there comes a time when you might need something a lot simpler, or even faster, than Ruby on Rails or the Sinatra micro-framework. Enter Rack.

Rack describes itself as follows:

Rack provides a minimal interface between webservers supporting Ruby and Ruby frameworks.

Before Rack came along Ruby web frameworks all implemented their own interfaces, which made it incredibly difficult to write web servers for them, or to share code between two different frameworks. Now almost all Ruby web frameworks implement Rack, including Rails and Sinatra, meaning that these applications can now behave in a similar fashion to one another.

At it's core Rack provides a great set of tools to allow you to build the most simple web application or interface you can. Rack applications can be written in a single line of code. But we're getting ahead of ourselves a bit.

sgmurphy / url_slug.js
Created July 12, 2012 02:05
URL Slugs in Javascript (with UTF-8 and Transliteration Support)
View url_slug.js
* Create a web friendly URL slug from a string.
* Requires XRegExp ( with unicode add-ons for UTF-8 support.
* Although supported, transliteration is discouraged because
* 1) most web browsers support UTF-8 characters in URLs
* 2) transliteration causes a loss of information
* @author Sean Murphy <>
Vinai / CartController.php
Created July 11, 2012 14:57
Your/Ext/etc/config.xml and Your/Ext/controllers/Checkout/CartController.php
View CartController.php
// Your/Ext/controllers/Checkout/CartController.php
class Your_Ext_Checkout_CartController extends Mage_Checkout_CartController
public function yourNewAction()