Navigation Menu

Skip to content

Instantly share code, notes, and snippets.

View dai's full-sized avatar
🗻
still Catch it Up.

dai dai

🗻
still Catch it Up.
View GitHub Profile
@dai
dai / Microsoft.Powershell_profile.ps1
Created March 5, 2024 02:28 — forked from Olwiba/Microsoft.Powershell_profile.ps1
Get-Json Property - Powershell ⚡
# catjp - Concatenate JSON property
# Made with 💖 - Olwiba
function Get-JsonProperty {
param (
[Parameter(Mandatory=$true)]
[string]$Path,
[Parameter(Mandatory=$true)]
[string]$Property
@dai
dai / Japanese.json
Last active July 28, 2023 01:58
Japanese language for Windows Memory Cleaner 2.1
{
"Add": "追加",
"AlwaysOnTop": "常に前面表示",
"AutoOptimization": "自動最適化",
"AutoOptimizationInterval": "フリーメモリ解放の間隔 {0} 分",
"AutoUpdate": "自動更新",
"Close": "閉じる",
"CloseAfterOptimization": "最適化後に閉じる",
"CloseToTheNotificationArea": "閉じると通知領域に格納",
"DevelopedBy": "開発者",
@dai
dai / gist:da095ae56ff39bd78a5d8385a8022039
Created September 27, 2022 04:12
smatrapdfcrash-pre-3-5-15249-64.txt
Crash file: C:\w2022\04\SumatraPDF\crashinfo\sumatrapdfcrash.txt
Exe: C:\w2022\04\SumatraPDF\SumatraPDF.exe 7.71 MB (8,081,368 Bytes)
Dll: C:\w2022\04\SumatraPDF\libmupdf.dll 13.01 MB (13,642,752 Bytes)
BuiltOn: 2022-09-25
Type: dll
Ver: 3.5.15249 pre-release 64-bit
Git: ab7bf7cb59b51b23a00c38062ad402799427c079 (https://github.com/sumatrapdfreader/sumatrapdf/commit/ab7bf7cb59b51b23a00c38062ad402799427c079)
OS: Windows 10.19044 build 19044 64-bit
Number Of Processors: 4
Processor: Intel(R) Core(TM) i7-4500U CPU @ 1.80GHz
@dai
dai / iac_semver.md
Created July 21, 2022 02:20 — forked from mrcrilly/iac_semver.md
A better way of version controlling IAC

Semantic Versioning for IAC - iacver

When it comes to Infrastructure As Code, the software versioning system known as Semantic Versioning (semver.org) works from an API perspective but falls short elsewhere.

In short a semver is broken down into three "octets" and optional, additional information tagged to the end. Here are a few examples: v1.0.1, v3.1.1, v1.15.0-4. Each of these is a valid semver.

If we take the first example - v1.0.1 - and change the first octet, 1, to 2, we're saying the following:

There has been a change to this code and that change is not compatible with how you're using v1.0.1. The change is a breaking change. You should take care to introduce version v2.0.0 into your code or your environment.

@dai
dai / clink.lua
Last active April 12, 2022 05:44
lua module by clink fork (1.3.13) for cmder.
@dai
dai / js
Created January 24, 2022 06:40
komesan bookmarklet
javascript:(function(){window.open('https://komesan.pages.dev/?url='+encodeURIComponent(location.href))})();
@dai
dai / sands.js
Created July 17, 2020 02:42
select and speak bookmarklet
javascript:(function()%7Bvar%20e%2Ct%2Cn%2Co%3Ddocument%2Ca%3Dwindow%2Ci%3Do.getElementById(%22selectnspeak_bk_control%22)%2Cl%3D%5B%5D%2Cs%3D%22%22%2Cp%3Dnew%20SpeechSynthesisUtterance%2Cc%3Da.speechSynthesis%3Bfunction%20r()%7Bvar%20t%2Co%2Ci%3Ba.getSelection%3Fs%3Da.getSelection().toString()%3A(n%3Da.selection)%26%26%22Text%22%3D%3Dn.type%26%26(s%3Dn.createRange().htmlText)%2Cd()%2Cs.length%3F(p.text%3Ds%2Cp.voice%3D(t%3De.selectedOptions%2Co%3Dt%26%26t.length%3Fe.selectedOptions%5B0%5D.getAttribute(%22data-name%22)%3A%22%22%2Ci%3Dnull%2Cl.some(e%3D%3E(i%3De%2Ce.name%3D%3D%3Do))%2Ci)%2Cc.speak(p))%3Aalert(%22Select%20%26%20Speak%3A%20Please%20select%20some%20text%20before%20pressing%20play.%22)%7Dfunction%20d()%7Bc.cancel()%7Dfunction%20x(e%2Ct%2Cn)%7Bvar%20a%3Do.createElement(e)%3Breturn%20t%26%26t.forEach(e%3D%3E%7Ba.setAttribute(e%5B0%5D%2Ce%5B1%5D)%7D)%2Cn%26%26(a.style.cssText%3Dn)%2Ca%7Dfunction%20g(e%2Ct%2Cn)%7Bvar%20o%3Dx(%22button%22%2Cnull%2C%22margin%3A10px%205px%3Bvertical-align%3Amiddle%3Bheig
@dai
dai / extendo-fabuloso.markdown
Created December 24, 2019 07:03
extendo fabuloso
@dai
dai / cloudSettings
Last active November 7, 2019 04:54
Visual Studio Code Settings Sync Gist
{"lastUpload":"2019-11-07T04:54:10.854Z","extensionVersion":"v3.4.3"}
; Bel in Bel. 9 October 2019, 9:14 GMT
(def no (x)
(id x nil))
(def atom (x)
(no (id (type x) 'pair)))
(def all (f xs)