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
#include <iostream> | |
#include <thread> | |
#include <chrono> | |
#include <deque> | |
using Params = std::shared_ptr<int>; | |
thread_local Params tls_params; | |
using Queue = std::deque<Params>; |
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
package main | |
import ( | |
"flag" | |
"github.com/hashicorp/yamux" | |
"io" | |
"log" | |
"net" | |
"sync" | |
) |
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
use futures::future; | |
use futures::io::{self, AsyncReadExt, AsyncWriteExt}; | |
use async_std::net::{TcpListener, TcpStream}; | |
use async_std::prelude::*; | |
use async_std::task; | |
use std::sync::Arc; | |
use yamux; | |
use clap::{Arg, App}; | |
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
server: | |
interface: 0.0.0.0 | |
access-control: 0.0.0.0/0 allow | |
verbosity: 1 | |
do-tcp: yes #enable tcp listening | |
tcp-upstream: no #chinadns not support tcp | |
module-config: "iterator" #disable dnssec validator | |
do-not-query-localhost: no #enable forward to localhost | |
forward-zone: | |
name: "." |
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
podman pull docker.io/dockcross/linux-mipsel | |
podman run -ti --rm -v `pwd`:/work docker.io/dockcross/linux-mipsel bash | |
git clone chinadns, libressl, minivutn .... | |
chinadns | |
./configure --host mipsel-linux-gnu- | |
make |
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
au FileType python setlocal tags+=~/.vim/tags/pylibs.tags |
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
archivemount mydoc.tar ~/tmp | |
fusermount -u ~/tmp | |
or | |
mc |
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
#fork from https://github.com/jaungiers/LSTM-Neural-Network-for-Time-Series-Prediction | |
#minor fix, simpler model and normalize algorithm | |
import os | |
import time | |
import warnings | |
import numpy as np | |
from numpy import newaxis | |
from keras.layers.core import Dense, Activation, Dropout | |
from keras.layers.recurrent import LSTM |
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
/opt/graphite/conf/storage-schemas.conf | |
[default] | |
pattern = .* | |
retentions = 10s:6h,10min:180d,1h:10y | |
/opt/graphite/storage/whisper/stats/gauges/..../2.wsp | |
whisper-info.py 2.wsp |
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
FROM ubuntu:14.04 | |
RUN sudo apt-get update && apt-get -y install python-dev python-pip libopenblas-dev liblapack-dev libatlas-dev libblas-dev gfortran | |
RUN sudo pip install keras | |
RUN sudo pip install --upgrade https://storage.googleapis.com/tensorflow/linux/cpu/tensorflow-1.4.0-cp27-none-linux_x86_64.whl |
NewerOlder