Skip to content

Instantly share code, notes, and snippets.

View bekcpear's full-sized avatar
:octocat:

Ryan Tsien bekcpear

:octocat:
View GitHub Profile
@bekcpear
bekcpear / ss_att2.py
Created August 21, 2016 07:49
Shadowsocks attack
#!/usr/bin/env python
#-*- coding: utf-8 -*-
'''
Copyleft (c) 2015 breakwa11
https://github.com/breakwa11/shadowsocks-rss
'''
import logging
import socket
=================================
= media-sound/netease-cloud-music-1.0.0
=================================
* dev-libs/expat
`-- /etc/portage/package.use/32mesa
`-- >=dev-libs/expat-2.1.0-r5 abi_x86_32
* dev-qt/qtcore
`-- /etc/portage/package.use/owncloud
`-- >=dev-qt/qtcore-5.5.1-r1 icu
#!/usr/bin/env python
"""Custom reST_ directive for plantuml_ integration.
Adapted from ditaa_rst plugin.
.. _reST: http://docutils.sourceforge.net/rst.html
.. _plantuml: http://plantuml.sourceforge.net/
"""
from __future__ import unicode_literals
import sys
upstream php-handler {
# server 127.0.0.1:9000;
server unix:/path/to/your/php-fpm.socket;
}
server {
listen 80;
listen [::]:80;
server_name example.com;
if ($host !~ 'example\.com$'){
OwnCloud
Required
PHP >= 5.6
Extensions
(d) means that this extension is enabled by default
(d) --disable-ctype Ctype For character type checking

Keybase proof

I hereby claim:

  • I am Bekcpear on github.
  • I am bekcpear (https://keybase.io/bekcpear) on keybase.
  • I have a public key whose fingerprint is E515 736F 3D15 0DB3 3615 8399 9B53 A3F5 2D72 59DA

To claim this, I am signing this object:

@bekcpear
bekcpear / lessnoise.vim
Last active December 2, 2020 16:09
a vim-airline theme
" vim: et:ts=2:sts:sw=2
" Author: @bekcpear
" https://gist.github.com/bekcpear/41fb86e0817dfb6620b757daf1e2aab0
scriptencoding utf-8
let g:airline#themes#lessnoise#palette = {}
""
" Statusline sections: |a|b|c -- x|y|z|others
" COLOR DEFINE
#!/usr/bin/env bash
# author: @Bekcpear
#
set -e
LISTFILE="${HOME}/.gnupg/gentooDevKeysLists/list"
PROXYC="proxychains -q "
if [[ "${1}" != "updateList" ]]; then
source "${LISTFILE}"
@bekcpear
bekcpear / vimcnpaste.sh
Last active April 17, 2021 13:51
This is a script that can get a url related to the uploaded image/text from an implementation of vim-cn pastebin
#!/bin/bash
# author: @Bekcpear <i@bitbili.net>
# This is a script that can get a url related to the uploaded image/text from an implementation of vim-cn pastebin"
#
set -e
#vim-cn style pastebin urls
uptexturl='https://cfp.vim-cn.com/'
upimageurl='https://img.vim-cn.com/'
# @bekcpear
name: repoman
on:
pull_request_target:
branches:
- master
paths-ignore:
- '.github/**'
- 'metadata/**'