Skip to content

Instantly share code, notes, and snippets.

View sabinM1's full-sized avatar
💤
breaking my sleep schedule even more

Maxim Sabin sabinM1

💤
breaking my sleep schedule even more
View GitHub Profile
@sabinM1
sabinM1 / audio.html
Created January 30, 2021 09:27
Simplified version of media-session/audio
<!doctype html>
<!--
Copyright 2021 Google Inc. All Rights Reserved.
Licensed under the Apache License, Version 2.0 (the "License");
you may not use this file except in compliance with the License.
You may obtain a copy of the License at
http://www.apache.org/licenses/LICENSE-2.0
@sabinM1
sabinM1 / ActualRAM.jar.sha256sum
Created June 16, 2021 07:45
ActualRAM decompiled
4df96ccf72becd2f1bc68b1360e5a62be3cd9fc6e6efed1e8bf1bb85cd178a1e
#!/bin/bash
# Forbid root rights
[ "$EUID" == "0" ] && echo -e "\e[91mDon't use sudo or root user to execute these scripts!\e[0m" && exit
export ALBUME="$PWD/albums.txt"
: > "$ALBUME" # clear (and create) file
for dir in ./*/
@sabinM1
sabinM1 / .bashrc
Created September 18, 2021 15:05
.bashrc
#
# ~/.bashrc
#
# get current branch in git repo
function parse_git_branch() {
BRANCH=`git branch 2> /dev/null | sed -e '/^[^*]/d' -e 's/* \(.*\)/\1/'`
if [ ! "${BRANCH}" == "" ]
then

Keybase proof

I hereby claim:

  • I am sabinm1 on github.
  • I am sabinm (https://keybase.io/sabinm) on keybase.
  • I have a public key ASC-1UfaG1cpAggsty4OOQfy6tJcADcdU5K8uQizUkZYrQo

To claim this, I am signing this object:

@sabinM1
sabinM1 / LICENSE
Last active October 19, 2021 15:25
@
Attribution-ShareAlike 4.0 International
=======================================================================
Creative Commons Corporation ("Creative Commons") is not a law firm and
does not provide legal services or legal advice. Distribution of
Creative Commons public licenses does not create a lawyer-client or
other relationship. Creative Commons makes its licenses and related
information available on an "as-is" basis. Creative Commons gives no
warranties regarding its licenses, any material licensed under their
@sabinM1
sabinM1 / gdb_commands.txt
Last active December 9, 2021 18:26
gdb commands
info gdb //Manual
info locals //Vars in local scope
info variables //Vars declared outside current scope
info functions //Names and datatypes of all defined functions
info b //List all breakpoints
break funcName //Set breakpoint at function funcName (short: b funcName)
break file::line //Set breakpoint at line in file
layout next //Cycle through the layouts of gdb
p var //Print the value of variable var
p var = value //Force set value to a var
@sabinM1
sabinM1 / dir_files.txt
Last active December 13, 2021 14:36
termius-app upgrade error
MYUSERNAME@PC > pwd
/home/MYUSERNAME/.cache/yay/termius-app/src
MYUSERNAME@PC > ls -lha
total 77M
drwxr-xr-x 3 MYUSERNAME MYUSERNAME 4,0K dec 13 16:20 .
drwxr-xr-x 4 MYUSERNAME MYUSERNAME 4,0K dec 13 16:20 ..
-rw-r--r-- 1 MYUSERNAME MYUSERNAME 4,0K ian 1 1970 control.tar.gz
-rw-r--r-- 1 MYUSERNAME MYUSERNAME 77M ian 1 1970 data.tar.xz
-rw-r--r-- 1 MYUSERNAME MYUSERNAME 4 ian 1 1970 debian-binary
-rw-r--r-- 1 MYUSERNAME MYUSERNAME 1,7K dec 13 16:20 pkgs-7.27.0
@sabinM1
sabinM1 / foartetare.md
Last active April 25, 2022 11:59
vulkan pe csgo pe linux (ce a mers pentru mine)

cum sa faci sa mearga vulkan pe cs (cel putin ce a mers pt mine)

furat inspiratie de la: ValveSoftware/csgo-osx-linux#2949 (comment)

  1. vezi daca merge normal (adaugi -vulkan la argumente optionale)
  2. daca nu:
  • instalezi gperftools (yay -S gperftools) daca nu il ai deja
  • ar trebui sa apara /usr/lib/libtcmalloc_minimal.so.4.5.9
  • stergi libtcmalloc_minimal.so si variatiile (libtcmalloc_minimal.so.0, libtcmalloc_minimal.so.4) din steamapps/common/Counter-Strike Global Offensive/bin/linux64/
  • copiezi /usr/lib/libtcmalloc_minimal.so.4.5.9 in locatia de mai sus, cu numele respective (....so, ....so.0, ....so.4)
  • pune -vulkan la argumente pe steam la csgo
@sabinM1
sabinM1 / end.gcode
Created March 30, 2023 16:40
Start/End G-CODE PrusaSlicer
G4 ; wait
M140 S0 ; turn off heatbed
M107 ; turn off fan
{if layer_z < max_print_height}G1 Z{z_offset+min(layer_z+30, max_print_height)}{endif} ; Move print head up
G1 X0 Y200; home X axis
G1 E10 F70 ; extrude 10mm
G1 E-65 F1500 ; -65mm, pregatire pentru un print nou / nozzle change
M104 S0 ; turn off temperature
M84 ; disable motors