Skip to content

Instantly share code, notes, and snippets.

View qrtt1's full-sized avatar
🎯
Focusing

Ching Yi, Chan qrtt1

🎯
Focusing
View GitHub Profile
批踢踢實業坊›看板 Soft_Job關於我們聯絡資訊
返回看板分享
作者egist (Egist)
看板Soft_Job
標題[徵才] iOS/Android Developer
時間Fri Sep 19 16:42:19 2014
我們是做 https://hooloop.com 的。
@qrtt1
qrtt1 / gen_google_compute_engine_auth_file.py
Created September 30, 2014 12:16
產生 google compute engine OAuth 認證檔的小幫手
import optparse
from oauth2client.client import flow_from_clientsecrets
from oauth2client.file import Storage
OAUTH_SCOPE = 'https://www.googleapis.com/auth/compute'
REDIRECT_URI = 'urn:ietf:wg:oauth:2.0:oob'
def gen_credentials_file(json_secret, credentials_file):
flow = flow_from_clientsecrets(
#!/bin/bash
#
# tomcat6 This shell script takes care of starting and stopping Tomcat
#
# chkconfig: - 80 20
#
### BEGIN INIT INFO
# Provides: tomcat6
# Required-Start: $network $syslog
# Required-Stop: $network $syslog
#!/bin/sh
# Licensed to the Apache Software Foundation (ASF) under one or more
# contributor license agreements. See the NOTICE file distributed with
# this work for additional information regarding copyright ownership.
# The ASF licenses this file to You under the Apache License, Version 2.0
# (the "License"); you may not use this file except in compliance with
# the License. You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
@qrtt1
qrtt1 / hosts.j2
Last active December 23, 2015 16:37
update hosts file by Ansible
127.0.0.1 localhost localhost.localdomain localhost4 localhost4.localdomain4
::1 localhost localhost.localdomain localhost6 localhost6.localdomain6
# variables reflection by setup module
{{nat_ip_address}} {{ansible_fqdn}} {{ansible_hostname}}
# other IP Mappings
%{
#include "parser.h"
%}
%%
[ \t\n\r]+ {return ACTION_SKIP;}
"PLAY" {return ACTION_PLAY;}
"STOP" {return ACTION_STOP;}
"SEEK" {return ACTION_SEEK;}
import org.apache.commons.lang.StringUtils;
import org.apache.spark.SparkConf;
import org.apache.spark.api.java.JavaPairRDD;
import org.apache.spark.api.java.JavaSparkContext;
import org.apache.spark.api.java.function.Function;
import org.apache.spark.api.java.function.Function2;
import org.apache.spark.api.java.function.PairFunction;
import scala.Tuple2;

檢視基本資料

qty:JCConf qrtt1$ ffprobe 20141115153142.MTS
ffprobe version 0.9.4, Copyright (c) 2007-2014 the FFmpeg developers
  built on Oct 21 2014 20:23:25 with clang 6.0 (clang-600.0.51)
  configuration: --prefix=/opt/muzee --disable-yasm --disable-doc --disable-avfilter
  libavutil    51. 32. 0 / 51. 32. 0
  libavcodec   53. 42. 4 / 53. 42. 4
 libavformat 53. 24. 2 / 53. 24. 2
批踢踢實業坊›看板 Soft_Job關於我們聯絡資訊
返回看板分享
作者chaming (無與倫比的熱情)
看板Soft_Job
標題[徵才] 年薪百萬徵後端工程師/Android高手
時間Tue Nov 25 16:26:19 2014
年薪百萬徵Backend Developer/Android高手
#!/usr/bin/python
import json
import sys
inventory = {}
inventory['www'] = {}
inventory['www']['hosts'] = ['aaa.bbb.ccc.ddd']
if "--host" in sys.argv: