Skip to content

Instantly share code, notes, and snippets.

ASTEL astail

Block or report user

Report or block astail

Hide content and notifications from this user.

Learn more about blocking users

Contact Support about this user’s behavior.

Learn more about reporting abuse

Report abuse
View GitHub Profile
View UnixBench-Ryzen-7-3700X
[root@3700x UnixBench]# ./Run
make all
make[1]: Entering directory `/root/UnixBench'
Checking distribution of files
./pgms exists
./src exists
./testdir exists
./tmp exists
./results exists
make[1]: Leaving directory `/root/UnixBench'
View UnixBench-athlon-220GE
sh: 3dinfo: command not found
# # # # # # # ##### ###### # # #### # #
# # ## # # # # # # # ## # # # # #
# # # # # # ## ##### ##### # # # # ######
# # # # # # ## # # # # # # # # #
# # # ## # # # # # # # ## # # # #
#### # # # # # ##### ###### # # #### # #
Version 5.1.3 Based on the Byte Magazine Unix Benchmark
View gist:165ed77235248d2c46e917db6bb3e6d3
- name: git clone nginx-upload-module
git: repo=git@github.com:vkholodkov/nginx-upload-module.git dest={{ tmp }}/nginx-upload-module accept_hostkey=yes version=2.2
become: false
- name: copy ngx_http_upload_module.c
copy: src=ngx_http_upload_module.c dest={{ tmp }}/nginx-upload-module/ngx_http_upload_module.c
become: false
#https://github.com/vkholodkov/nginx-upload-module/pull/80
- name: git clone nginx
View Fibonacci
object Fibonacci {
def main(args: Array[String]): Unit = {
fibonacci
}
var x=0
var y=1
def fibonacci= {
var i = 0
View FizzBuzz
[astel@MacBook-Pro ] $ cat FizzBuzz.scala
val x=10
if (x%3 == 0 && x%5 == 0) {
println("FizzBuzz")
} else if (x%3 == 0) {
println("Fizz")
} else if (x%5 == 0) {
println("Buzz")
} else {
View move_dir.sh
#!/bin/sh
set -eu
root=/hdd2/owncloud/astel/files/tv
date=`date --date 'yesterday' +'%Y%m'`
if [ ! -e $date ]; then
mkdir $root/$date
fi
View rename.sh
#!/bin/sh
for f in GR*;
do
mv $f ${f/GR[0-9][0-9]_/''};
done
for f in 2015[0-9]*;
do
mv $f ${f/_*[0-9]*_/_};
View copy_dir_name.sh
#!/bin/sh
dir=./piyopiyo
new_dir=~/hogehoge
if [ ! -e "$new_dir" ]; then
mkdir $new_dir
fi
data=`ls $dir`
View 重複起動防止.sh
#!/bin/sh
if [ $$ != `pgrep -fo $0` ]; then
echo `basename $0` is already running.
exit 1
fi
View encode.sh
#!/bin/sh
#メインPCに動画を送ってエンコードさせるスクリプト。
#video_dirに保存している.ts動画を全てエンコードする。
#メインPCがついていなかった場合、WOLで起動させる。
#エンコードした動画名はDBにinsertする。
#エンコードした動画はowncloudのディレクトリに移動させる。
#ssh i7でメインpcにsshできるようにしておく。
#DB設定などは最終行に記述。
You can’t perform that action at this time.