Skip to content

Instantly share code, notes, and snippets.

@zqigolden
zqigolden / local_edit.sh
Created October 10, 2020 04:50
[local edit] edit ssh files in local vim. use this command in ssh, and paste to local terminal #bash
target_file=$1
IP=$(hostname -I | awk '{print $1}')
echo "vim \"scp://${USER}@${IP}/$(realpath ${target_file})\"" | ~/.iterm2/it2copy
@zqigolden
zqigolden / hdfs.sh
Last active July 8, 2020 10:29
[hdfs] classical hdfs, save to ~/bin/hdfs and chmod +x ~/bin/hdfs
#!/bin/bash
#set -x
##can set user here
#USER=qzhu
which hdfscli &> /dev/null
test $? == 0 || pip3 install aibee_hdfs -I -i http://repo.aibee.cn/repository/pypi/simple --trusted-host repo.aibee.cn
test -f ~/${USER}.keytab || (cd ~ && create_keytab $USER)
hdfscli initkrb5 -k ~/${USER}.keytab ${USER}
@zqigolden
zqigolden / quality_mobile_branch.nobn.prototxt
Created February 27, 2020 11:24
[binary classfication prototxt] #caffe
name: "quality_mobile_branch"
input: "blob1"
input_dim: 1
input_dim: 3
input_dim: 96
input_dim: 96
layer {
name: "conv1"
type: "Convolution"
bottom: "blob1"
@zqigolden
zqigolden / aa.js
Created February 27, 2020 07:34
[public test]public
test