sudo apt update && sudo apt upgrade
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
## login | |
get address in terminal and open in browser | |
## source lists | |
rm /etc/apt/sources.list.d/pve-enterprise.list | |
root@pve:/etc/apt/sources.list.d# nano pve-no-subscription.list | |
--------------------- | |
deb http://download.proxmox.com/debian/pve bullseye pve-no-subscription | |
/etc/apt/sources.list |
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
softwareupdate --install-rosetta --agree-to-license | |
grep RosettaUpdateAuto.pkg /var/log/install.log | |
#open RosettaUpdateAuto in the found folder | |
# go to terminal.app in finder and click in Get Info (right click) | |
#click in open with rosetta | |
# open terminal | |
arch | |
#should show intel i386 | |
# now you can install nvm install v6.9.1 | |
nvm install v6.9.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
gh issue transfer <issue ID> <destination repo> | |
So a few shell pipes later and we have this: | |
gh issue list -s all -L 500 --json number | \ | |
jq -r '.[] | .number' | \ | |
xargs -I% gh issue transfer % https://github.com/<destination repo> |
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
for file in *.pdf; do sips -s format png "$file" --out "${file%.pdf}.png"; done ▼ at 10:43:40 |
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
# Author: Pedro Borges | |
import heapq | |
import sys | |
def knapsack(val, wt, total_w): | |
elements = transform_to_list_dict(val, wt) | |
open_list = [] | |
closed_list = [] | |
# set to mark the nodes already seen | |
generated_nodes = set() |
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
OlderNewer