This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
APIKEY=PUT_YOUR_API_KEY_HERE # Put your Horde API key here | |
WORKER=PUT_YOUR_WORKER_ID_HERE # Put your Worker ID here | |
curl -X 'PUT' \ | |
"https://stablehorde.net/api/v2/workers/${WORKER}" \ | |
-H 'accept: application/json' \ | |
-H "apikey: ${APIKEY}" \ | |
-H 'Content-Type: application/json' \ | |
-d '{ | |
"team": "7a5afb3e-6d80-41f0-98bd-9be732d45944" | |
}' |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
PROMPT="a cat on the street of cyberpunk nightlife in sydney wide desktop background purple and blue neon lights" | |
curl -X POST -H "Content-Type: application/json" -H "apikey:0000000000" -d "{\"prompt\":\"${PROMPT}\",\"params\":{\"width\":1024,\"height\":704}}" https://stablehorde.net/api/v2/generate/sync -o f.json | |
sed 's|.*"img": "\([^"]*\)".*|\1|' f.json > ff.txt | |
base64 -d ff.txt > p.webp | |
dwebp p.webp -o p.png | |
readlink -e p.png | { read test; gsettings set org.gnome.desktop.background picture-uri file://$test; } |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<Dictionary name="Root" type="System.Collections.Hashtable, mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089"> | |
<Items> | |
<Item> | |
<Simple type="System.String, mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089" value="CleanDatabase" /> | |
<Simple type="System.String, mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089" value="False" /> | |
</Item> | |
<Item> | |
<Simple type="System.String, mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089" value="FilterGames_Star Wars: The Card Game" /> | |
<Simple type="System.String, mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089" value="true" /> | |
</Item> |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
class OKWindow(Form): # This is a WinForm which creates a simple window, with some text and an OK button to close it. | |
def __init__(self,InfoTXT): | |
self.StartPosition = FormStartPosition.CenterScreen | |
(STRwidth, STRheight) = calcStringLabelSize(InfoTXT) | |
FORMheight = 130 + STRheight | |
FORMwidth = 100 + STRwidth | |
self.Text = 'Information' | |
self.Height = FORMheight | |
self.Width = FORMwidth | |
self.AutoSize = True |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
try: | |
import clr | |
clr.AddReference("System.Drawing") | |
clr.AddReference("System.Windows.Forms") | |
from System.Windows.Forms import Application, Form, Button, Label, DockStyle, AnchorStyles, FormStartPosition, RadioButton, Panel | |
from System.Drawing import Color | |
except: | |
Automations['WinForms'] = False |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
class MultiChoiceWindow(Form): | |
def __init__(self, FormTitle, FormChoices): | |
self.Text = "Select an Option" | |
self.index = 0 | |
self.MinimizeBox = False | |
self.MaximizeBox = False | |
self.StartPosition = FormStartPosition.CenterScreen | |
self.AutoSize = True | |
self.BringToFront() |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
class RadioWindow(Form): | |
def __init__(self, BoxTitle, BoxOptions): | |
self.Text = "Select an Option" | |
self.index = 0 | |
self.confirmValue = None | |
self.MinimizeBox = False | |
self.MaximizeBox = False | |
self.StartPosition = FormStartPosition.CenterScreen | |
self.AutoSize = True |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import clr | |
clr.AddReference("System.Drawing") | |
clr.AddReference("System.Windows.Forms") | |
from System.Windows.Forms import Application, Form, Button, Label, DockStyle, AnchorStyles, FormStartPosition | |
class OKWindow(Form): | |
def __init__(self,InfoTXT): | |
newlines = 0 | |
self.StartPosition = FormStartPosition.CenterScreen |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import clr | |
clr.AddReference("System.Drawing") | |
clr.AddReference("System.Windows.Forms") | |
from System.Windows.Forms import Application, Form, Button, Label, DockStyle, AnchorStyles, FormStartPosition | |
class OKWindow(Form): | |
def __init__(self,InfoTXT): | |
newlines = 0 | |
self.StartPosition = FormStartPosition.CenterScreen |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import clr | |
clr.AddReference("System.Drawing") | |
clr.AddReference("System.Windows.Forms") | |
from System.Windows.Forms import Application, Form, Button, Label, DockStyle, AnchorStyles | |
class OKWindow(Form): | |
def __init__(self,InfoTXT): | |
newlines = 0 | |
for char in InfoTXT: |
NewerOlder