Skip to content

Instantly share code, notes, and snippets.

View seieric's full-sized avatar

Seiya Eriguchi seieric

  • Japan
  • 21:43 (UTC +09:00)
View GitHub Profile
<!DOCTYPE html>
<html lang="ja">
<head>
<meta charset="UTF-8" />
<meta name="viewport" content="width=device-width, initial-scale=1.0" />
<title>LIFE TIMER</title>
</head>
<body>
<div>
<h1>Life Timer</h1>
net = nn.Sequential(
nn.Conv2d(3, 64, kernel_size = (3,3),stride = (1,1), padding = (1,1)), # (32, 32, 64)
nn.ReLU(),
nn.BatchNorm2d(64),
nn.Conv2d(64, 64, kernel_size = (3,3),stride = (1,1), padding = (1,1)), # (32, 32, 64)
nn.ReLU(),
nn.BatchNorm2d(64),
nn.MaxPool2d(kernel_size = (2,2), stride = (2,2)), # (16, 16, 64)
@seieric
seieric / dump-server-env.php
Created June 3, 2022 08:27
Dump $_SERVER variable in PHP.
<!DOCTYPE html>
<html>
<head>
<meta charset="utf8">
<title>PHP $_SERVER dumping</title>
</head>
<body>
<table>
<?php
foreach($_SERVER as $key => $value) {
@seieric
seieric / mysql_backup.sh
Created March 24, 2020 00:04
MySQL backup script
#!/bin/sh
databases=("aaaaaaaaa" "xxxxxxx")
passwords=("qwerty" "asdfgh")
i=0
for database in ${databases[@]}
do
time=`date +%Y%m%d%H%M%S`
@seieric
seieric / chromeautologin.ps1
Last active May 9, 2023 18:54
Google Chromeに1クリックで自動的にログイン / Log in to Google Chrome automatically with only one click (PowerShell)
Add-Type -AssemblyName System.Windows.Forms;
$login_email = "example@gmail.com"; #Your login e-mail address
$passwd = "example_password"; #Your password
Start-Process chrome.exe -ArgumentList "https://accounts.google.com/signin/chrome/sync/identifier?ssp=1&continue=https%3A%2F%2Fwww.google.com%2F&flowName=GlifDesktopChromeSync" -PassThru;
Start-Sleep -s 3;
[System.Windows.Forms.SendKeys]::SendWait($login_email);
Start-Sleep -m 100;
[System.Windows.Forms.SendKeys]::SendWait("{ENTER}");