Skip to content

Instantly share code, notes, and snippets.

View BoQsc's full-sized avatar
💭
I may be slow to respond.

Feldwor BoQsc

💭
I may be slow to respond.
  • Public Domain
  • Baltic States
  • 23:58 (UTC +03:00)
View GitHub Profile
@leiless
leiless / cpuid_vendor_id.c
Last active February 25, 2024 16:35
Get CPU vendor ID string (works in Linux, Windows, macOS)
#include <stdio.h>
#ifdef _WIN32
#include <intrin.h> // __cpuid()
#endif
typedef unsigned int cpuid_t[4];
#define EAX 0
#define EBX 1
@BoQsc
BoQsc / Discord_add_download_links_to_emoji_in_the_chat.md
Last active September 5, 2022 17:21
🔮 A Tampermonkey script to Add Download Links to emojis in the chat (0.2 Refactored)
@nurmdrafi
nurmdrafi / JavaScript Hacks.md
Last active January 27, 2024 18:11
JavaScript Hacks by Rafé
@Nuc1eoN
Nuc1eoN / GettingStarted.md
Last active August 12, 2021 10:30
GoboLinux Community Guide

GoboLinux 017, in its current iteration, is mainly a source-based distribution. That means you will compile most of your packages with the help of so called "Recipes".

The following sections will help you getting started.

Installing GoboLinux 017

Installing GoboLinux on a bare metal system should be as simple as fetching the latest ISO, burning/flashing it onto your favorite installation medium (e.g. using balenaEtcher), startx and following the installation wizard. Just be aware that booting from a GPT/UEFI system is currently broken, and thus a legacy MBR setup is advised.

However most people may want to install GoboLinux in a virtual machine setup first. If you are one of those people, follow these instructions.

@Nuc1eoN
Nuc1eoN / liveGobo
Last active April 18, 2024 21:57
GoboLinux Qemu Setup
#!/bin/sh
## Runs the GoboLinux liveCD in a performant Qemu environment
#
# Make sure to check out https://wiki.gobolinux.org/Overview/Installing-Gobolinux/GoboLinux-017-Known-Issues-and-Fixes/
# Prepare disk image with 20GB -> `qemu-img create -f raw GOBO 20G`
#
# Note: During installation choose an MSDOS partition table! GPT will fail to boot!
qemu-system-x86_64 \
-cdrom GoboLinux-017-x86_64.iso \
@tcoppex
tcoppex / c_nostd.txt
Last active May 3, 2024 13:58
Writing C software without the standard library [Linux Edition] - Franc[e]sco's Gopherspace
###################################################################
Writing C software without the standard library
Linux Edition
###################################################################
There are many tutorials on the web that explain how to build a
simple hello world in C without the libc on AMD64, but most of them
stop there.
I will provide a more complete explanation that will allow you to
build yourself a little framework to write more complex programs.
@WiVi71
WiVi71 / BITS_DN.CMD
Last active December 28, 2023 01:13
Simple batch file script to download file with progress bar using BITSAdmin
@ECHO OFF
SETLOCAL ENABLEDELAYEDEXPANSION
FOR /F %%A IN ('COPY /Z "%~DPF0" NUL') DO SET "CR=%%A"
FOR /F %%B IN ('ECHO PROMPT $H ^| CMD') DO SET "BS=%%B"
(SET \N=^
%=_Empty_Line_=%
)
:BITS_DN
IF NOT [%2] == [] IF [%3] == [] GOTO BITS_SET
@eddiez9
eddiez9 / win_defend.bat
Created March 11, 2020 04:33
Delete definitions for Windows Defender with admin so you can do things.
cd "C:\Program Files\Windows Defender\" && MpCMDRun.exe -removedefinitions -all
@p3x-robot
p3x-robot / linux-get-ipv6-address.sh
Created January 19, 2020 07:24
Linux IPv6 addresses
sudo ip addr show dev enp1s0f2 | sed -e's/^.*inet6 \([^ ]*\)\/.*$/\1/;t;d'
@hoehrmann
hoehrmann / c11-lexer-grammar
Created June 22, 2018 22:10
C11 Lexer grammar
token = _
/ keyword
/ identifier
/ constant
/ string-literal
/ punctuator
preprocessing-token = _
/ header-name
/ identifier