Skip to content

Instantly share code, notes, and snippets.

View perXautomatik's full-sized avatar

perXautomatik

View GitHub Profile
@r00t-3xp10it
r00t-3xp10it / CookieHijack.ps1
Last active October 13, 2022 01:12
Cookie Hijack
<#
.SYNOPSIS
Edge|Chrome Cookie Hijacking tool!
Author: @rxwx|@r00t-3xp10it
Tested Under: Windows 10 (18363) x64 bits
Required Dependencies: Chlonium.exe|ChloniumUI.exe
Optional Dependencies: Invoke-WebRequest {native}
PS cmdlet Dev version: v1.2.11
@apfelchips
apfelchips / Profile.ps1
Last active April 13, 2025 16:14
my crossplatform PowerShell Profile
# 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
@rgilmutdinov
rgilmutdinov / .PowerShell Zip Provider
Last active June 2, 2022 09:54
ZipFileProvider for PowerShell
// 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
@strukturart
strukturart / History|-255b91f0|entries.json
Last active March 13, 2023 13:16
create an rss feed from files in a folder
{"version":1,"resource":"file:///home/strukturart/Desktop/Pages/feedolin/application/assets/css/qr-reader.css","entries":[{"id":"60Ko.css","timestamp":1678710238761}]}
@evallesv
evallesv / transfer.cmd
Created January 7, 2021 22:42
Transfer data between Sqlite databases (FAST)
#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;
;*******************************************************
; 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
@level120
level120 / changelog_generator.ps1
Last active February 8, 2023 08:42
Change log generator - powershell version
# 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 파일이 있는 위치까지 상향 탐색합니다.
@niclaslindstedt
niclaslindstedt / Replace-Tokens.ps1
Last active October 11, 2023 08:12
PowerShell script to replace tokens in a file. Useful for DevOps when you have a template config file that you wish to insert real values into.
<#
.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.
@cigno5
cigno5 / DataGrip-Extractor_XLS-friendly.groovy
Last active November 3, 2021 14:42
Intellij DataGrip Excel-friendly extractor
/*
* 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:
@hotchpotch
hotchpotch / user_profile.ps1
Last active December 21, 2022 06:28
PowerShell Profile
# PS Modules
Import-Module posh-git
Import-Module oh-my-posh
Import-Module ZLocation
Set-Theme robbyrussell # お好きなテーマ
Set-PSReadLineOption -EditMode Emacs