Navigation Menu

Skip to content

Instantly share code, notes, and snippets.

@ca4ti
ca4ti / crossover-howtocompile.md
Created April 9, 2024 09:09 — forked from Alex4386/crossover-howtocompile.md
CodeWeavers CrossOver - How to compile from source! for macOS

[STOP] This gist is deprecated.

TL;DR

WAY MORE UP-TO-DATE GIST (and includes some setup stuff that I forgot to document): https://gist.github.com/sarimarton/471e9ff8046cc746f6ecb8340f942647
Current Development for Building Libre-version of CrossOver: https://github.com/GabLeRoux/macos-crossover-cloud-build.
For Latest Discussions: https://github.com/GabLeRoux/macos-crossover-cloud-build/issues.

Long Description

This version of gist is outdated since it was written while I was compiling CrossOver v19. and seems to be there are some breaking changes in v19.1+ and 20. Also, I think I missed some required libraries/stub files that was required in build (that I previously installed beforehand). Oops.

@ca4ti
ca4ti / 006-glibc-conflict.patch
Created April 3, 2024 19:49 — forked from avoidik/006-glibc-conflict.patch
Compile LEDE v17.01.4 for Mikrotik MetaROUTER (MIPS only)
--- a/misc/create_inode.c 2016-09-02 04:17:32.000000000 +0000
+++ b/misc/create_inode.c 2020-01-04 20:56:26.150590109 +0000
@@ -392,7 +392,7 @@
}
#endif /* !defined HAVE_PREAD64 && !defined HAVE_PREAD */
-static errcode_t copy_file_range(ext2_filsys fs, int fd, ext2_file_t e2_file,
+static errcode_t copy_file_chunk(ext2_filsys fs, int fd, ext2_file_t e2_file,
off_t start, off_t end, char *buf,
char *zerobuf)
@ca4ti
ca4ti / nvidia_gpu_on_osx.md
Created March 21, 2024 14:10 — forked from TysonRayJones/nvidia_gpu_on_osx.md
How to connect an NVIDIA eGPU to OSX

Using an NVIDIA eGPU with OSX

Installation Instructions

Connecting the eGPU

Do not connect the eGPU to your Macbook until instructed.

@ca4ti
ca4ti / macbook_pro_ubuntu_install.md
Created March 19, 2024 14:47 — forked from cjonesy/macbook_pro_ubuntu_install.md
Installing Ubuntu on MacBook Pro

Macbook Pro - Ubuntu Install

Requirements

2 USB drives > 2GB

Pre-Install

Create bootable USB drive

  1. Grab the latest Ubuntu Desktop iso image
@ca4ti
ca4ti / stable-diffusion-webui-termux.md
Created March 17, 2024 16:37 — forked from nviet/stable-diffusion-webui-termux.md
Install stable-diffusion-webui on Termux (Android) + PRoot

Install stable-diffusion-webui on Termux (Android) + PRoot

This will guide you on installing AUTOMATIC1111/stable-diffusion-webui on Termux (Android) + PRoot Distro. Make sure that you have a high-end phone to actually make this usable. On my phone with 8GB RAM, launch the webui alone take at least ~ 2 GB RAM, thus making it impossible to load any model and process further.

1. Prerequisites

First you have to install Termux and install PRoot. Then install and login to Ubuntu in PRoot

2. Installing AUTOMATIC1111/stable-diffusion-webui

@ca4ti
ca4ti / tts.sh
Created February 16, 2024 09:18 — forked from jerryOkafor/tts.sh
Quick and dirty IVR sounds for your Asterisk PBX
#!/bin/bash
#title : tts.sh
#description : This script will convert text to speech using Google translate API
# and then to Asterisk formats (wav, sln, gsm)
#
#author : Andrius Kairiukstis <k@andrius.mobi>
#date : 26 July 2013
#version : 0.1
#usage : bash tts.sh FILENAME VOICE PHRASE
@ca4ti
ca4ti / Sintetização e reconhecimento de voz em português.py
Created February 9, 2024 11:59 — forked from RonanUFPa/Sintetização e reconhecimento de voz em português.py
Script em Python para sintetização e reconhecimento de voz em português
'''
BAIXE TODOS OS ARQUIVOS NECESSÁRIOS AQUI: "https://drive.google.com/drive/folders/1FjKBlwf4PAZjI4K76uPzQ4e1d8EgQZww?usp=sharing", inclui todos os arquivos mencionados abaixo.
--------------------------------------------------------------------------------------------------------------------------
Antes de começarmos, vamos precisar instalar algumas bibliotecas, caso você utilize linux você nao terá erros. Contudo, se você utiliza windows, tem uma seção de soluções de erros.
--------------------------------------------------------------------------------------------------------------------------
pip install SpeechRecognition pyaudio
--------------------------------------------------------------------------------------------------------------------------
pip install pocketsphinx
--------------------------------------------------------------------------------------------------------------------------
Em caso de erros (Windows):
@ca4ti
ca4ti / echo.py
Created February 9, 2024 11:16 — forked from cenpect/echo.py
Mesclando reconhecimento de voz e TTS
from vosk import Model, KaldiRecognizer
import json
import pyttsx3
import pyaudio
import os
# Verificando modelo pre-treinado
if not os.path.exists("model-br"):
print ("Favor verificar existencia do modelo treinado em model-br.")
exit (1)
@ca4ti
ca4ti / gist:3b89945b51efe08942ef98643e0c74ef
Created November 2, 2023 08:30 — forked from ederwander/gist:1944257
Python Smith Trigger for frequency analysis
#ederwander
#date 10/02/2012
from __future__ import division
import math
import wave
import numpy as np
freq = 0.;
trigfact = 0.6;
@ca4ti
ca4ti / 1st_wr703n-image-create.sh
Created October 14, 2023 14:32 — forked from probonopd/1st_wr703n-image-create.sh
Working way to create a simple Ethernet/WLAN web radio player using a cheap tiny WR703N router and a cheap USB C-Media soundcard. Switch radio stations with the reset switch. -- THE ACTUAL CODE ON THIS PAGE IS ***OUTDATED***, use https://github.com/probonopd/minikrebs instead!
# http://www.aliexpress.com/item/New-Mini-Portable-Wireless-3G-Router-TP-LINK-TL-WR703N-150M-150Mbps-WR703N-Pocket-size-Wifi/948558329.html
# Someone should convince TP-Link to build this with more Flash, serial headers, bare board, *duino style...
# This is the starting point for a webradio appliance in the works
# TODO: Preconfigure everything, hook up Arduino for IR control sending and receiving
wget http://downloads.openwrt.org/attitude_adjustment/12.09/ar71xx/generic/OpenWrt-ImageBuilder-ar71xx_generic-for-linux-i486.tar.bz2
tar xfj OpenWrt-ImageBuilder*
cd "$HOME/Downloads/OpenWrt-ImageBuilder-ar71xx_generic-for-linux-i486"