Skip to content

Instantly share code, notes, and snippets.

View lemos1235's full-sized avatar
🌴
On vacation

lemos lemos1235

🌴
On vacation
  • Ottawa, Canada
View GitHub Profile
@lemos1235
lemos1235 / webpack-multipage.md
Last active July 31, 2017 02:43
webpack 构建多页面应用
@lemos1235
lemos1235 / vimrc
Last active January 31, 2018 14:37
vim 的配置文件 for Linux
""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""
" PlugList "
""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""
" Specify a directory for plugins
" - For Neovim: ~/.local/share/nvim/plugged
" - Avoid using standard Vim directory names like 'plugin'
call plug#begin('~/.vim/plugged')
" Make sure you use single quotes
@lemos1235
lemos1235 / .Xclients
Last active November 13, 2018 12:48
linux configuration
#!/bin/sh
#
# ~/.Xclients
#
# Executed by xdm/gdm/kdm at login
#
[[ -f ~/.extend.Xclients ]] && . ~/.extend.Xclients
@lemos1235
lemos1235 / gnome-shell.css
Created October 23, 2017 08:32
配置 ibus-rime 候选样式
/* This stylesheet is generated, DO NOT EDIT */
/***********
* Globals *
***********/
* {
transition-timing-function: cubic-bezier(0.4, 0, 0.2, 1);
transition-duration: 0.2s; }
stage {
font-family: sfns display, product sans, helvetica, open sans, source sans pro, segoe ui, ubuntu, nokia pure text, lucida grande, cantarell, sans-serif;
@lemos1235
lemos1235 / sysinit.vim
Last active August 13, 2020 01:54
neovim 的配置文件 for linux (.config/nvim/init.vim)
""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""
" PlugList "
""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""
" Specify a directory for plugins
" - For Neovim: ~/.local/share/nvim/plugged
" - Avoid using standard Vim directory names like 'plugin'
call plug#begin('~/.vim/plugged')
" Make sure you use single quotes
@lemos1235
lemos1235 / bbr.sh
Created November 30, 2017 10:52
centos 开启 bbr 加速
#!/usr/bin/env bash
#
# Auto install latest kernel for TCP BBR
#
# System Required: CentOS 6+, Debian7+, Ubuntu12+
#
# Copyright (C) 2016-2017 Teddysun <i@teddysun.com>
#
# URL: https://teddysun.com/489.html
#
@lemos1235
lemos1235 / docker-compose.yml
Last active May 27, 2020 12:28
IPsec/L2TP VPN
version: "3.2"
services:
vpn:
image: hwdsl2/ipsec-vpn-server
privileged: true
volumes:
- ./vpn.env:/opt/src/vpn.env:ro
ports:
- 500:500/udp
@lemos1235
lemos1235 / git-mirror.sh
Last active August 20, 2020 03:52
git repository mirror shell, ssh must be synced to both repositories first.
CODING_URL=git@e.coding.net:xiangzhitech/
GITLAB_URL=git@xiangzhi.iask.in:
coding_repos=(songdujingdian/sdx.git wx-open-platform/wx-api.git)
gitlab_repos=(songdujingdian/sdx.git xqnet/mp-assistant.git)
sync_branch=(dev dev)
WORK_DIR=~
if [ ! -d "repository" ]; then
mkdir repository
fi
echo `date` - Start job
@lemos1235
lemos1235 / init.lua
Last active March 7, 2021 03:45
hammerspoon config
-- 设置动画时间
hs.window.animationDuration = 0
-- 全屏显示
hs.hotkey.bind({"command", "ctrl"}, "F", function()
local win = hs.window.focusedWindow()
if (win:isFullScreen())
then
win:setFullScreen(false)
else
@lemos1235
lemos1235 / openapi.config
Last active September 20, 2023 03:26
apifox-helper
# swagger3
#Hidden
ignore=@io.swagger.v3.oas.annotations.Hidden
field.ignore=@io.swagger.v3.oas.annotations.Hidden
param.ignore=@io.swagger.v3.oas.annotations.Hidden
#Operation
method.doc=@io.swagger.v3.oas.annotations.Operation#summary
method.default.http.method=@io.swagger.v3.oas.annotations.Operation#method