PRETTY_NAME="Ubuntu 23.04"
NAME="Ubuntu"
VERSION_ID="23.04"
VERSION="23.04 (Lunar Lobster)"
VERSION_CODENAME=lunar
This file contains 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 | |
gdb -ex 'call (int)unbind_variable("<VAR_NAME>")' --pid=$$ --batch | |
#gdb -ex 'shell' --pid=$$ --batch |
This file contains 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 -ue | |
# Author: Pixailz | |
PATTERN=( | |
"\.git*" | |
"\.vscode" | |
"__pycache__" | |
"*\.o" | |
"*\.a" | |
) |
This file contains 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
#!/usr/bin/env bash | |
declare -a includes | |
function get_includes() | |
{ | |
local compiler="${1:-gcc}" | |
local language="${2:-c}" | |
local data beg_inc end_inc |
This file contains 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
#!/usr/bin/env python3 | |
import time | |
[ print(f"{i + 1} test") for i in range (0, 100) ] | |
def clear_screen(): | |
print("\x1b[2J\x1b[H", end="") | |
print("should clear the screen in 3sec") |
This file contains 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
# little script found on this repo https://github.com/gpoblon/libft | |
# need the see whats going one here (even in the make file, style method with tputs for the "cursor") | |
MYPATH=$(pwd) | |
CUR_MAKEFILE=$MYPATH/Makefile | |
if [ -e $CUR_MAKEFILE ] | |
then | |
echo "regenerate Makefile" | |
sed "`grep -n 'SRC =' $CUR_MAKEFILE | sed 's/:.*//'`, \$d" $CUR_MAKEFILE > NEWMAKEFILE | |
grep 'SRC =' $CUR_MAKEFILE >> NEWMAKEFILE |
This file contains 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
cat /proc/cpuinfo | sed -nE 's/flag.*:.(.*)/\1/p' | tr ' ' '\n' | sort -u |