Skip to content

Instantly share code, notes, and snippets.


Mior Muhammad Zaki crynobone

View GitHub Profile
jeffersonmartin /
Last active Aug 16, 2022
Generate a GitHub Personal Access Token for Private Composer Packages

Generate a GitHub Personal Access Token for Private Composer Packages

If you're trying to load a private repository with Composer/Laravel, we'll need to generate a GitHub Personal Access Token (similar to OAuth token) to access the repository during a composer install without entering credentials.

If you have used other Github packages from {my-org} before, you may be able to skip this step.

  1. Visit

  2. Click Generate new token.





Most active GitHub users in Malaysia

The count of contributions (summary of Pull Requests, opened issues and commits) to public repos at from Wed, 14 Nov 2012 03:35:10 GMT till Thu, 14 Nov 2013 03:35:10 GMT.

Only first 1000 GitHub users according to the count of followers are taken. This is because of limitations of GitHub search. Sorting algo in pseudocode:

 .filter((user) -> user.followers > 0)
JeffreyWay / .vimrc
Last active Dec 10, 2021
My .vimrc file
View .vimrc
set nocompatible " Disable vi-compatibility
set t_Co=256
colorscheme xoria256
set guifont=menlo\ for\ powerline:h16
set guioptions-=T " Removes top toolbar
set guioptions-=r " Removes right hand scroll bar
set go-=L " Removes left hand scroll bar
set linespace=15
alanhamlett / ajax_setup.js
Last active Jan 13, 2021
Sets the X-CSRFToken header for every jQuery ajax non-GET request to make CSRF protection easy. This fixes the example from Django docs here:
View ajax_setup.js
beforeSend: function(xhr, settings) {
if (settings.type == 'POST' || settings.type == 'PUT' || settings.type == 'DELETE') {
function getCookie(name) {
var cookieValue = null;
if (document.cookie && document.cookie != '') {
var cookies = document.cookie.split(';');
for (var i = 0; i < cookies.length; i++) {
var cookie = jQuery.trim(cookies[i]);
// Does this cookie string begin with the name we want?
JesseObrien / name.conf
Last active Dec 19, 2015
A Good Nginx Config
View name.conf
listen 80;
# Uncomment for SSL
#listen 443;
# Uncomment for SSL
#ssl on;
#ssl_certificate /etc/ssl/mycert.crt;
#ssl_certificate_key /etc/ssl/mycert.key;
lyrixx / post-checkout
Created Jun 26, 2013
Git post checkout
View post-checkout
# Put this file at: .git/hooks/post-checkout
# and make it executable
# You can install it system wide too, see
zmsaunders / filters.php
Last active Aug 7, 2022
HTML Output Minification in laravel 4
View filters.php
### --- Snip --- ###
App::after(function($request, $response)
// HTML Minification
if(App::Environment() != 'local')
if($response instanceof Illuminate\Http\Response)
barryvdh / _ide_helper.php
Last active Sep 8, 2022
Laravel IDE Helper for Netbeans / PhpStorm / Sublime Text 2 CodeIntel, generated using
View _ide_helper.php
* A helper file for Laravel 5, to provide autocomplete information to your IDE
* Generated for Laravel 5.5.13 on 2017-09-28.
* @author Barry vd. Heuvel <>
* @see
namespace {
exit("This file should not be included, only analyzed by your IDE");
machuga / Gemfile
Last active Dec 14, 2015
Guard for Jasmine CLI tests
View Gemfile
source :rubygems
gem 'guard'
gem 'guard-shell'
gem 'rb-fsevent', :require => false
gem 'terminal-notifier-guard' # This will use OSX native notifications