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
| gitlab: | |
| image: sameersbn/gitlab:7.5.1 | |
| ports: | |
| - "10080:80" | |
| - "10022:22" | |
| environment: | |
| - DB_USER=gitlab | |
| - DB_PASS=your_password | |
| - DB_NAME=gitlabhq_production | |
| - DB_HOST=your_host_ip |
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
| import sys | |
| from com.android.monkeyrunner import MonkeyRunner | |
| from com.android.monkeyrunner import MonkeyDevice | |
| from com.android.monkeyrunner.easy import EasyMonkeyDevice,By | |
| device=MonkeyRunner.waitForConnection(10) | |
| if device: | |
| print("Connect device successful!") | |
| else: | |
| print("Connect device failed!") |
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
| import sys | |
| # put jar into sys.path | |
| sys.path.append(os.path.join("your_path", "androidviewclient-2.3.25.jar")) | |
| from com.dtmilano.android.viewclient import ViewClient | |
| # if you connect multiple device, you can specify serialno | |
| # you can get serialno via 'adb devices' | |
| device, serialno = ViewClient.connectToDeviceOrExit( |
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
| // If you cannot connect with SQL server(express), you can check here: http://stackoverflow.com/questions/10522120/connecting-to-local-ms-sql-server | |
| package com.example.jtdsexample; | |
| import java.sql.Connection; | |
| import java.sql.DriverManager; | |
| import java.sql.ResultSet; | |
| import java.sql.SQLException; | |
| public class Main { | |
| public static void main(String[] args) { |
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
| """ | |
| Dependencies: | |
| * requests | |
| * pyquery | |
| ChangeLog: | |
| * 2015/1/5 Check the length of returned proxy. | |
| * 2014/12/27 Add seed() make sure randomize. Rename main to get_proxy_from_cnproxy for better using. | |
| * 2014/12/27 Initial. | |
| """ | |
| from __future__ import print_function, unicode_literals |
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
| ; Execute command and read stdout. | |
| CuteRun(c) { | |
| full_command := comspec . " /c """ . c . """" | |
| shell := comobjcreate("wscript.shell") | |
| exec := (shell.exec(full_command)) | |
| stdout := exec.stdout.readall() | |
| Return stdout | |
| } | |
| #P:: |
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
| #!/usr/bin/env python3 | |
| # -*- coding: utf8 -*- | |
| import sys, os | |
| import sqlite3 | |
| import urllib.request | |
| #import requests | |
| import subprocess | |
| from urwid import * | |
| import pdb |
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
| [program:bubbleupnpserver] | |
| command=/opt/BubbleUPnPServer/launch.sh | |
| directory=/opt/BubbleUPnPServer | |
| autostart=true | |
| user=your_user |
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
| ######################################################################## | |
| # | |
| # zxing.py -- a quick and dirty wrapper for zxing for python | |
| # | |
| # this allows you to send images and get back data from the ZXing | |
| # library: http://code.google.com/p/zxing/ | |
| # | |
| # by default, it will expect to be run from the zxing source code directory | |
| # otherwise you must specify the location as a parameter to the constructor | |
| # |
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
| diff --git a/metadata.c b/metadata.c | |
| index f3987c6..6012c06 100644 | |
| --- a/metadata.c | |
| +++ b/metadata.c | |
| @@ -841,6 +841,8 @@ GetVideoMetadata(const char *path, char *name) | |
| xasprintf(&m.mime, "video/x-matroska"); | |
| else if( strcmp(ctx->iformat->name, "flv") == 0 ) | |
| xasprintf(&m.mime, "video/x-flv"); | |
| + else if( strcmp(ctx->iformat->name, "rm") == 0 ) | |
| + asprintf(&m.mime, "video/x-pn-realvideo"); |