Skip to content

Instantly share code, notes, and snippets.

View singleseeker's full-sized avatar

SingleSeeker singleseeker

View GitHub Profile
@pksunkara
pksunkara / config
Last active November 15, 2024 16:02
Sample of git config file (Example .gitconfig) (Place them in $XDG_CONFIG_HOME/git)
[user]
name = Pavan Kumar Sunkara
email = [email protected]
username = pksunkara
[init]
defaultBranch = master
[core]
editor = nvim
whitespace = fix,-indent-with-non-tab,trailing-space,cr-at-eol
pager = delta
@theconektd
theconektd / github.css
Created April 30, 2012 02:11
Github Markdown CSS - for Markdown Editor Preview
body {
font-family: Helvetica, arial, sans-serif;
font-size: 14px;
line-height: 1.6;
padding-top: 10px;
padding-bottom: 10px;
background-color: white;
padding: 30px; }
body > *:first-child {
@mikedfunk
mikedfunk / README.md
Created August 28, 2012 21:17
CodeIgniter Pagination for Twitter Bootstrap

This uses Twitter Bootstrap classes for CodeIgniter pagination.

Drop this file into application/config.

@shiftkey
shiftkey / .gitconfig
Created September 16, 2012 11:14
Sample .gitconfig with aliases for fun and profit
[alias]
st = status
co = checkout
ci = commit
br = branch
df = diff
lp = log -p
com = checkout master
fe = fetch origin
hr = reset origin/master --hard
@JamesMGreene
JamesMGreene / gitflow-breakdown.md
Last active November 5, 2024 15:51
`git flow` vs. `git`: A comparison of using `git flow` commands versus raw `git` commands.

Initialize

gitflow git
git flow init git init
  git commit --allow-empty -m "Initial commit"
  git checkout -b develop master

Connect to the remote repository

@beanmoss
beanmoss / RestControllerTrait.php
Created April 18, 2015 12:12
Playing with Laravel Lumen: simple RESTful trait.
<?php namespace App\Http\Controllers;
use Illuminate\Http\Request;
trait RestControllerTrait
{
public function index()
{
$m = self::MODEL;
return $this->listResponse($m::all());
@ivankristianto
ivankristianto / php5apache-with-memcache.txt
Created June 19, 2016 15:14
Install memcached php7 on docker
FROM php:7.0-fpm
# ...
RUN apt-get update && apt-get install -y \
libpq-dev \
libmemcached-dev \
curl
# ...
@avataru
avataru / EloquentCheatSheet.md
Last active November 8, 2024 19:52
Eloquent relationships cheat sheet
@Godofbrowser
Godofbrowser / axios.refresh_token.1.js
Last active November 10, 2024 14:36 — forked from culttm/axios.refresh_token.js
Axios interceptor for refresh token when you have multiple parallel requests. Demo implementation: https://github.com/Godofbrowser/axios-refresh-multiple-request
// for multiple requests
let isRefreshing = false;
let failedQueue = [];
const processQueue = (error, token = null) => {
failedQueue.forEach(prom => {
if (error) {
prom.reject(error);
} else {
prom.resolve(token);
@anubra266
anubra266 / Readme.md
Last active September 14, 2024 12:57
Laravel Queue Email Verify and Password Reset Mails

Laravel Queue Email Verify and Password Reset Mails

First step is to overwrite the default methods in your User Model.

NB: We are still using the default Laravel Notifications.

# App/Models/User.php

php