Skip to content

Instantly share code, notes, and snippets.

View zxs-1024's full-sized avatar
🌴
I may be slow to respond.

张小手 zxs-1024

🌴
I may be slow to respond.
  • null
  • 上海
View GitHub Profile
@yzyzsun
yzyzsun / shadowsocks-libev.sh
Last active August 16, 2023 05:38
shadowsocks-libev server setup script on CentOS 7
cd /etc/yum.repos.d
curl -O https://copr.fedorainfracloud.org/coprs/librehat/shadowsocks/repo/epel-7/librehat-shadowsocks-epel-7.repo
yum -y install shadowsocks-libev
setcap CAP_NET_BIND_SERVICE=+eip /usr/bin/ss-server
cat > /etc/shadowsocks-libev/config.json << 'EOF'
{
"server": "0.0.0.0",
"server_port": 443,
"password": "p@$$w0rd",
"method": "aes-128-gcm"
@buchiya4th
buchiya4th / stylelint.config.js
Last active February 15, 2024 21:29
stylelintの設定ファイル
module.exports = {
plugins: ['stylelint-order', 'stylelint-scss'],
rules: {
indentation: 2,
'color-hex-case': 'lower', // hex値は小文字指定(大文字を禁止)
'color-hex-length': 'short', // hex値は短い表記(冗長な表記は禁止)
'color-named': 'never', // 名前付きカラー指定を禁止
'color-no-invalid-hex': true, // 無効な16進数の色指定を禁止
'function-comma-space-after': 'always-single-line', // 単一行のカンマ後には空白が必要
'function-comma-space-before': 'never', // カンマ前の空白を禁止
@shelldandy
shelldandy / App.js
Created October 17, 2017 19:08
nprogress with react-router in create-react-app
import React from 'react'
import { BrowserRouter as Router, Switch } from 'react-router-dom'
import routes from './routes'
import FancyRoute from './components/tools/FancyRoute'
const App = props =>
<Router>
<Switch>
{routes.map((route, i) =>
<FancyRoute key={i} {...route} />