Skip to content

Instantly share code, notes, and snippets.

View ShortArrow's full-sized avatar
🎍

ShortArrow

🎍
View GitHub Profile
@ShortArrow
ShortArrow / README.md
Created May 22, 2017 04:14 — forked from nanbu/README.md
VBAで改行文字を任意の文字に変換

ConvertLineEnding(Text As String, LineEnding As String) As String

改行文字(CR、LF、CR+LF)を任意の文字に変換します。

主な用途

  • 改行文字をそろえる。
  • 改行文字を<br>に変換する。

使用例

Dim SourceText As String

Dim ResultText As String

@ShortArrow
ShortArrow / dell_warranty.py
Created October 1, 2021 12:13 — forked from teroka/dell_warranty.py
Dell API: Warranty Information
#!/usr/bin/env python
# Quick script to check your Dell asset's warranty status
# Just drop your service tag as parameters for the script and go.
import sys
import requests
APIKEY = 'd676cf6e1e0ceb8fd14e8cb69acd812d'
URL = 'https://api.dell.com/support/v2/assetinfo/warranty/tags.json?svctags={0}&apikey=' + APIKEY
@ShortArrow
ShortArrow / blocklist
Last active April 8, 2022 15:02
uBlacklist Options URL
*://dev-qa.com/*
*://helperbyte.com/*
*://solveforums.msomimaktaba.com/*
*://microeducate.tech/*
*://www.codegrepper.com/*
*://lifesaver.codes/*
*://forum.playcanvas.com/*
*://jsshowcase.com/*
*://iqcode.com/*
*://serveanswer.com/*
@ShortArrow
ShortArrow / echo-color.ps1
Created April 14, 2022 07:43
powershell echo color
write-host "`e[38;5;34;48;5;215m`e[0m"
write-host "`e[38;5;34;48;5;215;6m`e[0m"
# https://www.wikiwand.com/en/ANSI_escape_code#/3-bit_and_4-bit
@ShortArrow
ShortArrow / init.vim
Created April 25, 2022 00:23
nvim C:\Users\who\AppData\Local\nvim\init.vim
set number
set termguicolors
set statusline^=%{coc#status()}
set clipboard+=unnamedplus
set guicursor=n-v-c:block,i-ci-ve:ver25,r-cr:hor20,o:hor50
\,a:blinkwait700-blinkoff400-blinkon250-Cursor/lCursor
\,sm:block-blinkwait175-blinkoff150-blinkon175
let &shell = has('win32') ? 'powershell' : 'pwsh'
let &shellcmdflag = '-NoLogo -NoProfile -ExecutionPolicy RemoteSigned -Command [Console]::InputEncoding=[Console]::OutputEncoding=[System.Text.Encoding]::UTF8;'
let &shellredir = '2>&1 | Out-File -Encoding UTF8 %s; exit $LastExitCode'
@ShortArrow
ShortArrow / longferris.txt
Last active May 7, 2022 10:03
longferris
I uR
Rr RRR RRR RR
iRRUuRRR iRRRRRR
URRRR IRRRT
RR r uRR
TRR IU iRRuRRReRR Ur RR
TRU RUuRRRRRRRRRRRRRRRRReRR eRI
TRU UUuRRRRRRRRRRRRRRRRRRRRRRReUF uRF
SRu RRRRRRRRRRRRRRRRRRRRRRRRRRRRU uRR
RRr RRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRR RR
RR RRR RR
fRRu RRRRRRRRRRRRRRR uRRR
TRUu RRRRRRRRRRRRRRRRRRRRRRRRR ueRt
iRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRE uU
r iRU RRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRR rRRRI fR
uRR RRRR iRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRF RRRRR eRR
RRRRr RRRRR iRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRF RRRRRUeRRRF
RRRRRRRRRR URRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRR TRRRRRRRR
TRRRRRRR eURRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRUe RRRRR
RRRr TRRRRRRRRRRRRRRRRRRRRRR RRRRRRRRR RRRRRRRRRRRRRRRRRF RRR
@ShortArrow
ShortArrow / how-to-manage-win-file-share.ps1
Created July 8, 2022 02:15
How to manage windows file share
# ---------------------------------------------
# How to manage Windows File share permissions
# ---------------------------------------------
#
# 共有のアクセス権とNTFSアクセス権が共存し、ユーザーは両方から許可された操作しかできない。
#
# ---------------------------------------------
# Create Acl rules
# ---------------------------------------------
@ShortArrow
ShortArrow / chromeos-crosh-custom-setup.md
Created October 18, 2022 22:37 — forked from diffficult/chromeos-crosh-custom-setup.md
Customize your ChromeOS fonts - working April 2017

Customize Chromebook Chrosh Shell Environment

Requirement: Chromebook, Common Sense, Commandline Ablity, 1 hour of time

Dear developers with a spare Chromebook lets inject a little personalization into your Crosh shell with custom fonts, the solarized theme, and extra secure shell options.

Also, keep in mind that the terms Chrosh, Chrosh Window, and Secure Shell all refer to various versions and extentions built around the ChromeOS terminal. Settings that affect the ChromeOS terminal are global.

Custom Fonts

@ShortArrow
ShortArrow / diag.md
Last active November 15, 2023 04:01 — forked from hashrock/diag.md
作図系ツール・ライブラリまとめ

シーケンス図とかフローチャートをしごとで描画することになった場合、 テキストから生成できたら楽なので、それ系のツールまとめ

GraphViz

http://www.graphviz.org/

  • C製
  • Doxygen, Moinmoinなどと連携可能
  • ブロック図、クラス図、ネットワーク図など