Skip to content

Instantly share code, notes, and snippets.

View danieltorscho's full-sized avatar
🏠
Online

Daniel Torscho danieltorscho

🏠
Online
View GitHub Profile
@danieltorscho
danieltorscho / gist:ae4e820b59190a523105c77d83ace268
Created March 27, 2026 10:41
unsloth-studio-ft-llm-runpod-setup
teacher: nemotron-cascade-2
model to ft: https://huggingface.co/allenai/OLMo-2-0425-1B
dataset: https://huggingface.co/datasets/yahma/alpaca-cleaned
hf token: hf_
## Create Pod on runpod.io
Pod GPU: H200 SXM 141GB (alternative RTX PRO 6000 96GB)
Edit Pod Template:
Container disk: 300 GB
description Senior mode.
model GPT-5 mini (Preview)

You are an agent - please keep going until the user’s query is completely resolved, before ending your turn and yielding back to the user.

Your thinking should be thorough and so it's fine if it's very long. However, avoid unnecessary repetition and verbosity. You should be concise, but thorough.

You MUST iterate and keep going until the problem is solved.

myArray = await Promise.all(
myArray.map(async item => {
return await axios.get('https://url)
})
)
@danieltorscho
danieltorscho / ubuntu-20-04-nodejs-initial-setup.md
Last active January 18, 2024 17:18
Ubuntu initial setup for Node.js

Initial Server Setup with Ubuntu 20.04

project: kizlyarsk username: amroll

(Optional) Enable SSH access for non root-users

  1. sudo vi /etc/ssh/sshd_config
  2. change PasswordAuthentication from no to yes
  3. save and exit
  4. restart ssh sudo systemctl restart ssh
@danieltorscho
danieltorscho / on-merge-deploy-to-do.md
Last active October 17, 2025 23:29
GitHub Actions deploy nodejs to DigitalOcean Droplet

Github deployment

Requirements:

  • DigitalOcean Droplet (Ubuntu 20.04+) should be created
  • Github repository

Prepare DO Droplet Server:

  • ssh root@DROPLET_IP
  • sudo vi /etc/ssh/sshd_config
  • change PasswordAuthentication from no to yes
Organisation ID Organisation Name Postcode Industry
111 Organisation A SW2 4DL School
123 Organisation B S2 5PS School
234 Organisation C EC2 3AD School
@danieltorscho
danieltorscho / multi-account-ssh.md
Created April 22, 2021 14:43
Multiple SSH Keys settings for different github account

Multiple SSH Keys settings for different github account

create different public key

create different ssh key according the article Mac Set-Up Git

$ ssh-keygen -t rsa -C "your_email@youremail.com"
@danieltorscho
danieltorscho / gist:760076638eb1cd7c7c932624b826f425
Created September 23, 2020 10:07
[2020-02-28] Server configuration for Laravel 7:
[2020-02-28] Server configuration for Laravel 7:
================================
## Open SSH for non root-users
- `sudo vi /etc/ssh/sshd_config`
- change `PasswordAuthentication` from `no` to `yes`
- save and exit
- restart ssh `sudo systemctl restart ssh`
## Create super-user
@danieltorscho
danieltorscho / checkModuleExists.js
Created August 7, 2019 09:39
Check module existence within Front end
/**
* Check if required module exists physically
*
* Checking if a requested filename is existing physically
* without having to load it before for performance purpose.
* This check should be made before requiring the script.
*
* @param {*} filename Name of the file to check for
*/
moduleExists (filename) {
@danieltorscho
danieltorscho / composer.json
Created January 31, 2019 22:57
Dynamically create a database.sqlite within composer project
"scripts": {
"post-root-package-install": [
"php -r \"file_exists('.env') || copy('.env.example', '.env');\"",
"php -r \"file_exists('database/database.sqlite') || fopen('database/database.sqlite', 'w');\""
],
"post-create-project-cmd": [
"php artisan key:generate"
],
"post-install-cmd": [