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
| // ==UserScript== | |
| // @name ChatGPT Form Cleanup | |
| // @namespace http://tampermonkey.net/ | |
| // @version 1.0 | |
| // @description Adds a button to clean up Slack messages using ChatGPT | |
| // @author David O Neill | |
| // @icon https://cdn.imgbin.com/3/22/25/imgbin-six-thinking-hats-red-hat-enterprise-linux-fedora-cartoon-cowboy-hat-i5r6w8BjC5Ua6Y7HxHZzFsEb9.jpg | |
| // @match https://app.slack.com/* | |
| // @match https://issues.redhat.com/* | |
| // @match https://your-settings-page.com/* |
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/python3 | |
| import os | |
| import sys | |
| import requests | |
| import subprocess | |
| import argparse | |
| class OpenAIProvider: | |
| def __init__(self): | |
| self.api_key = os.getenv("AI_API_KEY") |
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 random | |
| import string | |
| import gi | |
| gi.require_version("Gtk", "4.0") | |
| from gi.repository import Gio, GLib, GObject, Gtk # noqa | |
| class DataObject(GObject.GObject): |
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 random | |
| import string | |
| import gi | |
| gi.require_version("Gtk", "4.0") | |
| from gi.repository import Gio, GLib, GObject, Gtk # noqa | |
| class DataObject(GObject.GObject): |
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 random | |
| import string | |
| import gi | |
| gi.require_version("Gtk", "4.0") | |
| from gi.repository import Gio, GLib, GObject, Gtk # noqa | |
| class DataObject(GObject.GObject): |
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
| daoneill@redhat:~/src/awx-operator$ git diff 2.15.0 2.16.0 | |
| diff --git a/.github/workflows/ci.yaml b/.github/workflows/ci.yaml | |
| index 41724d2..90f7cfd 100644 | |
| --- a/.github/workflows/ci.yaml | |
| +++ b/.github/workflows/ci.yaml | |
| @@ -17,6 +17,7 @@ jobs: | |
| - -t replicas | |
| env: | |
| DOCKER_API_VERSION: "1.41" | |
| + DEBUG_OUTPUT_DIR: /tmp/awx_operator_molecule_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
| <?php | |
| if(isset($_GET['tname'])) { | |
| $name = $_GET['tname']; | |
| //Set the Content Type | |
| header('Content-type: image/jpeg'); | |
| // Create Image From Existing File | |
| $jpg_image = imagecreatefromjpeg('orig.jpg'); |
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
| sysctl -w fs.file-max=2097152 | |
| sysctl -w vm.swappiness=10 | |
| sysctl -w vm.dirty_ratio=60 | |
| sysctl -w vm.dirty_background_ratio=2 | |
| sysctl -w kernel.sched_migration_cost_ns=5000000 | |
| sysctl -w kernel.sched_autogroup_enabled=0 | |
| sysctl -w net.ipv4.tcp_synack_retries=2 | |
| sysctl -w net.ipv4.ip_local_port_range=2000 65535 | |
| sysctl -w net.ipv4.tcp_rfc1337=1 | |
| sysctl -w net.ipv4.tcp_syncookies=1 |
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
| # Goal: To extend Synology volume beyond the webpage limit (108TB) | |
| # Disks available | |
| # 12 disks x 16TB = 192TB | |
| # Assuming you already have an 8 disk volume | |
| # 8 disks x 16TB = 128TB (Max allowed by Synology) | |
| # lost space due to parity + whatever else ^^ | |
| # Synology uses partition raid, not drive raid | |
| # There are 3 raid arrays across matching partitions on each disk |
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
| postgres=> SELECT pid, now() - pg_stat_activity.query_start AS duration, query, state, datname | |
| FROM pg_stat_activity; | |
| pid | duration | query | state | datname | |
| -------+-----------------+------------------------------------------------------------------------------------------------------------------------+--------+---------------- | |
| 5779 | 00:00:00 | SELECT pid, now() - pg_stat_activity.query_start AS duration, query, state, datname +| active | postgres | |
| | | FROM pg_stat_activity; | | | |
| 14358 | 00:00:07.786144 | SELECT 1 | idle | rdsadmin | |
| 17140 | 00:00:00.187546 | COMMIT |
NewerOlder