Skip to content

Instantly share code, notes, and snippets.

@oott123
oott123 / pat.user.css
Created December 6, 2014 13:33
pat红绿对调.css
@namespace url(http://www.w3.org/1999/xhtml);
@-moz-document domain("www.patest.cn") {
#body .submitRes-3,.caseRes-3{
color:green
}
#body .submitRes-4,.submitRes-5,.submitRes-6,.submitRes-7,.submitRes-8,.submitRes-9,.submitRes-10,.submitRes-11,.submitRes-12,.submitRes-13,.caseRes-4,.caseRes-5,.caseRes-6,.caseRes-7,.caseRes-8,.caseRes-9,.caseRes-10,.caseRes-11,.caseRes-12,.caseRes-13{
color:red
}
@oott123
oott123 / google_chinese_webpage.user.js
Created November 15, 2014 13:10
google_chinese_webpage
// ==UserScript==
// @id google_chinese_webpage
// @name 谷歌显示“中文网页”链接
// @version 1.0
// @namespace google_chinese_webpage
// @author oott123
// @description
// @include https://www.google.*/search*
// @run-at document-end
// ==/UserScript==
@oott123
oott123 / notepad_extend.css
Last active August 29, 2015 14:07
V2EX Notepad css
@media all and (max-width:730px) {
#Main {
width: 100%;
margin: 0;
}
.box {
box-shadow: none;
border-bottom: none;
}
@oott123
oott123 / 01.makeBackups.sh
Created September 12, 2014 13:36
Full Backup Script
#!/bin/bash
Err() { echo -ne "\e[1;31m"; Log "$@" 1>&2; echo -ne "\e[0m";}
Log() { echo $(date +"[%Y-%m-%d %H:%M:%S]") $@; }
Log ====每日备份脚本开始运行====
UPLOADER_BIN="/root/auto-scripts/bpcs_uploader/bpcs" #bpcs 上传脚本路径(见下方bpcs文件)
REMOTE_DIR=$(date +"%Y%m")/$(date +"%Y%m%d") # 远端上传路径
WORKING_DIR="/root/auto-scripts/backup_daily" # 工作路径
CONFIG_DIR=$WORKING_DIR/list.d #配置文件路径
BACKUP_DIR=$WORKING_DIR/backups #本地备份路径
CURRENT_DIR=$BACKUP_DIR/$(date +"%Y%m%d")
@oott123
oott123 / nullrule.md
Last active August 29, 2015 14:03 — forked from dimpurr/nullrule.md
菊苣大触们请留我们一条生路暨渣渣人格尊严保护促进协会群规

(null) Rules

本群是一个菊苣们的技术闲聊群,聚集着一群和谐友爱齐心协力打击着吾等渣渣的菊苣们(误)。欢迎将觉得有意思的朋友也拉进来,但是务必保持小圈子的和谐友爱氛围,务必保持小圈子的和谐友爱氛围,因为很重要所以说两遍 ……

总之就是要保持聊天记录河蟹

  1. 尊重他人也尊重自己的智商。
  2. 鼓励讨论,不鼓励争论与辩论——即在主观问题上以驳倒对方为目的的发言。
  3. 考虑到纯文本的优越性,语音不被鼓励、尤其是可能令人反感的声音。
// ==UserScript==
// @id powerful-civitas
// @name 独间辅助 - c世界居民必备
// @version 1.0
// @namespace oott123_powerful_civitas
// @author oott123
// @description
// @include http://*.soobb.com/*
// @run-at document-end
// ==/UserScript==
@oott123
oott123 / civitas_auto_read_notifications.user.js
Created March 26, 2014 15:19
civitas 通知自动已读
// ==UserScript==
// @id civitas_auto_read_notifications
// @name civitas 通知自动已读
// @version 1.0
// @namespace oott123_carn
// @author oott123
// @description
// @include http://civitas.soobb.com/Mine/Notifications/
// @run-at window-load
// ==/UserScript==
@oott123
oott123 / test.json
Last active December 21, 2015 12:39
test
{"log":"test message log","message":"This is the msg."}
@oott123
oott123 / getcard.js
Created August 14, 2013 08:24
ptbus 自动领卡脚本
var cardid,intid;
function getcard(){
jQuery.get('http://bbs.ptbus.com/plugin.php?id=gamecard:apply&typeid='+cardid+'&actiontype=1&infloat=yes&handlekey=lin&inajax=1',(function(data){
var a = jQuery(jQuery(data).text()).find('.alert_error').text();
data = '<div>'+jQuery(data).text();
var b = jQuery(data).find('.f1').text();
var c = jQuery(data).find('.f5').text();
if(a){
console.log(a);
}else{
@oott123
oott123 / startfalcon.sh
Last active December 20, 2015 18:08
falcon autostart
#!/bin/sh
while true
do
sleep 1
/root/falcon/falcon-master/Release/falcon start >>/root/falcon.log 2>&1
done