Skip to content

Instantly share code, notes, and snippets.

@Ovis
Ovis / MqttHomeClient.service
Created May 5, 2020 05:49
MQTTClient Systemd
[Unit]
Description=MQTT Home Client
DefaultDependencies=no
ConditionPathExists=[MQTTクライアントのディレクトリパス]
Wants=network.target
After=network.target
[Service]
Type=oneshot
@Ovis
Ovis / appsettings.Development.json
Created May 3, 2020 04:11
localhost以外でのASP.NETデバッグ
{
"urls": "http://*:5000;https://*:5001",
"Logging": {
"LogLevel": {
"Default": "Information",
"Microsoft": "Warning",
"Microsoft.Hosting.Lifetime": "Information"
}
}
}
@Ovis
Ovis / launchSettings.json
Last active May 3, 2020 04:11
localhost以外でのASP.NET Coreデバッグ
{
"iisSettings": {
"windowsAuthentication": false,
"anonymousAuthentication": true,
"iisExpress": {
"applicationUrl": "http://localhost:50184",
"sslPort": 44314
}
},
"profiles": {
@Ovis
Ovis / checkMultiplexSubmit.js
Created March 27, 2020 15:54
jQuery Validation対応多重送信防止処理
var isSubmit = false;
//jQuery Validationの読み込み確認
if (typeof jQuery != "undefined" && typeof $.validator != "undefined") {
$.validator.unobtrusive.options = {
errorPlacement: function ($error, $element) {
if ($error.text().length === 0) {
return true;
} else {
isSubmit = false;
@Ovis
Ovis / Parcel_OK.js
Created March 27, 2020 15:30
Parcelを通しても呼べるように変更したJavaScriptファイル
window.hogehogeMethod = hogehogeMethod;
function hogehogeMethod() {
return "fugafuga";
}
@Ovis
Ovis / AfterParcel.js
Created March 27, 2020 15:27
Parcelを通した後のJavaScriptファイルの中身
// modules are defined as an array
// [ module function, map of requires ]
//
// map of requires is short require name -> numeric require
//
// anything defined in a previous bundle is accessed via the
// orig method which is the require for previous bundles
parcelRequire = (function (modules, cache, entry, globalName) {
// Save the require from previous bundle to this closure if any
var previousRequire = typeof parcelRequire === 'function' && parcelRequire;
@Ovis
Ovis / beforeParcel.js
Created March 27, 2020 15:22
Parcelを通す前のJavaScriptファイルの中身
function hogehogeMethod() {
return "fugafuga";
}
@Ovis
Ovis / gist:babfe15d3b8ca3046fe53132868ec884
Created March 22, 2020 17:09
RaspberryPi4_cmdline.txt_new
console=serial0,115200 console=tty1 root=PARTUUID=0dac4cfa-ecf8-4927-9c86-b8b30e54ddb9 rootfstype=ext4 elevator=deadline fsck.re$
@Ovis
Ovis / gist:891d0031c93a296e019b1da7e7b9cbb6
Created March 22, 2020 17:08
RaspberryPi4_cmdline.txt_old
console=serial0,115200 console=tty1 root=PARTUUID=738a4d67-02 rootfstype=ext4 elevator=deadline fsck.re$
@Ovis
Ovis / gist:93a23cd89fd0edbf1d3c8b930ebd4edd
Created March 22, 2020 17:04
RaspberryPi4 fstab_new
/dev/mmcblk0p1 /boot vfat defaults 0 2
PARTUUID=0dac4cfa-ecf8-4927-9c86-b8b30e54ddb9 / ext4 defaults,noatime 0 1
# a swapfile is not a swap partition, no line here
# use dphys-swapfile swap[on|off] for that