Skip to content

Instantly share code, notes, and snippets.

View karminski's full-sized avatar

张旭红 (karminski-牙医) karminski

View GitHub Profile
@karminski
karminski / sublime text tips
Last active November 24, 2023 01:16
sublime text tips
sublime text tips
=================
@author karminski <code.karminski@outlook.com>
@version 140219:1
# install package control
- offical site
https://packagecontrol.io/installation
@karminski
karminski / ubuntu_init.sh
Last active January 18, 2016 15:27
ubuntu develop environment deploy script
#!/bin/bash
# Ubuntu 12.04 precise software env init shell scripts.
# @author karminski <code.karminski@outlook.com>
# @version 140729:2
#init dir
sudo mkdir /home/apps
cd /home/apps
# install python-software-properties
@karminski
karminski / currying.php
Created March 17, 2014 11:23
currying.php
<?php
define("_", 0);
class Currying{
private $arg1;
public function __construct($arg1){
$this->func_a[0] = $arg1;
@karminski
karminski / lua_php_utils.lua
Created March 27, 2014 03:53
lua_php_utils.lua
--[[
lua_php_utils.lua
@author karminski <code.karminski@outlook.com>
@version 140319:1
@changelog
140319:1 ADD scandir(), file_exists(), is_numeric(), trim(), round(), count(), empty(),
explode(), implode(), print_r(), strrpos(), strpos(), split(), urlencode(),
@karminski
karminski / redis_factory.lua
Last active January 20, 2021 19:19
lua redis factory for lua-resty-redis, can work with nginx + nginx-lua-module or openresty.
--[[
redis_factory.lua
Redis factory method.
You can also find it at https://gist.github.com/karminski/33fa9149d2f95ff5d802
@version 151019:5
@author karminski <code.karminski@outlook.com>
@license MIT

Packages:


P3 Assembly
SublimeLinter
Trmmer
Markdown Preview
FileDiffs
DocBlockr
@karminski
karminski / deploy_nginx_with_lua_nginx_module.sh
Last active April 3, 2020 15:34
nginx with lua-nginx-module auto deploy scripts
#!/bin/bash
# deploy_nginx_with_lua_nginx_module.sh
# @version 171026:7
# @author karminski <code.karminski@outlook.com>
#
# @changes
# 171026:7 CHANGE to nginx-1.10.3, lua-nginx-module-v0.10.10, luajit2-v2.1-20170925
# 170825:6 REMOVE --with-debug compile option to solve peformance issue.
# 170627:5 CHANGE to nginx-1.10.3, lua-nginx-module-v0.10.8
# 161226:4 CHANGE to nginx-1.10.2, lua-nginx-module-v0.10.8, luajit2-v2.1-20161104
@karminski
karminski / php-7 configure
Created September 9, 2016 11:33
php-7 configure
./configure \
--enable-fpm \
--enable-opcache \
--enable-pdo \
--enable-sockets \
--enable-exif \
--enable-soap \
--enable-ftp \
--enable-wddx \
--enable-pcntl \
@karminski
karminski / centos7 yum repo for php7
Last active September 13, 2016 06:21
centos7 yum repo for php7
#!/bin/bash
# for_centos7.sh
# @version 160913:4
# @author karminski <code.karminski@outlook.com>
#
rpm -ivh http://mirrors.sohu.com/fedora-epel/7Server/x86_64/e/epel-release-7-8.noarch.rpm
yum clean all && yum makecache
yum update
@karminski
karminski / install_kubernetes__on_cetnos_7.md
Last active January 23, 2018 11:51
install_kubernetes__on_cetnos_7.md