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 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 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 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 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 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 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 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); |
This file contains 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
# i3 Window Manager Cheat Sheet | |
`$mod` refers to the modifier key (alt by default) | |
## General | |
* `startx i3` start i3 from command line | |
* `$mod+<Enter>` open a terminal | |
* `$mod+d` open dmenu (text based program launcher) | |
* `$mod+r` resize mode (<Esc> or <Enter> to leave resize mode) | |
* `$mod+shift+e` exit i3 |
This file contains 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
# Custom Cloudron App build/update workflow | |
# | |
# To use this template, ensure the following secrets | |
# * DOCKER_USERNAME | |
# * A Docker Hub account username | |
# * DOCKER_PASSWORD | |
# * The Docker Hub password for DOCKER_USERNAME | |
# * DOCKER_REPONAME | |
# * The repository belonging to DOCKER_USERNAME to push updates to | |
# * CLOUDRON_HOST |
NewerOlder