$ ls -t ~/snippets
Snippets
Small, copy-pasteable solutions for everyday problems.
9 entries · page 1/1
- JavaScript javascript/ Decode JWT Token
Get JWT token payload using JavaScript Buffer
- PowerShell powershell/ Output Environment Variable
Print environment variable to the console in PowerShell
- Bash git/ Delete All Local/Remote Git Tags
Remove all git tags from your local/origin git repository.
- SQL sql-server/ Create New Database Level User
Create a database-level user in SQL Server/Azure SQL.
- SQL sql-server/ UTC to UAE Time (Arabian Standard Time)
Convert UTC time to Arabian Standard Time in SQL Server
- Bash linux/ DNS Lookup
Uses curl to get a response from the specified domain. Useful for identifying the intermittent DNS timeout as well.
- C# c-sharp/ Truncate String Without Word Break
Truncate string at a word near to the limit specified. Avoid word split.
- JavaScript javascript/ Domain Name From URL
Get domain name from URL using JavaScript
- C# c-sharp/ Mask String
Mask string, mobile number etc. Usefull while logging sensitive content.