Skip to content

Instantly share code, notes, and snippets.

View test_cos.py
#!/usr/bin/env python3.7
# coding: utf-8
import boto3
from botocore.config import Config
s3conn = boto3.resource(
's3',
region_name='ap-beijing',
endpoint_url='https://cos.ap-beijing.myqcloud.com',
View 📊 Weekly development breakdown
Go 3 hrs 17 mins ██████▍░░░░░░░░░░░░░░ 30.9%
ERB 2 hrs 41 mins █████▎░░░░░░░░░░░░░░░ 25.3%
Python 2 hrs 30 mins ████▉░░░░░░░░░░░░░░░░ 23.5%
Puppet 1 hr 11 mins ██▎░░░░░░░░░░░░░░░░░░ 11.2%
Vue.js 34 mins █▏░░░░░░░░░░░░░░░░░░░ 5.4%
@everpcpc
everpcpc / vscode.json
Created Apr 24, 2018
visual studio code settings
View vscode.json
// Place your settings in this file to overwrite the default settings
{
"editor.fontSize": 12,
"editor.fontFamily": "Monaco, monospace",
"workbench.colorTheme": "Palenight Theme",
"window.zoomLevel": -1,
"editor.wordWrap": "on",
"python.linting.pylintEnabled": false,
"python.linting.flake8Enabled": true,
"python.linting.flake8Args": [
View .vimrc
filetype off " required
" set the runtime path to include Vundle and initialize
set rtp+=~/.vim/bundle/Vundle.vim
call vundle#begin()
" alternatively, pass a path where Vundle should install plugins
"call vundle#begin('~/some/path/here')
" let Vundle manage Vundle, required
View Preferences.sublime-settings
{
"auto_indent": true,
"color_scheme": "Packages/Theme - Flatland/Flatland Monokai.tmTheme",
"draw_white_space": "all",
"flatland_sidebar_tree_xsmall": false,
"flatland_square_tabs": true,
"highlight_line": true,
"ignored_packages":
[
"Vintage"
@everpcpc
everpcpc / vimrc.local
Last active Dec 25, 2015
vim configuration
View vimrc.local
set nocompatible
set mouse=a
set number
set expandtab
set tabstop=4
set softtabstop=4
set shiftwidth=4
set ruler
set hlsearch
@everpcpc
everpcpc / .bashrc
Last active Dec 25, 2015
bash configuration
View .bashrc
#all
alias ll='ls -lh'
alias la='ls -A'
alias l='ls -CF'
alias cleanlatex="rm *.out *.log *.aux"
#mac
export CLICOLOR=1
export LSCOLORS=gxfxaxdxcxegedabagacad
@everpcpc
everpcpc / autoproxy.pac
Last active Mar 24, 2021
autoproxy.pac
View autoproxy.pac
function FindProxyForURL(url, host) {
if ( host=='twitter.com'
||host=='facebook.com'
||host=='wordpress.com'
||host=='bit.ly'
||host=='t.co'
||dnsDomainIs(host,'.twitter.com')
||dnsDomainIs(host,'.facebook.com')
||dnsDomainIs(host,'.akamaihd.net')
||dnsDomainIs(host,'.youtube.com')