This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/sh -e | |
# Copyright © 2025 Eli Soli | |
SRCDIR="src" | |
BUILDDIR="build" | |
CC="${CC:-gcc}" | |
LD="${LD:-ld}" | |
BUILDFLAGS="$CFLAGS $(tr '\n' ' ' < compile_flags.txt)" |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/sh -e | |
# Usage: netdrop Start server | |
# netdrop host-number file Send file to server | |
# netdrop host-number Send piped text to server | |
get_local_ip() { | |
ip route get 10.254.254.254 2> /dev/null | awk '{print $7; exit}' | |
} |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
/* | |
This file doesn't apply the Extension updates principles | |
mentioned in the Google's doc about userScripts. | |
Sources: | |
- https://developer.chrome.com/docs/extensions/reference/api/userScripts | |
- https://stackoverflow.com/questions/77578840/how-to-apply-dynamic-user-scripts-to-a-particular-tab-in-chrome-mv3-extension-u | |
*/ | |
(async () => { |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#include <math.h> | |
#include <pthread.h> | |
#include <assert.h> | |
#include <stdlib.h> | |
#include <time.h> | |
#include <stdio.h> | |
#define AMOUNT 500000 | |
typedef struct thProps thProps; | |
struct thProps { |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/bash | |
# -- Argv processing -- | |
debug_level=0 | |
max_threads=2 | |
max_threads_tc=9 | |
for (( i = 1; i < $#; i++ )); do | |
flag=${!i} |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
set nowrap | |
syntax on | |
set tabstop=2 | |
set shiftwidth=2 | |
set noexpandtab | |
set clipboard=unnamedplus | |
let g:markdown_recommended_style=0 | |
let g:python_recommended_style=0 |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
function! GetBytePosition() | |
" Get EOL character size | |
" DOS files end with CRLF (\r\n) | |
let eol = &fileformat == 'dos' ? 2 : 1 | |
let lines = getline(1, '$') | |
let row = line('.') | |
let col = col('.') | |
let pos = 0 |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/bash | |
function ask() { | |
read -p "$1 (Y/n): " response | |
[ -z "$response" ] || [ "$response" = 'y' ] | |
} | |
SYS="$HOME/sys" | |
DOWNLOADS="$HOME/Downloads" |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# as --32 -o main.o main.s | |
# ld -m elf_i386 -o main main.o | |
# ./main | xxd | |
.data | |
msg: .string "Hello, World!" | |
.text | |
.globl _start |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# as --32 -o main.o main.s | |
# ld -m elf_i386 -o main main.o | |
# ./main | xxd | |
.data | |
pointer: .long list | |
.bss | |
list: .space 10 |
NewerOlder