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
package main | |
import ( | |
"context" | |
"fmt" | |
"sync" | |
"google.golang.org/grpc" | |
"github.com/coreos/etcd/clientv3" |
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
package main | |
import ( | |
"fmt" | |
"github.com/golang/protobuf/proto" | |
google_protobuf "github.com/golang/protobuf/protoc-gen-go/descriptor" | |
"io/ioutil" | |
"os" | |
) |
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
#!/bin/sh | |
ansible-playbook \ | |
-i .vagrant/provisioners/ansible/inventory/vagrant_ansible_inventory \ | |
--private-key=~/.vagrant.d/insecure_private_key \ | |
-u vagrant \ | |
$1 |
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
package com.sogou.game.dp.adminweb.config; | |
import net.erdfelt.android.apk.AndroidApk; | |
import net.erdfelt.android.apk.io.IO; | |
import net.erdfelt.android.apk.xml.Attribute; | |
import net.erdfelt.android.apk.xml.BinaryXmlListener; | |
import net.erdfelt.android.apk.xml.BinaryXmlParser; | |
import java.io.FileNotFoundException; | |
import java.io.IOException; |
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
[ | |
{ | |
"target": "authtoken", | |
"datapoints": [ | |
[23.309999999999999, 1392627600], | |
[23.34, 1392627960], | |
[24.449999999999999, 1392628320], | |
[25.23, 1392628680], | |
[25.07, 1392629040], | |
[24.960000000000001, 1392629400], |
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
wget ftp://rpmfind.net/linux/epel/6/x86_64/logcheck-1.3.13-5.el6.noarch.rpm | |
# or for el5 | |
#wget ftp://195.220.108.108/linux/epel/5/x86_64/logcheck-1.3.13-6.el5.noarch.rpm | |
wget ftp://rpmfind.net/linux/epel/5/x86_64/lockfile-progs-0.1.15-2.el5.x86_64.rpm | |
wget ftp://rpmfind.net/linux/epel/5/x86_64/liblockfile-1.08-9.el5.x86_64.rpm | |
wget ftp://rpmfind.net/linux/centos/5.10/os/x86_64/CentOS/perl-5.8.8-41.el5.x86_64.rpm | |
wget ftp://rpmfind.net/linux/epel/5/x86_64/perl-Proc-WaitStat-1.00-2.el5.noarch.rpm |
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
U=$(echo "$1" | cut -d@ -f1 | cut -d: -f1) | |
HOSTNAME=$(echo "$1" | cut -d@ -f2 | cut -d: -f1) | |
PORT=$(echo "$1" | cut -d: -f2) | |
if [[ $U = $1 ]]; then #no user specified | |
U=$(USER) | |
fi | |
if [[ $PORT = $1 ]]; then #no port specified | |
PORT="22" | |
fi |
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
<?xml version="1.0" encoding="UTF-8"?> | |
<scheme name="SonOfObsidian" version="1" parent_scheme="Default"> | |
<option name="LINE_SPACING" value="1.0" /> | |
<option name="EDITOR_FONT_SIZE" value="16" /> | |
<option name="CONSOLE_FONT_NAME" value="Monospaced" /> | |
<option name="CONSOLE_FONT_SIZE" value="12" /> | |
<option name="EDITOR_FONT_NAME" value="Consolas" /> | |
<colors> | |
<option name="CARET_COLOR" value="ffffff" /> | |
<option name="CARET_ROW_COLOR" value="333333" /> |
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
package snip; | |
import java.io.EOFException; | |
import java.util.Arrays; | |
import java.util.PriorityQueue; | |
/** | |
* User: zhaoyao | |
* Date: 1/5/13 | |
* Time: 10:53 PM |
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 java.util.*; | |
/** | |
* User: zhaoyao | |
* Date: 11/5/12 | |
* Time: 11:56 PM | |
*/ | |
public class Typoglycemia { | |
private static final Random rnd = new Random(); |
NewerOlder