Skip to content

Instantly share code, notes, and snippets.

@mcmatrix
mcmatrix / ext-lang-ja.js
Created February 10, 2016 08:52 — forked from sunvisor/ext-lang-ja.js
Japanese locale file for Sencha Touch 2
/**
* Japanese locale file for Sencha Touch 2
* File: ext-lang-ja.js
* Auther: sunvisor/Xenophy (hisashi.nakamura@xenophy.com)
* history: 2012-09-15 Prototype Version (test is not completed)
**/
Ext.onReady(function() {
var cm = Ext.ClassManager,
exists = Ext.Function.bind(cm.get, cm);
@mcmatrix
mcmatrix / .gitignore
Created March 10, 2016 10:48 — forked from reagent/.gitignore
Curses Windowing Example
demo
*.swp
@mcmatrix
mcmatrix / nginx.conf
Last active March 31, 2016 19:17 — forked from plentz/nginx.conf
Best nginx configuration for improved security(and performance). Complete blog post here http://tautt.com/best-nginx-configuration-for-security/
# to generate your dhparam.pem file, run in the terminal
openssl dhparam -out /etc/nginx/ssl/dhparam.pem 2048
@mcmatrix
mcmatrix / gist:9e5357020394e408d8ccbe870c77e97f
Created January 15, 2017 16:42 — forked from rmetzler/gist:2947828
find all non UTF-8 encoded files
find . -type f | xargs -I {} bash -c "iconv -f utf-8 -t utf-16 {} &>/dev/null || echo {}" > utf8_fail
/*
Copyright 2011 Martin Hawksey
Licensed under the Apache License, Version 2.0 (the "License");
you may not use this file except in compliance with the License.
You may obtain a copy of the License at
http://www.apache.org/licenses/LICENSE-2.0
Unless required by applicable law or agreed to in writing, software
@mcmatrix
mcmatrix / sencha touch model
Created February 15, 2017 08:24 — forked from sagarpanda/sencha touch model
sencha touch tips
# add extra coloum for fullname in sencha touch model
Ext.define('Sencha.model.Employee', {
extend: 'Ext.data.Model',
config: {
fields: [
{name: 'firstName', type: 'string'},
{name: 'lastName', type: 'string'},
{
name: 'fullName',
@mcmatrix
mcmatrix / Firewall.js
Created May 29, 2018 15:43 — forked from havvg/Firewall.js
ExtJS 6: JSON Web Token API Login with Promises
Ext.define('App.security.Firewall', {
singleton: true,
requires: [
'App.security.TokenStorage'
],
login: function(username, password) {
var deferred = new Ext.Deferred();
Ext.Ajax.request({
@mcmatrix
mcmatrix / gist:c19d3dd3a92d7a32f0eae4619663736e
Last active September 17, 2019 14:05 — forked from CristinaSolana/gist:1885435
Keeping a fork up to date
1. Clone your fork:
git clone git@github.com:YOUR-USERNAME/YOUR-FORKED-REPO.git
2. Add remote from original repository in your forked repository:
cd into/cloned/fork-repo
git remote add upstream git://github.com/ORIGINAL-DEV-USERNAME/REPO-YOU-FORKED-FROM.git
git fetch upstream
3. Updating your fork from original repo to keep up with their changes:

git pull upstream master

@mcmatrix
mcmatrix / README.md
Created June 20, 2018 20:11 — forked from hofmannsven/README.md
My simply Git Cheatsheet