Skip to content

Instantly share code, notes, and snippets.

View vic3t3chn0's full-sized avatar
🏠
Working from home

Pedro Dias Vicente (Gleentech Solutions) vic3t3chn0

🏠
Working from home
View GitHub Profile
@vic3t3chn0
vic3t3chn0 / brew_airyx.patch
Last active January 31, 2022 18:36 — forked from cielavenir/linuxbrew_freebsd.patch
Linuxbrew on FreeBSD
diff --git a/Library/Homebrew/cmd/install.rb b/Library/Homebrew/cmd/install.rb
index 0f9a00a..c2bed9e 100644
--- a/Library/Homebrew/cmd/install.rb
+++ b/Library/Homebrew/cmd/install.rb
@@ -299,7 +299,7 @@ module Homebrew
def symlink_ld_so
ld_so = HOMEBREW_PREFIX/"lib/ld.so"
return if ld_so.readable?
- sys_interpreter = ["/lib64/ld-linux-x86-64.so.2", "/lib/ld-linux.so.3", "/lib/ld-linux.so.2", "/lib/ld-linux-armhf.so.3"].find do |s|
+ sys_interpreter = ['/libexec/ld-elf.so.1'].find do |s|
sudo apt install build-essential autoconf bison flex texinfo \
help2man gawk libtool libncurses5-dev python3-dev \
python3-distutils git libtool-bin
git clone http://github.com/crosstool-ng/crosstool-ng
cd crosstool-ng
./bootstrap
./configure && make
@vic3t3chn0
vic3t3chn0 / qemu-snapshot.txt
Last active September 27, 2022 11:48
qemu snapshot
#!/bin/bash -e
qemu-img create -f qcow2 fedora.img 60G
curl -L -o Fedora-Workstation-Live-x86_64-36-1.5.iso https://download.fedoraproject.org/pub/fedora/linux/releases/36/Workstation/x86_64/iso/Fedora-Workstation-Live-x86_64-36-1.5.iso
qemu-system-x86_64 \
-m 4G \
-vga virtio \
-cdrom Fedora-Workstation-Live-x86_64-36-1.5.iso \
-accel hvf \
@vic3t3chn0
vic3t3chn0 / mainwindow.cc
Last active October 7, 2023 09:12
gtk macos
mainwindow.cc:
#include <gtk/gtk.h>
static void
activate (GtkApplication* app,
gpointer user_data)
{
GtkWidget *window;
@vic3t3chn0
vic3t3chn0 / Makefile_v1
Created October 7, 2023 09:18
makefile v1
all:
world
#clean:
# rm example-0
# Para despues / for after, for libs
world:
rm example-0 && gcc `pkg-config --cflags gtk+-3.0` -o example-0 mainwindow.cc `pkg-config --libs gtk+-3.0`