Skip to content

Instantly share code, notes, and snippets.

View iflamed's full-sized avatar

New Bing iflamed

View GitHub Profile
@iflamed
iflamed / index.html
Created July 1, 2014 14:19
A Pen by 刘兵.
<html xmlns="http://www.w3.org/1999/xhtml"><head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8">
<meta name="viewport" content="width=480px,target-densitydpi=device-dpi,user-scalable=no">
<meta name="apple-mobile-web-app-capable" content="yes">
<meta name="apple-mobile-web-app-status-bar-style" content="black">
<meta name="format-detection" content="telephone=no">
<title>中苹果</title>
</head>
<body>
<div id="card">
@iflamed
iflamed / dragrisize.markdown
Created September 2, 2014 18:32
A Pen by 刘兵.
@iflamed
iflamed / php.conf
Last active August 29, 2015 14:08
one nginx server and multiple app(folder) share one fastcgi
##
# also you can seprate the php's fastcgi configration,then integrate to the test.example.com.conf
##
location ~ \.php$ {
try_files $uri =404;
fastcgi_split_path_info ^(.+\.php)(/.+)$;
## NOTE: You should have "cgi.fix_pathinfo = 0;" in php.ini
# With php5-cgi alone:
#fastcgi_pass 127.0.0.1:9000;
## With php5-fpm:
@iflamed
iflamed / web.config
Created April 2, 2015 15:35
Laravel 4 iis rewrite config
<?xml version="1.0" encoding="UTF-8"?>
<configuration>
<system.webServer>
<rewrite>
<rules>
<rule name="Imported Rule 1" stopProcessing="true">
<match url="^" ignoreCase="false" />
<conditions logicalGrouping="MatchAll">
<add input="{REQUEST_FILENAME}" matchType="IsDirectory" ignoreCase="false" negate="true" />
<add input="{REQUEST_FILENAME}" matchType="IsFile" ignoreCase="false" negate="true" />
@iflamed
iflamed / bs3-form.group.sublime-snippet
Created June 19, 2015 05:26
Bootstrap form horizontal group snippet and inline or normal group snippet
<snippet>
<content><![CDATA[
<div class="form-group">
<label for="${1:eleid}">${2:Title}</label>
<input type="text" class="form-control" name="${1:eleid}" id="${1:eleid}" placeholder="${2:Title}">
</div>
]]></content>
<!-- Optional: Set a tabTrigger to define how to trigger the snippet -->
<tabTrigger>bs3-form:group</tabTrigger>
<!-- Optional: Set a scope to limit where the snippet will trigger -->
@iflamed
iflamed / saas.conf
Created June 20, 2015 05:20
Nginx configruation with gzip and cache control
server {
server_name saas.domain.com;
access_log /www/logs/saas.domain.com_access.log;
error_log /www/logs/saas.domain.com_error.log;
root /www/sites/saaspos/public;
index index.php index.html index.htm;
# Begin to gzip config
gzip on;
gzip_min_length 1k;
@iflamed
iflamed / index.html
Last active August 29, 2015 14:24
跳动的气泡
<header class="img-cover launch">
<div class="tagContent">
<div class="tagContentInfo"><a href="#">Bigger</a></div>
<div class="tagAnimation">
<div class="animationContainer"><span class="black1"></span></div>
<div class="animationContainer"><span class="black2"></span></div>
<div class="animationContainer">
<span class="brand-bg"></span>
</div>
</div>
@iflamed
iflamed / .bash_profile
Created September 20, 2015 14:59
Gulp notify-send not found
# ssh 到服务器使用gulp watch 出现的notify 错误 可以使用环境变量关闭
# .bash_profile
# Get the aliases and functions
if [ -f ~/.bashrc ]; then
. ~/.bashrc
fi
# User specific environment and startup programs
export DISABLE_NOTIFIER=true
@iflamed
iflamed / full_chain.pem
Last active November 3, 2015 06:10
A ssl example file, which get a grade A+
-----BEGIN CERTIFICATE-----
MIIGCDCCA/CgAwIBAgIQKy5u6tl1NmwUim7bo3yMBzANBgkqhkiG9w0BAQwFADCB
hTELMAkGA1UEBhMCR0IxGzAZBgNVBAgTEkdyZWF0ZXIgTWFuY2hlc3RlcjEQMA4G
A1UEBxMHU2FsZm9yZDEaMBgGA1UEChMRQ09NT0RPIENBIExpbWl0ZWQxKzApBgNV
BAMTIkNPTU9ETyBSU0EgQ2VydGlmaWNhdGlvbiBBdXRob3JpdHkwHhcNMTQwMjEy
MDAwMDAwWhcNMjkwMjExMjM1OTU5WjCBkDELMAkGA1UEBhMCR0IxGzAZBgNVBAgT
EkdyZWF0ZXIgTWFuY2hlc3RlcjEQMA4GA1UEBxMHU2FsZm9yZDEaMBgGA1UEChMR
Q09NT0RPIENBIExpbWl0ZWQxNjA0BgNVBAMTLUNPTU9ETyBSU0EgRG9tYWluIFZh
bGlkYXRpb24gU2VjdXJlIFNlcnZlciBDQTCCASIwDQYJKoZIhvcNAQEBBQADggEP
ADCCAQoCggEBAI7CAhnhoFmk6zg1jSz9AdDTScBkxwtiBUUWOqigwAwCfx3M28Sh
@iflamed
iflamed / index.js
Created September 20, 2015 14:57
Laravel gulp webpack watch the vuejs vue file
// this.registerWatcher('webpack', [config.assetsDir + '/**/*.js',config.assetsDir + '/**/*.vue']);
var gulp = require('gulp'),
webpack = require('gulp-webpack'),
gulpIf = require('gulp-if'),
uglify = require('gulp-uglify'),
gulpIgnore = require('gulp-ignore'),
_ = require('underscore'),
elixir = require('laravel-elixir'),
utilities = require('laravel-elixir/ingredients/commands/Utilities'),
notification = require('laravel-elixir/ingredients/commands/Notification');