Skip to content

Instantly share code, notes, and snippets.

View binler's full-sized avatar
:octocat:

Binler binler

:octocat:
View GitHub Profile
@gndplayground
gndplayground / refreshToken.ts
Last active April 27, 2023 09:50
Axios interceptor get new token when token expired example with typescript.
View refreshToken.ts
import axios from 'axios';
// Example request
// axios
// .get("http://localhost:8000/get?t=1")
// .then(() => {
// console.log("ok1");
// })
// .catch(e => {
@binler
binler / ie67891011-css-hacks.txt
Created January 23, 2017 09:42 — forked from ricardozea/ie67891011-css-hacks.txt
IE CSS hacks - IE6, 7, 8, 9, 10, 11
View ie67891011-css-hacks.txt
IE6 Only
==================
_selector {...}
IE6 & IE7
==================
*html or { _property: }
IE7 Only
==================
@binler
binler / setup.md
Created June 6, 2016 02:36 — forked from asilbalaban/setup.md
How to install fuelphp and setup ormauth on it!
View setup.md

Installing and Setup FuelPHP's Ormauth

Create new project with Oil

$ oil create <project_name>

In your project there is a fuel/packages folder Copy /fuel/packages/auth/config/auth.php and /fuel/packages/auth/config/ormauth.php files to your main config folder which is /fuel/app/config/

@jamsesso
jamsesso / dev-server.js
Last active August 24, 2020 13:27
Webpack dev server with a better proxy (http-proxy-middleware)
View dev-server.js
var express = require('express');
var path = require('path');
var webpackConfig = require('./webpack.config');
var webpack = require('webpack');
var webpackDevMiddleware = require('webpack-dev-middleware');
var webpackHotMiddleware = require('webpack-hot-middleware');
var proxyMiddleware = require('http-proxy-middleware');
var devConfig = webpackConfig.devServer;
var app = express();
View creating-a-two-way-sync-between-a-github-repository-and-subversion.md

Creating a two way sync between a Github repository and Subversion

Another git <> svn post?

As many of you know I have been on a quest to get Jetpack core development moved from the WordPress.org Subversion (svn) repository to Github (git). As part of this process I setup an experimental Jetpack repository to see how synchronization works between git and svn. Lets just clear the air right now and say not well, not well at all. This is due to how git and svn each store their respective histories. But! I think I finally have it figure out.

Backfill

I wrote an article a couple months ago entitled Creating a synchronized Github fork of a WordPress.org Subversion plugin repository. This article is great (and still a recommended read) if you are only doing synchronization b