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
| #!/usr/bin/env python3 | |
| ''' | |
| Image generation test using OpenAI's Image model and code. | |
| Usage: | |
| LINE1=Sample LINE2=Video ./oai-gen-img.py | |
| Ouputs `./thumbnail.png` based on `build/*.txt` and input lines. | |
| ''' |
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
| #!/usr/bin/env python3 | |
| ''' | |
| Run me to generate a thumbnail. | |
| ''' | |
| import os, sys, io | |
| from glob import glob | |
| from dotenv import load_dotenv | |
| from google import genai |
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
| ### N8N Configuration ### | |
| # This is just a sample. Populate this with the actual fields you will use. | |
| # DOMAIN_NAME and SUBDOMAIN together determine where n8n will be reachable from | |
| # The top level domain to serve from | |
| DOMAIN_NAME=example.com | |
| # The subdomain to serve from | |
| SUBDOMAIN=n8n |
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
| #!/bin/bash | |
| # @date: 2021-04-25 | |
| # @author: Markizano Draconus | |
| # @description: I got sick and tired of my bash history dissapearing despite using | |
| # HISTFILESIZE=-1, which disables truncating $HISTFILE | |
| # This script created to export history commands to a sub-directory in my ~/.bash_history.d/ | |
| # folder to avoid my commands from getting truncated from my $HISTFILE. | |
| # @usage: export PROMPT_COMMAND='history -a; histlog $(history 1)' | |
| # Acquire the history files and directory... |
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
| #!/usr/bin/env python3 | |
| import os | |
| from collections.abc import Callable | |
| from slack_bolt import App | |
| from slack_bolt.adapter.socket_mode import SocketModeHandler | |
| from dotenv import load_dotenv | |
| from openwebui_client.client import OpenWebUIClient | |
| load_dotenv() |
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
| HOME = . | |
| openssl_conf = openssl_init | |
| config_diagnostics = 1 | |
| [openssl_init] | |
| [provider_sect] | |
| default = default_sect | |
| [default_sect] |
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
| name: n8n | |
| services: | |
| n8n: | |
| image: docker.n8n.io/n8nio/n8n | |
| restart: always | |
| network_mode: bridge | |
| ports: | |
| - "127.0.0.1:5678:5678" | |
| environment: | |
| - N8N_HOST=${SUBDOMAIN}.${DOMAIN_NAME} |
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
| Add-Type -TypeDefinition @" | |
| using System; | |
| using System.Runtime.InteropServices; | |
| public static class Kernel32 { | |
| [DllImport("kernel32.dll", CharSet = CharSet.Auto, SetLastError = true)] | |
| public static extern uint SetThreadExecutionState(uint esFlags); | |
| public const uint ES_AWAYMODE_REQUIRED = 0x00000040; | |
| public const uint ES_CONTINUOUS = 0x80000000; |
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
| #!/usr/bin/env python3 | |
| ''' | |
| I decided to go with a Python script instead of an Angular app since there are a few challenges I cannot overcome with an Angular app: | |
| - I don't control the CORS policy of the website I'm scraping | |
| - I am not guaranteed to be authenticated to the target subscription site I want to pick out. | |
| - I am not guaranteed to pick the correct data if the CORS policy denies me the ability to scrape the data. | |
| Sooooo... in light of the recent challenges, this Python script should bypass a lot of that. | |
| What this will do: |
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
| #!/usr/bin/env python3 | |
| import os, sys | |
| import pasimple | |
| # Set this variable to the IP address of another system running Pulse where you want send playback. | |
| PA_SERVER = os.environ.get('PA_SERVER', '192.168.1.3') | |
| # NOTE: Remove the file /tmp/pa-bind.pid to kill the bridge | |
| PIDFILE = '/tmp/pa-bind.pid' |
NewerOlder