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