Skip to content

Instantly share code, notes, and snippets.

View aasutossh's full-sized avatar
🌻
It's okay. You'll be fine.

Aasutosh Jha aasutossh

🌻
It's okay. You'll be fine.
View GitHub Profile
@aasutossh
aasutossh / jquery.centerit.js
Created February 22, 2021 05:09 — forked from tim-reynolds/jquery.centerit.js
Setting scroll to center on an element (jQuery) - Super simple stuff
/*
If you have a horizontal (or vertical) scroll container and want to set the scroll to center a specific
element in the container you can use the following super simple technique.
I'm going to show you how it was derived, because it's important to know why, not just how.
*/
/*
Setup:
[HTML]
<div class="outer">

LESS Coding Guidelines

Medium uses a strict subset of LESS for style generation. This subset includes variables and mixins, but nothing else (no nesting, etc.).

Medium's naming conventions are adapted from the work being done in the SUIT CSS framework. Which is to say, it relies on structured class names and meaningful hyphens (i.e., not using hyphens merely to separate words). This is to help work around the current limits of applying CSS to the DOM (i.e., the lack of style encapsulation) and to better communicate the relationships between classes.

Table of contents

@aasutossh
aasutossh / gist:673593b5b1f6b80a3e0e402ec4243fcc
Last active April 23, 2020 04:37 — forked from Namibnat/gist:3b6d666c8f4961b9f4726d5c5e40f7de
Setting up a Postgresql server for a Django website on Arch Linux
Basically, notes for myself.
This is a step by step guide that I use to get a postgresql database
set up for a new django website.
Postgresql has a user, postgres, that is used for certain config aspects:
If you're on a new machine without a database cluster setup start with
As root:
# pacman -Syu
@aasutossh
aasutossh / tmux-cheatsheet.markdown
Created March 2, 2020 10:21 — forked from MohamedAlaa/tmux-cheatsheet.markdown
tmux shortcuts & cheatsheet

tmux shortcuts & cheatsheet

start new:

tmux

start new with session name:

tmux new -s myname
Name: Flash
Serial: eNrzzU/OLi0odswsqnHLSSzOqDGoca7JKCkpsNLXLy8v1ytJTczVLUotKNFLzs8FAJHYETc=
if anyone wants to thank ETH: 0x527c2aB55b744D6167dc981576318af96ed26676
Thank you!

Ref: https://gist.github.com/vertexclique/9839383

For 3143 build 2017.09.14

VERSION PLATFORM OFFSET ORIGINAL CRACKED
3143 macOS 0x65D4 55 C3
3143   macOS   0x6219 55       C3    
3143 macOS   0x75214 55 48 89 E5 41 57 41 56 48 C7 C0 01 00 00 00 C3