This file contains hidden or 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
// ==UserScript== | |
// @name YouTube Watch | |
// @namespace http://tampermonkey.net/ | |
// @version 0.1 | |
// @description translate to Japanease automatically. | |
// @author John Doe | |
// @match https://www.youtube.com/watch* | |
// @require https://ajax.googleapis.com/ajax/libs/jquery/3.3.1/jquery.min.js | |
// @downloadURL https://gist.github.com/GitHub30/6e2cfc8245b4780dfa1b2355f3663e7b/raw/bdae666e5a11127d24b91770e01435978de81973/TranslateToJapaneseOnYouTube.user.js | |
// @grant none |
This file contains hidden or 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
// Please run on GCP Console | |
async function checkProjectId(projectId) { | |
return await fetch('https://console.cloud.google.com/m/projectidsuggestion?organizationId=0&pidAvailable=' + projectId, { | |
credentials: 'include' | |
}).then(r => r.text()).then(text => JSON.parse(text.slice(5))) | |
} | |
for(var i = 0; i<1000; i++){ | |
const projectId = 'project' + i; | |
const data = await checkProjectId(projectId); |
This file contains hidden or 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/bin/env bash | |
cd "$(dirname "$0")" | |
fileId='1Q8soWRA8r0OhGP1PUVm_wO9Nf6JR7L9u' | |
filename=$(gdrive info $fileId | grep -Po '(?<=^Name: ).*') | |
gdrive download --force $fileId | |
observation="inotifywait -e MOVE_SELF $filename" |
This file contains hidden or 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
# Use root/example as user/password credentials | |
version: '3.1' | |
services: | |
db: | |
image: mysql | |
restart: always | |
ports: | |
- 3306:3306 |
This file contains hidden or 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
convert input.jpg -resize 128x128 output.jpg |
This file contains hidden or 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
copy(chartData.slice(-365).map(d => ({x: d.date.replace(/\//g, '-'), y: d.aveprice}))) |
This file contains hidden or 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
<script src="https://cdn.jsdelivr.net/npm/[email protected]/lodash.min.js"></script> | |
<script> | |
var permissions = []; | |
for(var i=0; i<=11; i++){ | |
permissions.push(Number('0b1' + '0'.repeat(i))); | |
} | |
console.info(_.sum(permissions)); | |
</script> |
This file contains hidden or 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
version: "2" | |
services: | |
wordpress: | |
image: wordpress:latest | |
ports: | |
- "8080:80" | |
depends_on: | |
- db | |
environment: | |
WORDPRESS_DB_HOST: "db:3306" |
This file contains hidden or 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
/home/inoue/PycharmProjects/auto-update-reservation/venv/bin/python /home/inoue/PycharmProjects/auto-update-reservation/main.py | |
90 | |
90 | |
90 | |
90 | |
90 | |
90 | |
90 | |
90 | |
90 |
This file contains hidden or 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
docker run --name some-mysql -p 3306:3306 -e MYSQL_ALLOW_EMPTY_PASSWORD=yes -d mysql --default-authentication-plugin=mysql_native_password | |
docker exec some-mysql mysql --version | |
docker start some-mysql | |
docker stop some-mysql |