Skip to content

Instantly share code, notes, and snippets.

View murmurlab's full-sized avatar
:octocat:
Hiçbir şey yokken hiçbir şey var, karanlıklardan doğar aydınlıklar.

murmurabilis murmurlab

:octocat:
Hiçbir şey yokken hiçbir şey var, karanlıklardan doğar aydınlıklar.
View GitHub Profile
@murmurlab
murmurlab / form-elements.css
Created June 26, 2025 07:04
my metalic theme, maybe i can continue to develop
.metalic {
z-index: 0;
background-blend-mode: difference;
box-sizing: border-box;
&:is(:is(input), :has(input))
{ /* self or descendant is input, so input associated */
/* display: none; */
input&, & input{ /* all input elements */
appearance: none;
@murmurlab
murmurlab / 01.bash_shortcuts_v2.md
Created January 14, 2025 21:45 — forked from tuxfight3r/01.bash_shortcuts_v2.md
Bash keyboard shortcuts

Bash Shortcuts

visual cheetsheet

Moving

command description
ctrl + a Goto BEGINNING of command line
@murmurlab
murmurlab / get_line_segment.cpp
Last active November 8, 2024 21:07
function that returns a row with known maximum size
// todo: to avoid passing a variadic-size value to read-size argument in read(),
// give constant-size argument to read-size argument, In this case it will read
// constant-size byte and will store in the buff1 and if nl is not exist when
// checked nl in buff1 then part of buff1 that not contains nl is stored in
// buff2 then read again and store to buff1. Finally, concatenate buff2 with up
// to the nl part of buff1. buff2 must be read-size bytes in size.
string get_line_segment(int des) {
static char buff[BUF_LEN] = { };
static size_t req_len = BUF_LEN - 1;
static size_t res_len = read(des, buff, req_len);
#! /bin/bash
if [ $# -lt 2 ]; then
echo "usage: $0 <tar name> <dest to backup dir> [exclude files...]"
exit 1
fi
# $1 -> tar name
# $2 -> dest to backup
# ${@:3}
typedef union flt
{
float num;
struct
{
char b1;
char b2;
char b3;
char b4;
alias normod="$HOME/sources/repos/gnome-gamma-tool/gnome-gamma-tool.py -c 1.1 -g 0.95 -b 1 -t 5500"
alias kodmod="$HOME/sources/repos/gnome-gamma-tool/gnome-gamma-tool.py -c 1.2 -g 1 -b 1 -t 5500"
#!/bin/sh
set -e
# Before we get the token, redirect stdout to stderr.
exec 3>&1 1>&2
export LC_ALL=C
echo() {
#include <iostream>
using std::cout;
using std::cin;
using std::endl;
using std::string;
# define ﷲ main
# define ﷳ return
# define ﷰ int
CFRunLoopAddObserver|CFRunLoopAddTimer|CFRunLoopGetMain|CFRunLoopObserverCreate|CFRunLoopTimerCreate|CFRunLoopTimerInvalidate|NSApp|NSDefaultRunLoopMode|OBJC_CLASS_$_NSApplication|OBJC_CLASS_$_NSDate|OBJC_CLASS_$_NSNotificationCenter|OBJC_CLASS_$_NSOpenGLContext|OBJC_CLASS_$_NSOpenGLPixelFormat|OBJC_CLASS_$_NSOpenGLView|OBJC_CLASS_$_NSRunningApplication|OBJC_CLASS_$_NSString|OBJC_CLASS_$_NSWindow|OBJC_METACLASS_$_NSObject|OBJC_METACLASS_$_NSOpenGLView|OBJC_METACLASS_$_NSWindow|TransformProcessType|__CFConstantStringClassReference|__bzero|__cxa_atexit|__stack_chk_fail|__stack_chk_guard|__stderrp|_objc_empty_cache|atoi|close|cos|exit|fputs|free|fwrite|glActiveTexture|glAttachShader|glBindBuffer|glBindTexture|glBlendEquation|glBlendFunc|glBufferData|glClear|glClearColor|glCompileShader|glCreateProgram|glCreateShader|glDeleteBuffers|glDeleteProgram|glDeleteShader|glDeleteTextures|glDisable|glDisableVertexAttribArray|glDrawArrays|glEnable|glEnableVertexAttribArray|glFlush|glGenBuffers|glGenTextures|glGetAttribLoca
@murmurlab
murmurlab / Makefile
Last active September 28, 2024 05:06
mk makefilesi, birisi cpp icin
CC = clang++
CXXFLAGS = -std=c++98 -pedantic
LXXFLAGS =
RUNFLAGS =
NAME = program
LIB =
SRC_DIR = .
INC_DIR =