Skip to content

Instantly share code, notes, and snippets.

View rcdelacruz's full-sized avatar
🎯
Focusing

Ronald DC rcdelacruz

🎯
Focusing
View GitHub Profile
@rcdelacruz
rcdelacruz / claude.ai.md
Created December 12, 2024 00:19 — forked from rongpenl/claude.ai.md
Claude.ai Prompt Guide

Claude prompting guide

General tips for effective prompting

1. Be clear and specific

  • Clearly state your task or question at the beginning of your message.
  • Provide context and details to help Claude understand your needs.
  • Break complex tasks into smaller, manageable steps.

Bad prompt:

@rcdelacruz
rcdelacruz / wsl2-network.ps1
Created April 27, 2024 10:16 — forked from xmeng1/wsl2-network.ps1
WSL2 Port forwarding port to linux
$remoteport = bash.exe -c "ifconfig eth0 | grep 'inet '"
$found = $remoteport -match '\d{1,3}\.\d{1,3}\.\d{1,3}\.\d{1,3}';
if( $found ){
$remoteport = $matches[0];
} else{
echo "The Script Exited, the ip address of WSL 2 cannot be found";
exit;
}
@rcdelacruz
rcdelacruz / cloud-init.yaml
Created January 16, 2024 01:56 — forked from pmbaumgartner/cloud-init.yaml
Multipass & Docker Setup
#cloud-config
package_upgrade: true
ssh_authorized_keys:
- <your key>
packages:
- apt-transport-https
- ca-certificates
- curl
@rcdelacruz
rcdelacruz / DrugBank2SQLite.R
Last active July 28, 2023 06:40
Import DrugBank to SQLite
########################################
## Import of DrugBank Annotation Data ##
########################################
## Function to import DrugBank XML to data.frame
## Last step gives error. To debug, the following function may help.
## Note, this functions needs some major speed improvements. Ideally,
## it should be replaced with a standard XML import method.
## (1) Download
## - download DrugBank XML (https://www.drugbank.ca/releases/latest)
## - name uncompressed file 'drugbank.xml'
@rcdelacruz
rcdelacruz / DrugBank2SQLite.R
Created July 28, 2023 06:17 — forked from tgirke/DrugBank2SQLite.R
Import DrugBank to SQLite
########################################
## Import of DrugBank Annotation Data ##
########################################
## Function to import DrugBank XML to data.frame
## Last step gives error. To debug, the following function may help.
## Note, this functions needs some major speed improvements. Ideally,
## it should be replaced with a standard XML import method.
## (1) Download
## - download DrugBank XML (https://www.drugbank.ca/releases/latest)
## - name uncompressed file 'drugbank.xml'
// build: Changes that affect the build system or external dependencies (example scopes: gulp, broccoli, npm)
// ci: Changes to our CI configuration files and scripts (example scopes: Travis, Circle, BrowserStack, SauceLabs)
// docs: Documentation only changes
// feat: A new feature
// fix: A bug fix
// perf: A code change that improves performance
// refactor: A code change that neither fixes a bug nor adds a feature
// style: Changes that do not affect the meaning of the code (white-space, formatting, missing semi-colons, etc)
// test: Adding missing tests or correcting existing tests
# Logs
logs
*.log
npm-debug.log*
yarn-debug.log*
yarn-error.log*
lerna-debug.log*
# Diagnostic reports (https://nodejs.org/api/report.html)
report.[0-9]*.[0-9]*.[0-9]*.[0-9]*.json

Oh my zsh.

Oh My Zsh

Install ZSH.

sudo apt install zsh-autosuggestions zsh-syntax-highlighting zsh

Proxmox GPU Passthrough

Config :

  • Motherboard : ASUS PRIME B450M-A
  • CPU : AMD Ryzen 7 2700x
  • GPU : EVGA AMD RADEON R9 380 Series
  • Ram : DDR4 2133 MHz

Setting it all up

Update packages