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 | |
# Get the list of installed extensions | |
extensions=$(code --list-extensions) | |
# Visual Studio Code Marketplace base URL | |
base_url="https://marketplace.visualstudio.com/items?itemName=" | |
# Iterate through the extensions and generate URLs | |
for extension in $extensions |
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
find ./ -type d -iname node_modules -exec rm -rv {} \; |
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
Show hidden characters
{ | |
"name": "texlive", | |
"image": "jhordyess/texlive", | |
"extensions": ["James-Yu.latex-workshop"], | |
"customizations": { | |
"vscode": { | |
"settings": { | |
"terminal.integrated.defaultProfile.linux": "zsh", | |
"latex-workshop.latex.autoClean.run": "onBuilt", | |
"latex-workshop.latex.autoBuild.run": "never", |
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 | |
sudo apt install zsh | |
sh -c "$(curl -fsSL https://raw.github.com/ohmyzsh/ohmyzsh/master/tools/install.sh)" | |
git clone --depth=1 https://github.com/romkatv/powerlevel10k.git ${ZSH_CUSTOM:-$HOME/.oh-my-zsh/custom}/themes/powerlevel10k | |
sed -i "s/ZSH_THEME=\"robbyrussell\"/ZSH_THEME=\"powerlevel10k\/powerlevel10k\"/g" ~/.zshrc |
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 | |
printf "Absolute path: " | |
read dir | |
echo "Running in http://localhost:80" | |
docker run -it --rm -v ${dir}:/usr/share/nginx/html/ -p 80:80 nginx |
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
{ | |
"name": "PlatformIO", | |
"image": "jhordyess/platformio", | |
"shutdownAction": "none", | |
"customizations": { | |
"vscode": { | |
"settings": { | |
"C_Cpp.clang_format_fallbackStyle": "{BasedOnStyle: LLVM, ColumnLimit: 0, SortIncludes: false}", | |
"C_Cpp.updateChannel": "Insiders", | |
"terminal.integrated.defaultProfile.linux": "zsh", |
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
services: | |
odoo-db: | |
image: postgres:14 | |
restart: always | |
environment: | |
- POSTGRES_USER=odoo | |
- POSTGRES_PASSWORD=EZT_hvh-abt2dvm9wdk | |
- POSTGRES_DB=postgres | |
odoo: | |
image: odoo:15 |
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 | |
printf "What new username to use? " | |
read user | |
printf "Which is the public key? " | |
read public_key | |
if [ "$user" != "" -a "$public_key" != "" ]; then | |
# create user, password required | |
sudo adduser $user | |
# add the new user to the gpio group | |
sudo usermod -a -G gpio $user |
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
# After installation, to enable the use of conda commands with bash: | |
conda init bash #you need to close and reopen terminal afterwards | |
# Create the "env1" environment with python 3.7 | |
conda create --name env1 python=3.7 -y | |
# Install 3 basic packages for VSCode in the "env1" environment | |
conda install --name env1 notebook ipykernel autopep8 | |
# Change to use conda commands in the "env1" environment | |
conda activate env1 | |
# Find the "ipykernel" package | |
conda search ipykernel |
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
# Initialize project for Arduino Uno R3 | |
pio project init --board uno --ide vscode | |
# Build | |
pio run | |
# Upload | |
pio run -t upload | |
# Connect to the serial port monitor | |
pio device monitor | |
# Search "irremote" library for "atmelavr" platform and "arduino" framework | |
pio lib search irremote -p atmelavr -f arduino |