Skip to content

Instantly share code, notes, and snippets.

@RaminMT
RaminMT / gist:c1c2cb19a7ad73f5d0202177e2fa2049
Created September 3, 2022 08:05
Get latest release from Github releases & extract a file
curl -s https://api.github.com/repos/peak/s5cmd/releases/latest \
| jq -r '.assets[].browser_download_url' \
| grep '.*Linux-64.*' \
| wget -qi - -O- \
| tar xvzf - s5cmd
@RaminMT
RaminMT / rarreg.key
Last active November 18, 2021 13:06 — forked from MuhammadSaim/rarreg.key
Step 1: Create a file called rarreg.key Step 2: Paste into the file the raw content of this gist Step 3: Go to Winrar install directory (by default => c:\ProgramFiles\WinRAR\ ) Step 4: Paste the rarreg.key into WinRAR directory Step 5: Enjoy
RAR registration data
RaminMT
Unlimited Company License
UID=4b914fb772c8376bf571
6412212250f5711ad072cf351cfa39e2851192daf8a362681bbb1d
cd48da1d14d995f0bbf960fce6cb5ffde62890079861be57638717
7131ced835ed65cc743d9777f2ea71a8e32c7e593cf66794343565
b41bcf56929486b8bcdac33d50ecf773996052598f1f556defffbd
982fbe71e93df6b6346c37a3890f3c7edc65d7f5455470d13d1190
6e6fb824bcf25f155547b5fc41901ad58c0992f570be1cf5608ba9
@RaminMT
RaminMT / user-rule.txt
Last active December 20, 2022 04:50
Shadowsocks Windows client PAC custom user rules
! Put user rules line by line in this file.
! See https://adblockplus.org/en/filter-cheatsheet
||vault.raminmt.com
.figma.com
.sun.com
.oracle.com
.java.com
@RaminMT
RaminMT / settings.json
Last active November 1, 2021 07:50
Windows terminal settings
// This file was initially generated by Windows Terminal 1.11.2921.0
// It should still be usable in newer versions, but newer versions might have additional
// settings, help text, or changes that you will not see unless you clear this file
// and let us generate a new one for you.
// To view the default settings, hold "alt" while clicking on the "Settings" button.
// For documentation on these settings, see: https://aka.ms/terminal-documentation
{
"$schema": "https://aka.ms/terminal-profiles-schema",
// You can add more global application settings here.
@RaminMT
RaminMT / raminmt.json
Last active October 25, 2021 12:33
Oh my posh v3 theme settings
{
"blocks": [
{
"type": "prompt",
"alignment": "left",
"segments": [
{
"type": "path",
"style": "powerline",
"powerline_symbol": "",
@RaminMT
RaminMT / Microsoft.PowerShell_profile.ps1
Last active November 19, 2021 11:04
My powershell profile
##### CaskaydiaCove Nerd Font (https://www.nerdfonts.com/font-downloads)
##### PSReadLine (https://github.com/PowerShell/PSReadLine)
# https://devblogs.microsoft.com/powershell/announcing-psreadline-2-1-with-predictive-intellisense/
# Install-Module -Name PSReadLine ||||| For stable versions
# Install-Module -Name PSReadLine -AllowPrerelease -Force ||||| For pre release versions
Import-Module -Name PSReadLine
Set-PSReadLineOption -PredictionSource History
Set-PSReadLineOption -PredictionViewStyle ListView
@RaminMT
RaminMT / build-push.ps1
Created July 25, 2020 14:31
A simple dockerfile to create latest shadowsocks-libev binaries for centos 8
Clear-Host
$ver = read-host "Please enter the version number you want to build and tag in xx.xx.xx format"
#docker buildx build --no-cache --build-arg BUILDDATE=$(Get-Date -u +'%Y-%m-%dT%H:%M:%SZ') --build-arg VERSION=$ver -t raminmt/shadowsocks-libev:$ver -t raminmt/shadowsocks-libev:latest C:\docker\shadowsocks-libev
#docker build --no-cache --build-arg BUILDDATE=$(Get-Date -u +'%Y-%m-%dT%H:%M:%SZ') --build-arg VERSION=$ver -t raminmt/shadowsocks-libev:$ver -t raminmt/shadowsocks-libev:latest C:\docker\shadowsocks-libev
docker build --build-arg BUILDDATE=$(Get-Date -u +'%Y-%m-%dT%H:%M:%SZ') --build-arg VERSION=$ver -t raminmt/shadowsocks-libev:$ver -t raminmt/shadowsocks-libev:latest C:\docker\shadowsocks-libev
docker push raminmt/shadowsocks-libev
pause
@RaminMT
RaminMT / cloudSettings
Last active December 1, 2019 20:57
Visual Studio Code Sync Settings GIST
{"lastUpload":"2019-12-01T20:57:28.960Z","extensionVersion":"v3.4.3"}