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
# Sample Logstash configuration for creating a simple | |
# Beats -> Logstash -> Elasticsearch pipeline. | |
input { | |
file { | |
path => "/root/linct/access_logs-sample.csv" | |
sincedb_path => "/dev/null" | |
start_position => "beginning" | |
} | |
} |
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
REGEDIT4 | |
[HKEY_LOCAL_MACHINE\Software\Microsoft\Windows NT\CurrentVersion\FontLink\SystemLink] | |
"Arial"="wqy-microhei.ttc" | |
"Arial Black"="wqy-microhei.ttc" | |
"Arial CE,238"="wqy-microhei.ttc" | |
"Arial CYR,204"="wqy-microhei.ttc" | |
"Arial Greek,161"="wqy-microhei.ttc" | |
"Arial TUR,162"="wqy-microhei.ttc" | |
"Courier New"="wqy-microhei.ttc" |
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
import groovy.json.JsonSlurper | |
import groovy.json.JsonParserType | |
import org.sonatype.nexus.repository.storage.Asset | |
import org.sonatype.nexus.repository.storage.Query | |
import org.sonatype.nexus.repository.storage.StorageFacet | |
import java.util.concurrent.ExecutorService | |
import java.util.concurrent.Executors | |
CONDA_CLOUD_BASE_URL = "https://conda.anaconda.org" | |
NEXUS_REPOSITORY = "http://127.0.0.1:8081/repository/conda" |
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
require 'benchmark' | |
arr = (1..35).to_a.sort_by{ rand } | |
def rec_opt(arr, i) | |
if i == 0 | |
arr[0] | |
elsif i == 1 | |
[arr[0], arr[1]].max | |
else | |
val_a = rec_opt(arr, i-2) + arr[i] |