Skip to content

Instantly share code, notes, and snippets.

View keefo's full-sized avatar
📺

Xu Lian keefo

📺
View GitHub Profile
diff --git a/www/settings.py b/www/settings.py
index 406ab4f..a645f39 100644
--- a/www/settings.py
+++ b/www/settings.py
@@ -132,7 +132,7 @@ LANGUAGES = {
"hu": "Hungarian",
"id": "Bahasa Indonesia",
"it": "Italiano",
- "ja": "日本人",
+ "ja": "日本語",
@keefo
keefo / backup.sh
Created July 8, 2019 01:19 — forked from orrisroot/backup.sh
cron daily backup script
#!/bin/bash
export LANG=C
BACKUPDIR=/data/backup/daily
DATE=`date`
if test ! -d $BACKUPDIR; then
mkdir -p $BACKUPDIR
chmod 700 $BACKUPDIR
@keefo
keefo / bdd-kep.mkd
Created July 8, 2019 01:19 — forked from hh/bdd-kep.mkd
BDD Markdown KEP
@keefo
keefo / answer.md
Last active May 25, 2021 07:21 — forked from Discord-AppBot/answer.md
AppBot - a Discord bot made for staff application management within Discord.

What are your hobbies?

Table cccssssfds

Syntax Description
Header Title
Paragraph Text

11111

  • A
  • B
  1. 1
  2. 2

test

@namendes
namendes / user.java
Created April 25, 2016 07:13
beyondCow example
final Query query = getQueryManager(context).createQuery(queryString, Query.SQL);
final NodeIterator iter = query.execute().getNodes();
if (iter.hasNext()) {
 user.populate(iter.nextNode());
} else {
 LOG.error("User {} does not exist, returning object without state.", username);
}
@iwaim
iwaim / serf
Created May 9, 2014 03:04 — forked from zembutsu/serf
#!/bin/sh
#
# chkconfig: - 89 11
# description: serf daemon
# processname: serf
# config: /etc/serf.conf
# Default-Start:
# Default-Stop: 0 1 2 3 4 5 6
# Description: serf agent daemon
@keefo
keefo / gistclients.markdown
Last active December 30, 2015 19:09
Gist Clients

Gist Clients

Want to create a Gist from your editor, the command line, or the Services menu? Here's how.

Editor Support

@keefo
keefo / postweiboviamiao.m
Last active December 20, 2015 14:49
Post Weibo via Miao
if ([[NSWorkspace sharedWorkspace] absolutePathForAppBundleWithIdentifier:@"com.beyondcow.Miao"]) {
//if find Miao on this Mac then post text via Miao system service port
NSString *text = @"Hello world!";
[[NSPasteboard generalPasteboard] clearContents];
[[NSPasteboard generalPasteboard] setString:text forType:NSStringPboardType];
NSPerformService(@"Miao Post Weibo", [NSPasteboard generalPasteboard]);
}
@guymac
guymac / setcover.cpp
Last active July 22, 2021 20:54
Embeds cover art in music files (MP3, M4A/AAC, Ogg/Vorbis)
/*
Command-line application for embedding JPEG cover art in MP3, MP4 and OGG audio files.
Based on taglib-1.7 (debian libtag1-dev)
and libb64 (http://libb64.sourceforge.net/) needed for OGG Vorbis embedded cover art
g++ -I/usr/local/include/taglib -L/usr/local/lib -ltag -lb64 setcover.cpp -o setcover
g++ -I/opt/homebrew/include/taglib -L/opt/homebrew/include/b64 -ltag -lb64 setcover.cpp -o setcover
*/