sudo dnf groupinstall "Development Tools"
sudo dnf install gcc zlib-devel bzip2 bzip2-devel readline-devel sqlite sqlite-devel openssl-devel tk-devel libffi-devel xz-devel
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
| /** | |
| * # Bluesky Bulk Post Deletion Script | |
| * | |
| * This script logs into a Bluesky account and deletes all posts (feed records) | |
| * that contain a specified domain in their facets or embeds. It employs a | |
| * two-pronged approach to handle rate limits: | |
| * | |
| * 1. **Proactive Rate-Limit Avoidance** | |
| * Uses a known hourly limit (5000 delete points/hour) to pace deletions and avoid | |
| * hitting server limits directly. Once the threshold is approached, it waits until |
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
| # https://4bes.nl/2021/09/19/update-all-powershell-modules-on-a-system/ | |
| <# | |
| TIM C: Changes: | |
| - Added scope parameter so scope could be controlled | |
| - altered code to always check for old versions, as this script may not have done the install, but it can still remove old versions | |
| - changed contains and othercomparison syntax to be case insensitive | |
| - altered logic around when the module is not found in the gallery to make the verbose output clearer | |
| - added version parses around the version compares so string comparisons do not screw up the comparison | |
| - added admin check when using AllUsers |
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
| ### | |
| ### | |
| ### UPDATE: For Win 11, I recommend using this tool in place of this script: | |
| ### https://christitus.com/windows-tool/ | |
| ### https://github.com/ChrisTitusTech/winutil | |
| ### https://www.youtube.com/watch?v=6UQZ5oQg8XA | |
| ### iwr -useb https://christitus.com/win | iex | |
| ### | |
| ### |
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
| The contents of keytab file can be verified using either Unix/linux ktutil or klist commands or java ktab utility. | |
| (1) | |
| -bash-3.2$ ktutil | |
| ktutil: rkt krba01.keytab | |
| ktutil: list | |
| slot KVNO Principal | |
| ---- ---- ------------------------------------------------------------------------------------------------ |
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
| [user] | |
| name = Ricardo Mendes | |
| email = rick@armada.digital | |
| username = rmdes | |
| [init] | |
| defaultBranch = main | |
| [core] | |
| editor = nvim | |
| whitespace = fix,-indent-with-non-tab,trailing-space,cr-at-eol | |
| pager = delta |
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
| const new_items = []; | |
| const data = this.getWorkflowStaticData('node'); | |
| data.ids = data.ids || []; | |
| for (var i=0; i<items.length; i++) { | |
| if (data.ids.includes(items[i].json.id)) { | |
| break; | |
| } else { | |
| new_items.push({json: {id: items[i].json.id, url: items[i].json.url, name: items[i].json.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
| const staticData = getWorkflowStaticData('global'); | |
| const newRSSIds = items.map(item => item.json["Date"]); | |
| const oldRSSIds = staticData.oldRSSIds; | |
| if (!oldRSSIds) { | |
| staticData.oldRSSIds = newRSSIds; | |
| return items; | |
| } | |
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
| const new_items = []; | |
| const key_field = "guid"; | |
| console.log("key_field from json.key: " + key_field); | |
| const now = $now | |
| // Get static data stored with the workflow | |
| data = $getWorkflowStaticData("node"); | |
| // delete the old cache, that didn't have time | |
| data.ids = null; |
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
| const staticData = $getWorkflowStaticData('node'); | |
| latestRead = staticData.latestRead || new Date('2023-02-19'); | |
| nextLatest = latestRead; | |
| var recentItems = [] | |
| for (let item of items) { | |
| var currentDate = new Date(item.pubDate); | |
| if(currentDate > latestRead) { | |
| recentItems.push(item); |