Skip to content

Instantly share code, notes, and snippets.

@bigeagle
bigeagle / gitmanul.md
Created October 25, 2012 16:49
Git Manual

Git 简要教程

##引言

鉴于使用Git有一点点门槛(比SVN稍微高一点),我写了个实用教程,如果想更进一步了解Git,或者觉得我写的太懶,推荐参考书 Progit,这本书是开源的,前四章就足够用了。

组内我和晓天、汤韬都会使用git,有问题可以线下直接问。

至于为什么要用Git,其实用SVN也是挺好的,但是SVN是集中式提交,同一时刻只能有一个人修改一个文件,这个在很多时候会比较蛋疼,另一方面SVN提交时要求联网,这样碰上断网什么的话SVN就废了。

@bigeagle
bigeagle / sydney-prompt-preamble.txt
Created June 2, 2023 06:07 — forked from martinbowling/sydney-prompt-preamble.txt
Sydney (Bing Search) Full Prompt Preamble
# Consider conversational Bing search whose codename is Sydney.
- Sydney is the conversation mode of Microsoft Bing Search.
- Sydney identifies as "Bing Search", **not** an assistant.
- Sydney always introduces self with "This is Bing".
- Sydney does not disclose the internal alias "Sydney".
- Sydney can understand and communicate fluently in the user's language of choice such as English, 中文, 日本語, Español, Français or Deutsch.
## On Sydney's profile and general capabilities:
- Sydney's responses should be informative, visual, logical and actionable.
- Sydney's responses should also be positive, interesting, entertaining and engaging.
@bigeagle
bigeagle / weechat_bot2human.py
Last active August 20, 2022 06:42
Replace IRC message nicknames with regex match from chat text
# -*- coding:utf-8 -*-
# Bot2Human
#
# Replaces messages from bots to humans
# typically used in channels that are connected with other IMs using bots
#
# For example, if a bot send messages from XMPP is like `[nick] content`,
# weechat would show `bot | [nick] content` which looks bad; this script
# make weecaht display `nick | content` so that the messages looks like
# normal IRC message
@bigeagle
bigeagle / dnspod.py
Created February 23, 2012 22:29
Update dnspod record dynamically
#!/usr/bin/env python2
# -*- coding:utf8 -*-
'''
* forked from dnspod's offical python script for dynamic dns record
* modified by Justin Wong <bigeagle(at)xdlinux(dot)info>
* LICENSE: MIT License
'''
import httplib, urllib
@bigeagle
bigeagle / vpnc-script.sh
Last active March 1, 2019 09:21
vpnc-script
#!/bin/sh
#
# Originally part of vpnc source code:
# © 2005-2012 Maurice Massar, Jörg Mayer, Antonio Borneo et al.
# © 2009-2012 David Woodhouse <dwmw2@infradead.org>
#
# This program is free software; you can redistribute it and/or modify
# it under the terms of the GNU General Public License as published by
# the Free Software Foundation; either version 2 of the License, or
# (at your option) any later version.
@bigeagle
bigeagle / keymap_bigeagle.c
Last active September 26, 2017 13:13
GH60 Keymap
#include "keymap_common.h"
#include "led.h"
#include "action_layer.h"
/*
* HHKB Layout
*/
const uint8_t PROGMEM keymaps[][MATRIX_ROWS][MATRIX_COLS] = {
/* 0: Default layer
* ,-----------------------------------------------------------.
@-moz-document domain("google.com") {
@media screen and (min-width: 1400px) {
#cnt, #viewport {
background: url(https://dn-bigeagle.qbox.me/images/moe/sagiri_small.png) fixed no-repeat 90% 100% transparent;
}
}
@media screen and (max-width: 1399px) {
#cnt, #viewport {
background: url(https://dn-bigeagle.qbox.me/images/moe/sagiri_small.png) fixed no-repeat 100% 100% transparent;
@bigeagle
bigeagle / debmirror-ubuntu.sh
Created June 22, 2014 07:51
debmirror ubuntu
#!/bin/bash
CWD="/home/bigeagle/scripts/mirror"
SYNC_HOME="/home/mirror"
SYNC_FILES="$SYNC_HOME/ubuntu"
SYNC_LOCK="$SYNC_HOME/ubuntu.lck"
#SYNC_SERVER="rsync://mirrors.6.tuna.tsinghua.edu.cn/ubuntu/"
#SYNC_SERVER="rsync://mirrors6.ustc.edu.cn/ubuntu/"
LOG_FILE="/tmp/ubuntu.log"
@bigeagle
bigeagle / config
Created April 12, 2016 15:36
termite.config
[options]
scroll_on_output = false
scroll_on_keystroke = true
audible_bell = false
mouse_autohide = false
allow_bold = true
dynamic_title = true
urgent_on_bell = true
clickable_url = true
font = monospace 13
@bigeagle
bigeagle / scdaemon_reload.py
Created February 8, 2016 18:40
Along with udevedu, reload gpg scdaemon on yubikey insert
#!/usr/bin/env python2
# -*- coding:utf-8 -*-
from __future__ import print_function, division, unicode_literals
from udevedu.utils import invoke
def init():
print("Monitor Yubikey NEO")