Skip to content

Instantly share code, notes, and snippets.

View neatlife's full-sized avatar
😀
Out sick

neatlife

😀
Out sick
View GitHub Profile
@neatlife
neatlife / bootstrap.css
Last active October 9, 2015 07:14 — forked from Integralist/bootstrap.css
List of Twitter Bootstrap CSS classes
/*
* Scaffolding
* Basic and global styles for generating a grid system, structural layout, and page templates
* ------------------------------------------------------------------------------------------- */
.container
Sets a width of 940px which also centres the content (clears floated elements before/after)
.container-fluid
Sets a minimum width of 940px (clears floated elements before/after)
@neatlife
neatlife / master.vim
Created November 8, 2015 13:37 — forked from gmccreight/master.vim
A script that gives you a playground for mastering vim
" copy all this into a vim buffer, save it, then...
" source the file by typing :so %
" Now the vim buffer acts like a specialized application for mastering vim
" There are two queues, Study and Known. Depending how confident you feel
" about the item you are currently learning, you can move it down several
" positions, all the way to the end of the Study queue, or to the Known
" queue.
" type ,, (that's comma comma)
@neatlife
neatlife / Sublime-Text-3-3103-License.txt
Created February 19, 2016 12:24
Sublime Text 3 3103 License
—– BEGIN LICENSE —–
Michael Barnes
Single User License
EA7E-821385
8A353C41 872A0D5C DF9B2950 AFF6F667
C458EA6D 8EA3C286 98D1D650 131A97AB
AA919AEC EF20E143 B361B1E7 4C8B7F04
B085E65E 2F5F5360 8489D422 FB8FC1AA
93F6323C FD7F7544 3F39C318 D95E6480
FCCC7561 8A4A1741 68FA4223 ADCEDE07
<!--
#####################
###################################
##########################################
###############################################
###################################################
#######################################################
#########################################################
###########################################################
#############################################################
@neatlife
neatlife / coreseek_install.sh
Created May 28, 2017 09:16 — forked from huacnlee/coreseek_install.sh
Coreseek for MySQL 数据源 安装教程
Coreseek (Sphinx) for MySQL 数据源 安装教程
1. 下载源代码
$ wget http://www.coreseek.cn/uploads/csft/3.2/coreseek-3.2.13.tar.gz
$ tar xzf coreseek-3.2.13.tar.gz
$ cd coreseek-3.2.13
2. 中文测试环境检查:
@neatlife
neatlife / gist:b4bf3bbe349ef9fbcb0c9355e244bbc8
Last active September 22, 2017 09:10
elasticsearch api学习
PUT /megacorp/employee/1
{
"first_name": "John",
"last_name": "Smith",
"age": 25,
"about": "I love to go rock climbing",
"interests": ["sports", "music"]
}
PUT /megacorp/employee/2
@neatlife
neatlife / load_test_data.sh
Created September 22, 2017 03:26 — forked from clintongormley/load_test_data.sh
Run these commands in your shell to setup the test data for Chapter 5
curl -XPUT 'http://localhost:9200/us/user/1?pretty=1' -d '
{
"email" : "john@smith.com",
"name" : "John Smith",
"username" : "@john"
}
'
curl -XPUT 'http://localhost:9200/gb/user/2?pretty=1' -d '
{
HEXRAYS_LICENSE 6.8
USER Giancarlo Russo, HT Srl
EMAIL g.russo@hackingteam.com
ISSUED_ON 2015-05-25 18:07:13
LICENSE_ID PRODUCT # SUPPORT EXPIRES DESCRIPTION
--------------- -------- -- ---------- --------- -----------------------------
48-3255-7514-28 IDAPRONW 1 2016-04-08 Never IDA Professional Named License (Windows)
48-B055-7514-8E IDAPRONM 1 2016-04-08 Never IDA Professional Named License (Mac)
@neatlife
neatlife / codesign_gdb.md
Created November 7, 2017 01:21 — forked from hlissner/codesign_gdb.md
Codesign gdb on OSX

Note: these instructions are for pre-Sierra MacOS. Sierra Users: see https://gist.github.com/gravitylow/fb595186ce6068537a6e9da6d8b5b96d by @gravitylow.

If you are getting this in gdb on OSX while trying to run a program:

Unable to find Mach task port for process-id 57573: (os/kern) failure (0x5).
 (please check gdb is codesigned - see taskgated(8))
  1. Open Keychain Access
@neatlife
neatlife / php convert object to array
Last active December 12, 2017 14:48
php convert object to array
```php
function varDumper($vars)
{
$results = [];
if (is_array($vars)) {
foreach($vars as $key => $var) {
$keyPrefix = '';
if (is_object($var)) {
$keyPrefix = get_class($var);
}