Skip to content

Instantly share code, notes, and snippets.

View udiboy1209's full-sized avatar

Meet Udeshi udiboy1209

View GitHub Profile
@udiboy1209
udiboy1209 / mini-greeter-relpos.diff
Created October 2, 2019 07:34
Relative position patch for lightdm-mini-greeter
diff --unified --recursive --color lightdm-mini-greeter-0.3.4/data/lightdm-mini-greeter.conf lightdm-mini-greeter-0.3.4-new/data/lightdm-mini-greeter.conf
--- lightdm-mini-greeter-0.3.4/data/lightdm-mini-greeter.conf 2018-11-02 19:32:27.000000000 +0530
+++ lightdm-mini-greeter-0.3.4-new/data/lightdm-mini-greeter.conf 2019-09-15 23:52:02.692974802 +0530
@@ -56,3 +56,7 @@
password-color = "#F8F8F0"
# The background color of the password input.
password-background-color = "#1B1D1E"
+
+# Relative position of window on screen (0-1 float)
+x-pos = 0.5
@udiboy1209
udiboy1209 / dwm-custom-6.1.diff
Created May 7, 2018 10:59
DWM powerline statusbar, gaps, padding, no vacant tags, all titles patch
diff --git a/config.def.h b/config.def.h
index a9ac303..51e2ab0 100644
--- a/config.def.h
+++ b/config.def.h
@@ -2,6 +2,7 @@
/* appearance */
static const unsigned int borderpx = 1; /* border pixel of windows */
+static const unsigned int gappx = 1; /* gap pixel between windows */
static const unsigned int snap = 32; /* snap pixel */

ASM basics

  • %r** and %e** are registers. Registers store output of instructions and can be used to give input to instructions
  • when writing (%r**), it is accessing memory location given by value of register %r**. Its like pointer dereferencing. A number before a memory access applies an offset to the accessed location. -8(%rdi) would get value at memory location given by %rdi-8.
  • %rdi register is used internally to pass reference of class instance to a member function of that class.
  • %rbp register stores the location of start of stack frame of that function. That is why all temp values will be stored relative to it. Stacks grow downward (towards 0) hence you see so many negative offsets.
@udiboy1209
udiboy1209 / main.py
Created February 8, 2017 14:23
Modified kivent example 14
from kivy.app import App
from kivy.core.window import Window
from kivy.clock import Clock
from kivy.uix.widget import Widget
from kivy.properties import StringProperty
from kivent_core.systems.gamesystem import GameSystem
from kivent_core.managers.resource_managers import texture_manager
from os.path import dirname, join, abspath
from kivent_maps import map_utils
from kivent_maps.map_system import MapSystem
@udiboy1209
udiboy1209 / kivent-install.sh
Created November 8, 2016 20:01
Installer script for kivent
#!/bin/bash
#####################################
#
# Installer script for kivent modules
# Author: Meet Udeshi
#
#####################################
############ CONFIG ###########