git clone https://github.com/OpenDevin/OpenDevin.git
cd OpenDevin
conda create -n od python=3.10
conda activate od
docker ps
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
(function bookmarksExportToCsv() { | |
/** | |
* 1. Export bookmarks from browser (supported any Chromium based browsers and Safari) (chrome://bookmarks) | |
* 2. Open exported html file again in the browser | |
* 3. Copy paste this entire file in console, and execute it (hit enter) | |
* 4. You will be prompted to save a CSV file. Save it. | |
* 5. Open Notion. Click Import -> CSV | |
* 6. Select saved CSV file. Wait for import | |
* 7. You have a new database with all your bookmarks | |
*/ |
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
#!/bin/bash | |
mtrv4() { | |
[[ -z ${1} || ${1} =~ -h ]] && { | |
printf "Usage: %s <hostname|IP>\n" "${FUNCNAME[0]}" 1>&2 | |
return 2 | |
} | |
for i in $(ip -o -4 a | awk '{if ($2 != "lo") print $2}' | paste -sd' '); do mtr -4 -rw -c 5 -I "${i}" "${1}"; done | |
} | |
export -f mtrv4 |
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
--- | |
config: | |
boot.autostart: 'true' | |
security.nesting: 'true' | |
security.privileged: 'false' | |
user.network-config: | | |
version: 2 | |
ethernets: | |
eth0: | |
dhcp4: false |
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
#!/bin/bash | |
export UBUNTU_PRO_TOKEN="XXXXXXXXXXXXXXXXXXXXXXXXXXXXXX" | |
export DNS_DOMAIN="atx.orangebox.me" | |
export MSAD_DOMAIN="ORANGEBOX" | |
export DC_HOSTNAME="msadc" | |
export SSH_IMPORT_ID="lp:craig-bender, gh:thinguy" | |
export UBUNTU_REPO="us.archive.ubuntu.com" | |
export UBUNTU_RELEASE="lunar" | |
export MSADMIN_PW="Ubuntu1+" |
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
#!/bin/bash | |
############################## | |
# Scripted XRDP Installation # | |
############################## | |
### Note: You can only be logged in via console or RDP, not both. | |
### If you get blackscreen via RDP or if console keeps going | |
### back to login screen, run `gnome-session-quit --force --logout` | |
### via ssh as the same user you are trying to login |
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
#!/bin/bash | |
ubuntu-repo-size() { | |
ubuntu-repo-size_usage() { | |
printf "\n\e[1m\e[2G%s\e[0m\n\n" "${FUNCNAME[0]%%_*}" | |
printf "\e[1m\e[2GUsage\e[0m: %s [options]\n\n" "${FUNCNAME[0]%%_*}" | |
printf "\e[1m\e[2GOptions\e[0m:\n\n" | |
printf "\e[3G -a, --arch \e[28GArchitecture to display, i.e. amd64,arm64,armhf,i386,ppc64el,s390x (Default: amd64)\n" | |
printf "\e[3G -s, --series \e[28GRelease nicknames to get information for, (Default: current LTS)\n" | |
printf "\e[3G -c, --components \e[28GList of repo components to query (Default: main,universe,multiverse,restricted)\n" |
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
fix-usb2serial() { | |
printf "\n\e[1mFix USB to Serial device permissions\e[0m\n" | |
local DEVREGX='.*tty[UA].*' W='s' | |
declare -ag TTYUSB_DEVS=($(find /sys/class/tty -type l -iregex "${DEVREGX}" -printf "%P\n" 2>&1)) | |
[[ ${#TTYUSB_DEVS[@]} -ge 1 ]] && { local W=""; } || { printf "\nNo USB to Serial devices found using regex \x22${DEVREGX}\x22.\nQuitting\n\n";return 3; } | |
[[ -n $(id -Gn|grep 2>/dev/null -oE dialout) ]] && { printf "\e[2G - User $USER already a member of \x22dialout\x22 group \e[3m(Good\x21)\e[0m\n"; } || { printf "\e[2G -- Adding User $USER to the \x22dialout\x22 group\n"; sudo usermode -aG dialout $USER; } | |
printf "\e[2G - Creaing udev rules file: /etc/udev/rules.d/50-ttyUSB.rules\n" | |
sudo install -o0 -g0 -m0644 /dev/null /etc/udev/rules.d/50-ttyUSB.rules | |
printf "\e[2G - Adding ${#TTYUSB_DEVS[@]} udev rule${W}:\n" | |
(printf "%s\n" ${TTYUSB_DEVS[@]}|xargs -I{} printf "KERNEL==\x22{}\x22,\x20MODE=\x270666\x22\n")|sudo tee -a /etc/udev/rules.d/50-ttyUSB.rules|sed -r 's/^/ /g' |
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
# This is a cloud-init script to deploy Sunbeam (aka Microstack) on multiple | |
# nodes using MAAS. | |
# | |
# THIS IS FOR ALL NODES IN CLUSTER | |
# Be sure to change the following elements to match you environment: | |
# resolv_conf: -> nameservers: | |
# resolv_conf: -> searchdomains: | |
# resolv_conf: -> domain: | |
# ubuntu_advantage: -> token: | |
# ubuntu_advantage: -> config: -> http_proxy: |