Skip to content

Instantly share code, notes, and snippets.

View hrushikeshj's full-sized avatar

Hrushikesh hrushikeshj

  • Bengaluru, India
View GitHub Profile
@hrushikeshj
hrushikeshj / install_mysql_in_wsl.md
Created March 23, 2021 15:34 — forked from zhensongren/install_mysql_in_wsl.md
Set up MySQL on local machine (Windows Subsystem for Linux, WSL2)

Upgrade the Repositories

sudo apt update sudo apt upgrade

Install MySQL 5.7

sudo apt install mysql-server

Secure MySQL Installation

sudo apt install mysql-server #To do the high security provide all answers to yes

@hrushikeshj
hrushikeshj / nested_content_snippet.rb
Created July 15, 2023 16:10 — forked from abhilashak/nested_content_snippet.rb
Nested content tags in rails 5 view helpers
# because i can never remember exactly how and when to use concat
# when building content in helpers
def nested_content
content_tag 'div' do
concat(content_tag 'span', 'span block')
concat(tag 'br')
concat(link_to 'root link', root_path)
concat(tag 'br')
concat(link_to('#') do
concat(content_tag 'h2', 'Head \'em off')
#!/bin/bash
#
# RECHECK - interbal to check if filw was created
# bash /tail_all.sh /output.log /common.log /master.log /master_edgemesh.log
# bash /tail_all.sh /output.log /common.log /edge.log /edge_edgemesh.log
set -eo pipefail
file_try_again_time="5s"
if [[ -v RECHECK ]]; then
@hrushikeshj
hrushikeshj / memory_layout.md
Created July 24, 2024 16:48 — forked from CMCDragonkai/memory_layout.md
Linux: Understanding the Memory Layout of Linux Executables

Understanding the Memory Layout of Linux Executables

Required tools for playing around with memory:

  • hexdump
  • objdump
  • readelf
  • xxd
  • gcore