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 / end.gcode
Created December 20, 2023 20:26
start/end gcode Aquila
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
@sabinM1
sabinM1 / launch.json
Created November 11, 2023 16:15
VSCode C++ tasks for Windows; shortcut "run build task" to F5; launch.json only for debugging
{
// Use IntelliSense to learn about possible attributes.
// Hover to view descriptions of existing attributes.
// For more information, visit: https://go.microsoft.com/fwlink/?linkid=830387
"version": "0.2.0",
"configurations": [
{
"name": "(gdb) Launch",
"type": "cppdbg",
"request": "launch",
@sabinM1
sabinM1 / auto.java
Created August 5, 2023 23:18
a(mongus)uto
/* Copyright (c) 2017 FIRST. All rights reserved.
*
* Redistribution and use in source and binary forms, with or without modification,
* are permitted (subject to the limitations in the disclaimer below) provided that
* the following conditions are met:
*
* Redistributions of source code must retain the above copyright notice, this list
* of conditions and the following disclaimer.
*
* Redistributions in binary form must reproduce the above copyright notice, this
@sabinM1
sabinM1 / coada_stiva.cpp
Created April 20, 2023 11:37
Coada, stiva
#include <bits/stdc++.h>
using namespace std;
ifstream fin("text.in");
struct nod{
int info;
nod *urm;
};
@sabinM1
sabinM1 / 36ded88d-231f-42aa-9b59-6d9ee76faf80.txt
Last active April 1, 2023 23:39
Wavelet custom EQ for Kimera Celest Gumiho planar in-ear monitors
GraphicEQ: 20 -5.2; 21 -5.2; 22 -5.2; 23 -5.2; 24 -5.2; 26 -5.2; 27 -5.2; 29 -5.2; 30 -5.2; 32 -5.2; 34 -5.2; 36 -5.2; 38 -5.2; 40 -5.2; 43 -5.2; 45 -5.2; 48 -5.2; 50 -5.2; 53 -5.2; 56 -5.2; 59 -5.2; 63 -5.2; 66 -5.2; 70 -5.2; 74 -5.2; 78 -5.2; 83 -5.2; 87 -5.2; 92 -5.2; 97 -5.2; 103 -5.2; 109 -5.2; 115 -5.2; 121 -5.2; 128 -5.2; 136 -5.2; 143 -5.2; 151 -5.1; 160 -5.1; 169 -5.1; 178 -5.1; 188 -5.1; 199 -5.1; 210 -5.1; 222 -5.1; 235 -5.0; 248 -5.0; 262 -5.0; 277 -5.0; 292 -4.9; 309 -4.9; 326 -4.9; 345 -4.8; 364 -4.8; 385 -4.7; 406 -4.7; 429 -4.6; 453 -4.6; 479 -4.5; 506 -4.4; 534 -4.3; 565 -4.3; 596 -4.2; 630 -4.1; 665 -4.0; 703 -3.9; 743 -3.9; 784 -3.8; 829 -3.8; 875 -3.7; 924 -3.7; 977 -3.8; 1032 -3.8; 1090 -3.9; 1151 -4.1; 1216 -4.3; 1284 -4.5; 1357 -4.8; 1433 -5.2; 1514 -5.6; 1599 -6.1; 1689 -6.7; 1784 -7.2; 1885 -7.5; 1991 -7.5; 2103 -7.4; 2221 -7.1; 2347 -7.0; 2479 -6.9; 2618 -7.0; 2766 -7.1; 2921 -7.4; 3086 -7.8; 3260 -7.9; 3443 -7.8; 3637 -7.4; 3842 -6.7; 4058 -5.9; 4287 -5.0; 4528 -4.2; 4783 -3.3; 5052
@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
@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 / 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 / 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 / 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