Skip to content

Instantly share code, notes, and snippets.

View griimick's full-sized avatar
🦫
Where's my fish?

Soumik griimick

🦫
Where's my fish?
View GitHub Profile
@tallguyjenks
tallguyjenks / logseq-Gruvbox.css
Last active December 12, 2024 01:46
Logseq Gruvbox
@import url("https://fonts.googleapis.com/css2?family=Fira+Code:wght@300;400;500;700&family=Fira+Sans:ital,wght@0,300;0,400;0,500;0,700;1,300;1,400;1,500;1,700&display=swap");
:root {
--background: #282828;
--light-background: #3c3836;
--lighter-background: #504945;
--dark-background: #3c3836;
--darker-background: #1d2021;
--foreground: #ebdbb2;
--current-line: #504954;
#!/bin/bash
# Script to enable oplog tailing in a production meteor deployment using mongodb 4.0 or later
echo "# Enabling replication, required for oplog tailing" >> /etc/mongod.conf
echo "replication:" >> /etc/mongod.conf
echo " oplogSizeMB: 100" >> /etc/mongod.conf
echo " replSetName: rs0" >> /etc/mongod.conf
systemctl restart mongod
@xarinatan
xarinatan / networked pulseaudio.md
Last active March 28, 2025 16:45
How to set up PulseAudio over Network

How to set up PulseAudio over Network

PulseAudio actually has great networking capabilities. Especially when combined with Avahi/Zeroconf it is especially easy to set up, though technically it should also be possible without.

Setting up the server

  • Open /etc/pulseaudio/default.pa
  • At the end of the file, add load-module module-native-protocol-tcp auth-ip-acl=127.0.0.1;192.168.254.0/24 auth-anonymous=1 to activate networked audio from 192.168.254.0-255 without needing authentication.
  • Kill pulseaudio, it should be auto-restarted, or restart your login session to activate the changes. You should now be able to set PULSE_SERVER=192.168.254.XXX and have the remote audio working! If not check the firewall settings, PulseAudio seems to open a random port by default.

Setting up automatic configuration and discovery

  • On both the server and client, install pulseaudio-module-zeroconf and avahi, then after installing make sure Avahi always runs by running systemctl enable --now avahi-daemon
@sreetamdas
sreetamdas / a-rendezvous-with-cassidoo.md
Last active March 25, 2025 08:01
Rendezvous with Cassidoo: solutions to interview questions of the week from the [rendezvous with cassidoo newsletter](https://buttondown.email/cassidoo)

Rendezvous with Cassidoo Solutions

Solutions to the interview question of the week from the rendezvous with cassidoo newsletter

Solutions in the following languages:

  • TypeScript
  • Elixir

Inspired and forked from jda0

@jdmichaud
jdmichaud / Compressed UDP feed
Last active July 28, 2022 16:47
Create a virtual monitor and stream it
# Transmit a x264 compressed low latency feed using udp
server: gst-launch-1.0 videotestsrc is-live=true ! videoconvert ! x264enc speed-preset=ultrafast tune=zerolatency byte-stream=true threads=1 key-int-max=15 intra-refresh=true ! rtph264pay ! udpsink host=%d port=9002
client: gst-launch-1.0 udpsrc port=9002 caps='application/x-rtp' ! rtph264depay ! avdec_h264 ! videoconvert ! autovideosink sync=false async=false
@nik-garg
nik-garg / .vimrc
Last active May 5, 2021 21:09
Vimrc using Vim Plug
" required before initialization
set nocompatible " disable compatibility mode with vi
" Calling plugin system
call plug#begin('~/.vim/plugged')
Plug 'nanotech/jellybeans.vim' " Vim color scheme
Plug 'pangloss/vim-javascript' " JavaScript bundle for vim, this bundle provides syntax highlighting and improved indentation
Plug 'digitaltoad/vim-pug' " Vim syntax highlighting for Pug (formerly Jade) templates
Plug 'Raimondi/delimitMate' " Provides insert mode auto-completion for quotes, parens, brackets, etc.
@drilonrecica
drilonrecica / android-version-and-tag-automation.sh
Last active May 30, 2024 05:48
Bash script for automating versioning (versionCode & versionName) and setting git Tag in an android project
# Proccess:
# 1. Go into app directory
# 2. Get current versionCode and print it
# 3. Increment versionCode by one and print it
# 4. Get current versionName and print it
# 5. Ask user for new versionName and set it then print it
# 6. Stage changes to build.gradle
# 7. Go back one directory to project root
# 8. Commit version update with message Bumped up version
# 9. Tag with versionName

Behavioral Interviewing

While there are a number of definitions, for our purposes, soft skills are all of the skills that are not technical. Meaning - the you that shows up the interview, as well as your technical ability. Your interview is composed of your technical prowess, as well as your soft-skills and ability to answer non-technical questions around teamwork, leadership, failure (yes), ability to adapt, timeliness, and communication skills.

If you have heard of the airport test - when hiring managers ask themselves would I want to be stuck in an airport with this person? - your non-technical stories will help them answer that question. In short: non-technical questions will ask you to tell a number of stories that supplement your technical mastery.

Interviews are subjective, based off of who’s interviewing you. When you prepare for soft-skill questions, understand the value that you can bring to a company as well as your goals and interests. You will deliver better answers and be more con

@threepointone
threepointone / for-snook.md
Last active December 3, 2024 21:48
For Snook

https://twitter.com/snookca/status/1073299331262889984?s=21

‪“‬In what way is JS any more maintainable than CSS? How does writing CSS in JS make it any more maintainable?”

‪Happy to chat about this. There’s an obvious disclaimer that there’s a cost to css-in-js solutions, but that cost is paid specifically for the benefits it brings; as such it’s useful for some usecases, and not meant as a replacement for all workflows. ‬

‪(These conversations always get heated on twitter, so please believe that I’m here to converse, not to convince. In return, I promise to listen to you too and change my opinions; I’ve had mad respect for you for years and would consider your feedback a gift. Also, some of the stuff I’m writing might seem obvious to you; I’m not trying to tell you if all people of some of the details, but it might be useful to someone else who bumps into this who doesn’t have context)‬

So the big deal about css-in-js (cij) is selectors.

@griimick
griimick / .vimrc
Last active December 1, 2020 11:01
Vim configurations
set nocompatible
filetype off
"
" Vim Vundle configurations and package list
"
set rtp+=~/.vim/bundle/Vundle.vim
call vundle#begin()
Plugin 'gmarik/Vundle.vim'