Skip to content

Instantly share code, notes, and snippets.

View antono's full-sized avatar
Focusing

Anton Vasiljev antono

Focusing
View GitHub Profile
@marshyon
marshyon / git-secret.md
Created October 26, 2022 21:25
git secret can be used to secure plain text secrets as gpg encrypted data which may be then commited to git repositories

disclaimer

at your own risk

never commit plain text passwords to Git, even private ones - they can always be leaked without your knowing at some point

where appropriate, dont use git secret, instead use a secret vault as in AWS, Azure or something like Hashicorp vault or secured secrets in pipelines, again when appropriate, you know the drill

@cheynewallace
cheynewallace / ExportSchema.ps1
Last active March 12, 2025 14:11
Export MSSQL schema with PowerShell. This script will export your schema definitions for tables, stored procs, triggers, functions and views to .sql files
# Usage: powershell ExportSchema.ps1 "SERVERNAME" "DATABASE" "C:\<YourOutputPath>"
# Start Script
Set-ExecutionPolicy RemoteSigned
# Set-ExecutionPolicy -ExecutionPolicy:Unrestricted -Scope:LocalMachine
function GenerateDBScript([string]$serverName, [string]$dbname, [string]$scriptpath)
{
[System.Reflection.Assembly]::LoadWithPartialName("Microsoft.SqlServer.SMO") | Out-Null
@ebidel
ebidel / Web Components Resources.md
Last active October 12, 2024 17:10
List of resources related to Web Components
class Proc
def <<(other)
case other
when Proc
Proc.new do |*args|
call(other.call(*args))
end
else
call(other)
end