This file contains 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
version: "3" | |
services: | |
db: | |
image: postgres:15 | |
container_name: postgresql | |
ports: | |
- "5432:5432" | |
environment: | |
POSTGRES_USER: dbuser | |
POSTGRES_PASSWORD: dbpass |
This file contains 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
/** | |
* | |
* Snippets.me TextMate Distributor replacement script | |
* | |
* TextMate Distributor is not working after TextMate 2 bundle identifier changed, | |
* the script remove all exists snippets from TextMate, then add valid snippets. | |
* | |
* @author Ethan Liu - https://creativecrap.com | |
* | |
* References: |
This file contains 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
// | |
// iTunes.swift | |
// | |
import AppKit | |
import ScriptingBridge | |
// MARK: Enum Definitions - | |
@objc enum iTunesEKnd: NSInteger { |
This file contains 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
KEYWORDS="TODO|FIXME|\?\?\?:|\!\!\!:" | |
find "${SRCROOT}" \( -name "*.h" -or -name "*.m" -or -name "*.swift" \) -print0 | \ | |
xargs -0 egrep --with-filename --line-number --only-matching "($KEYWORDS).*\$" | \ | |
perl -p -e "s/($KEYWORDS)/ warning: \$1/" |
This file contains 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
git=`sh /etc/profile; which git` | |
appBuild=`"$git" rev-list HEAD --count` | |
infoPath="${TARGET_BUILD_DIR}/${INFOPLIST_PATH}" | |
#infoPath="${PROJECT_DIR}"/"${INFOPLIST_FILE}" | |
if [ $CONFIGURATION = "Debug" ]; then | |
branchName=`"$git" rev-parse --abbrev-ref HEAD` | |
/usr/libexec/PlistBuddy -c "Set :CFBundleVersion $appBuild-$branchName" "$infoPath" | |
else | |
/usr/libexec/PlistBuddy -c "Set :CFBundleVersion $appBuild" "$infoPath" |
This file contains 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
// ==UserScript== | |
// @name PChome Loader | |
// @namespace ETHAN_PCHOME | |
// @include http://*.pchome.com.tw/* | |
// @version 1.0.0 | |
// @require http://ajax.googleapis.com/ajax/libs/jquery/1.9.0/jquery.min.js | |
// @run-at document-end | |
// @grant GM_getValue | |
// @grant GM_setValue | |
// ==/UserScript== |
This file contains 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
<?php | |
/** | |
* Convert xml exported from disqus to wordpress format for importing back to disuqs | |
* | |
* @author Ethan Liu <ethan@creativecrap.com> | |
* @copyright Creativecrap.com, 20 September, 2013 | |
**/ | |
$feed = new SimpleXMLElement(file_get_contents("src.xml")); |