This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/bash | |
# This script sends a message to a Discord webhook or edits an existing message based on whether a local file containing the message ID exists. | |
# Requirements: | |
# - DISCORD_WEBHOOK_URL environment variable must be set to the Discord webhook URL. | |
# - jq must be installed for parsing JSON responses. | |
# Usage: | |
# export DISCORD_WEBHOOK_URL="https://discord.com/api/webhooks/xxx/yyy" |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# auto config GOPATH. | |
# /home/robin/workspace/src/github.com/ | |
export _OLDGOPATH=${GOPATH} | |
go-auto-set-gopath() { | |
curdir=`pwd` | |
gopath="" | |
array=(${(s:/:)curdir}) | |
for ele in "${array[@]}" ; do | |
if [ "${ele}" = "src" ] ; then | |
break |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// The following is what I want. | |
(function($, Animation, undefined) { | |
/** | |
* @desc Set visiblity to visible. | |
*/ | |
$.fn.visible = function() { | |
this.css('visibility', 'visible'); | |
}; |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
function zh_cn_language_pack_backend_style_modify() { | |
$styleUrl = WP_CONTENT_URL . '/' . ZH_CN_PACK_LANGUAGE_DIR_TO_CONTENT . 'zh_CN-dashboard.css'; | |
$styleFile = WP_CONTENT_DIR . '/' . ZH_CN_PACK_LANGUAGE_DIR_TO_CONTENT . 'zh_CN-dashboard.css'; | |
if ( file_exists( $styleFile ) ) { | |
+ if ( 0 === strpos($styleUrl, 'http') && is_ssl() ) | |
+ $styleUrl = str_replace( 'http://', 'https://', $styleUrl ); | |
wp_register_style( 'zh-cn-pack-style-dashboard', $styleUrl, array(), '1.0'); | |
wp_enqueue_style( 'zh-cn-pack-style-dashboard' ); | |
} | |
} |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
From 185ff4a2980137182a8bd2cbaf72973769cbd54d Mon Sep 17 00:00:00 2001 | |
From: robin <[email protected]> | |
Date: Thu, 16 Jun 2011 00:10:24 +0800 | |
Subject: [PATCH] add CONNECT bypass NextProxy support. | |
--- | |
src/http.c | 192 +++++++++++++++++++++++++++++++-------------------------- | |
src/http.h | 7 +- | |
src/ziproxy.c | 35 ++++++----- | |
3 files changed, 127 insertions(+), 107 deletions(-) |