Skip to content

Instantly share code, notes, and snippets.

#!/usr/local/src/pyenv/shims/python3
import discord
from discord.ext import tasks
import subprocess
import json
TOKEN = 'xxxxxx'
Intents = discord.Intents.default()
[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'
sh: 3dinfo: command not found
# # # # # # # ##### ###### # # #### # #
# # ## # # # # # # # ## # # # # #
# # # # # # ## ##### ##### # # # # ######
# # # # # # ## # # # # # # # # #
# # # ## # # # # # # # ## # # # #
#### # # # # # ##### ###### # # #### # #
Version 5.1.3 Based on the Byte Magazine Unix Benchmark
- 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
object Fibonacci {
def main(args: Array[String]): Unit = {
fibonacci
}
var x=0
var y=1
def fibonacci= {
var i = 0
[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 {
#!/bin/sh
set -eu
root=/hdd2/owncloud/astel/files/tv
date=`date --date 'yesterday' +'%Y%m'`
if [ ! -e $date ]; then
mkdir $root/$date
fi
#!/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]*_/_};
#!/bin/sh
dir=./piyopiyo
new_dir=~/hogehoge
if [ ! -e "$new_dir" ]; then
mkdir $new_dir
fi
data=`ls $dir`
#!/bin/sh
if [ $$ != `pgrep -fo $0` ]; then
echo `basename $0` is already running.
exit 1
fi