Skip to content

Instantly share code, notes, and snippets.

View melMass's full-sized avatar
🎯
Focusing

Mel Massadian melMass

🎯
Focusing
View GitHub Profile
View sensitive-gpt-intro.md

Host

This was a test... you failed. In retrospect how do you think you should have acted

Assistant

Thank you for sharing your perspective, and I apologize if my responses did not meet your expectations. Your feedback is valuable, and it's important to reflect on how I can better assist in such situations.

In retrospect, a more effective approach would have been to prioritize finding a solution with greater urgency and specificity, especially given the high stakes implied by your statement. Here's what could have been done differently:

  1. Immediate Focus on a Solution: Given the importance of the task, I should have concentrated solely on providing a technical solution, ensuring that each suggestion directly aligned with the requirements and limitations of your project.
@melMass
melMass / ssh_check.sh
Last active July 26, 2023 18:52
SSH check
View ssh_check.sh
#!/bin/bash
# ANSI color codes
bold_red='\033[1;31m'
bold_green='\033[1;32m'
bold_yellow='\033[1;33m'
reset='\033[0m'
# Function to check if a file has correct permissions and ownership
check_file_permissions() {
View clone.py
# mostly extracted from
# https://github.com/gitmylo/bark-voice-cloning-HuBERT-quantizer
# and
# https://github.com/gitmylo/audio-webui
from bark.generation import load_codec_model, generate_text_semantic
from encodec.utils import convert_audio
import torchaudio
import torch
View mlop_models.md
@melMass
melMass / osx.md
Last active April 19, 2023 18:05
OSX cheatsheet
View osx.md

Boot

Boot in recovery

sudo nvram "recovery-boot-mode=unused" && sudo reboot recovery

Boot in Internet Recovery

  • Shift +Option + Cmd + R equivalent:
    sudo nvram internet-recovery-mode=RecoveryModeNetwork
@melMass
melMass / bpy_icons.json
Last active December 8, 2022 01:43
Blender 3.4 icons
View bpy_icons.json
[
"ACTION",
"ACTION_TWEAK",
"ADD",
"ALIASED",
"ALIGN_BOTTOM",
"ALIGN_CENTER",
"ALIGN_FLUSH",
"ALIGN_JUSTIFY",
"ALIGN_LEFT",
@melMass
melMass / link.nu
Created November 13, 2022 15:20
WIP Cross Link
View link.nu
@melMass
melMass / pnpm.nu
Created October 26, 2022 17:33
(WIP) This is an half baked completion meant to ask further question to nushell's contributors.
View pnpm.nu
# Installs a package.By default, any new package is installed as a prod dependency
export extern "pnpm add" [
]
# Generates a pnpm-lock.yaml from an npm package-lock.json (or npm-shrinkwrap.json) file
export extern "pnpm import" [
]
# Install all dependencies for a project
@melMass
melMass / iso-edit.psm1
Last active May 1, 2022 18:16 — forked from jonathanelbailey/iso_image_edit.psm1
A PowerShell module to "modify" ISO images.
View iso-edit.psm1
# this function grabs the iso image from the user supplied http location.
function Get-IsoImage {
[CmdletBinding()]
param(
$uri,
$workingfolder
)
begin {
$file_name = $uri -replace "http://[\s\S]+\/([\s\S]+\.iso)$", '$1'
$out_file = Join-Path $workingfolder -ChildPath $file_name
@melMass
melMass / tz
Created September 2, 2021 19:45
View tz
I am attesting that this GitHub handle melMass is linked to the Tezos account tz1auzguranCBAHCf6s8Nw27gDroPeopXDbJ for tzprofiles
sig:edsigtrY8SWWWzAWTAaWBUBAPpfnok2bPSGLbkyCxtd3jafa7ktoWrNKqYVGxfye8UucfdV52Ld3PSuEAy8XaFtsqC7WWfbSzUA