Skip to content

Instantly share code, notes, and snippets.

View tsaeki-7bk's full-sized avatar
😀

TsuguruSaeki tsaeki-7bk

😀
View GitHub Profile
@mrbar42
mrbar42 / README.md
Last active March 1, 2025 00:34
Install nodenv on Ubuntu

Installing nodenv on ubuntu

nodenv is a great tool, but its installation on Ubuntu is never smooth for me. Here are instructions to install nodenv along with node-build and node-aliases plugins.

ℹ️ note - nodenv recommands updating the PATH though not all programs run in a shell. i prefer adding symlinks to the nodenv binary and shims to make it available everywhere.

The script can be pasted into a terminal as is

# install the base app
@andrew-kelleher
andrew-kelleher / run.ps1
Last active April 23, 2024 12:20
Azure Function App PowerShell script to backup Blob storage to an Azure File share
# Input bindings are passed in via param block.
param($Timer)
# Define variables
$SrcStgAccURI = "https://sourceblobstg.blob.core.windows.net/"
$SrcBlobContainer = "myblobs"
$SrcSASToken = SAS_TOKEN_SOURCE
$SrcFullPath = "$($SrcStgAccURI)$($SrcBlobContainer)?$($SrcSASToken)"
$DstStgAccURI = "https://destinationfilestg.file.core.windows.net/"

logging入門

長すぎにならない程度に使い方をまとめてみる。

loggingの使い方

ライブラリの利用者

既に存在するアプリを実行するファイルの場合

@barbietunnie
barbietunnie / laravel-production-permissions.md
Last active June 19, 2023 06:04
MySQL Database User GRANT permissions for Laravel

MySQL Database User GRANT permissions for Laravel

For security reasons, you should probably grant select, delete, update and insert to your app user in production.

Have another user who can do alter, create, drop and index when running migrations.

If you run seeders in production, also grant select, insert and references to the migration user.

Yeah, 2 users, migrations are not always run in production everyday and this keeps more secure your database.

@cou929
cou929 / load.html
Last active December 22, 2022 09:01
画像の読み込みにタイムアウトを付けたいけど XHR じゃないと厳しそう
<html>
<body>
<script type="text/javascript">
var blackhole_image_url = 'http://blackhole.webpagetest.org/',
wait_interval = 3000;
// 3秒じゃタイムアウトされない
loadWithImageElement(blackhole_image_url + 'element.png');
// 3秒じゃタイムアウトされない