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
# Set-ExecutionPolicy -ExecutionPolicy RemoteSigned -Scope CurrentUser | |
# src: https://gist.github.com/apfelchips/62a71500a0f044477698da71634ab87b | |
# New-Item $(Split-Path "$($PROFILE.CurrentUserCurrentHost)") -ItemType Directory -ea 0; Invoke-WebRequest -Uri "https://git.io/JYZTu" -OutFile "$($PROFILE.CurrentUserCurrentHost)" | |
# ref: https://devblogs.microsoft.com/powershell/optimizing-your-profile/#measure-script | |
# ref: Powershell $? https://stackoverflow.com/a/55362991 | |
# ref: Write-* https://stackoverflow.com/a/38527767 | |
# Write-Host wrapper for Write-Information -InformationAction Continue |
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
// Import module | |
Import-Module ./PSZip.dll | |
// Create new drive referring to .zip arvhive | |
New-PSDrive -Name "ZIP" -PSProvider "ZipFile" -Root "D:\files\archive.zip" | |
// List zip archive contents | |
Get-ChildItem -Path ZIP: -Recurse | |
// List only *.txt files |
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":1,"resource":"file:///home/strukturart/Desktop/Pages/feedolin/application/assets/css/qr-reader.css","entries":[{"id":"60Ko.css","timestamp":1678710238761}]} |
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
#Having sqlite command line installed from https://sqlite.org/download.html | |
sqlite3 destination.sqlite #open database | |
ATTACH origin.sqlite as orig #attach the origin database | |
.databases #see all databases | |
.tables #see all tables | |
BEGIN TRANSACTION | |
INSERT INTO destTable SELECT * FROM orig.originTable; | |
END TRANSACTION; |
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
;******************************************************* | |
; Want a clear path for learning AutoHotkey; Take a look at our AutoHotkey Udemy courses. They're structured in a way to make learning AHK EASY | |
; Right now you can get a coupon code here: https://the-Automator.com/Learn | |
;******************************************************* | |
;~ #Include <default_Settings> | |
;************************************** | |
#SingleInstance,Force | |
SetBatchLines -1 | |
SetWorkingDir %A_ScriptDir% | |
;~ Menu, tray, icon, B:\Progs\AutoHotkey_L\Icons\Progs\pdf.ico |
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
# Based on https://medium.com/@Jeef/creating-a-git-submodule-change-log-for-ci-db60c90f821c | |
# Input Parameter | |
param([String] $script:BeginCommitOrTag, [String] $script:EndCommitOrTag, [String] $script:Branch) | |
function Get-RootPath { | |
<# | |
.SYNOPSIS | |
입력 파라미터의 Path 기준으로 *.sln 파일이 있는 위치까지 상향 탐색합니다. |
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
<# | |
.SYNOPSIS | |
Replace tokens in a file with values. | |
.DESCRIPTION | |
Finds tokens in a given file and replace them with values. It is best used to replace configuration values in a release pipeline. | |
.PARAMETER InputFile | |
The file containing the tokens. |
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
/* | |
* Available context bindings: | |
* COLUMNS List<DataColumn> | |
* ROWS Iterable<DataRow> | |
* OUT { append() } | |
* FORMATTER { format(row, col); formatValue(Object, col) } | |
* TRANSPOSED Boolean | |
* plus ALL_COLUMNS, TABLE, DIALECT | |
* | |
* where: |
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
# PS Modules | |
Import-Module posh-git | |
Import-Module oh-my-posh | |
Import-Module ZLocation | |
Set-Theme robbyrussell # お好きなテーマ | |
Set-PSReadLineOption -EditMode Emacs |