Skip to content

Instantly share code, notes, and snippets.

View maximousblk's full-sized avatar
😴
zzz

Maximous Black maximousblk

😴
zzz
View GitHub Profile
@maximousblk
maximousblk / !pickle2safetensors.md
Last active December 12, 2022 23:36
A simple script to convert torch models to safetensors format

SD Pickle to Safetensors Converter

A simple script to convert Stable Diffusion models from pickle format to safetensors format.

Usage

# Clone the script and install dependencies
git clone https://gist.github.com/210b55ea7b082bf2a47e2f200d1efbb1.git pickle2safetensors
cd pickle2safetensors
@maximousblk
maximousblk / ipfsadd.md
Last active February 11, 2022 18:49
one liner to upload files to IPFS

Upload Files to IPFS

one liner to upload files to IPFS

Quick Use

curl -fsSL https://gist.new/raw/b4bd89935418b77f94f7163f3941ccae/upload.sh | bash -s -- file.txt image.png [...]
@maximousblk
maximousblk / Microsoft.PowerShell_profile.ps1
Last active November 7, 2022 14:07
My PowerShell Profile
### Prompt
Invoke-Expression (&starship init powershell)
### Aliases
Set-Alias -Name "c" -Value "code"
Set-Alias -Name "e" -Value "explorer"
Set-Alias -Name "~" -Value "Enter-Home"
Set-Alias -Name "which" -Value "Find-Command"
Set-Alias -Name "scpy" -Value "Start-Scrcpy"
@maximousblk
maximousblk / horizon.properties
Last active June 1, 2021 10:41
Horizon theme for termux
# https://horizontheme.netlify.app
# https://gist.github.com/maximousblk/c199b9953f84d0d78a884a654908b81a
# root
foreground=#D5D8DA
cursor=#E95678
background=#1C1E26
# black
color0=#16161C
@maximousblk
maximousblk / horizon.json
Created March 18, 2021 15:59
Horizon Theme port for Windows Terminal
{
"name":"Horizon",
"cursorColor":"#E95678",
"selectionBackground":"#FDF0ED",
"background":"#1C1E26",
"foreground":"#D5D8DA",
"black":"#16161C",
"white":"#CCCCCC",
"blue":"#26BBD9",
"cyan":"#59E3E3",
@maximousblk
maximousblk / tor.md
Created September 8, 2020 06:29
A super simple guide to starting up your own Tor hidden service

Host your own Tor hidden service!

A super simple guide to spinning up a Tor hidden service. [tl;dr]

Ubuntu 20.04 LTS was used for the making of this guide.

Install Tor

you can install Tor using the following command

@maximousblk
maximousblk / windows-terminal-settings.jsonc
Last active February 4, 2022 14:06
My Windows Terminal Settings
{
"$help": "https://aka.ms/terminal-documentation",
"$schema": "https://aka.ms/terminal-profiles-schema",
"copyFormatting": "rtf",
"copyOnSelect": false,
"defaultProfile": "{574e775e-4f2a-5b96-ac1e-a2962a402336}",
"launchMode": "maximized",
"multiLinePasteWarning": false,
"showTerminalTitleInTitlebar": false,
"startOnUserLogin": false,
#InstallKeybdHook
#Persistent
#HotkeyInterval,100
#NoEnv
SetKeyDelay, –1
SetTitleMatchMode, 2 ; Makes matching the titles easier
SendMode Input
SetWorkingDir %A_ScriptDir%
^q::

Keybase proof

I hereby claim:

  • I am maximousblk on github.
  • I am maximousblk (https://keybase.io/maximousblk) on keybase.
  • I have a public key whose fingerprint is C24B F071 EBAB ECAA 7A66 CB9C EC7B EE3B 0561 BF2F

To claim this, I am signing this object: