Skip to content

Instantly share code, notes, and snippets.

View snbk97's full-sized avatar
👽

Sayan Bhowmik snbk97

👽
View GitHub Profile
@rufoa
rufoa / patch.sh
Last active February 2, 2024 06:41
sublime merge 2 build 2068 linux
#!/bin/bash
set -o errexit
set -o nounset
set -o pipefail
target="${1:-/opt/sublime_merge/sublime_merge}"
check_sha() {
local sha_valid
@jonathanlaf
jonathanlaf / HowToSlackDark.md
Last active November 2, 2023 17:19
[Dark Slack] How to hack Slack to get a dark theme #slack #css #hack

🔥 How to "Hack" Slack to get a dark theme. 🔥

Slack Dark Theme

❗ Close Slack if it's running ❗

Installing theme

In your favorite text editor, open the following file :

  • Windows C:\Users\\AppData\Local\slack\app-\resources\app.asar.unpacked\src\static\ssb-interop.js
@muhammad-ahsan
muhammad-ahsan / Procrastination Daemons
Last active August 11, 2022 16:46
Roadmap to Self Improvement and Enhancement
How To Stop Procrastinating | Cure Procrastination Forever | Dan Lok
The Perfectionist (I should do it perfectly)
The Lazy Bastard (Weather is not good today)
The Comparer (Others are better so better not try)
The Futurist (What will happen in future)
The Idiot (I don't know)
The Dumb Listener (My friend advised to take medicine instead of exercise)
The Hooper (Switcher)
The Shit Maker (Everything is dirty)
@vikas027
vikas027 / linux_mint_wifi_et3290_fix.txt
Created August 13, 2017 13:41
Linux Mint 18 WiFi rt3290 fix
### Fix for linux-firmware
I had some warnings/errors while installing linux-firmware
# dpkg -i linux-firmware_1.158_all.deb
update-initramfs: Generating /boot/initrd.img-4.8.0-53-generic
W: Possible missing firmware /lib/firmware/i915/kbl_dmc_ver1_01.bin for module i915
Warning: No support for locale: en_AU.utf8
#
To fix this
@dannguyen
dannguyen / selenium-screenshotting.md
Last active February 15, 2023 15:59
Using Selenium and Python to screenshot a javascript-heavy page

Using Selenium and Python to screenshot a javascript-heavy page

As websites become more JavaScript heavy, it's harder to automate things like screenshotting for archival purposes. I've seen examples and suggestions to use PhantomJS for visual testing/archiving of websites, but have run into issues such as the non-rendering of webfonts. I've never tried out Selenium until today...and while I'm not thinking about performance implications yet, Selenium seems far more accurate than PhantomJS...which makes sense since it actually opens a real browser. And it's not too hard to script to do complex interactions: here's an [example of how to log in to Twitter, write a tweet, upload an image, and send a tweet via Selenium and DOM element selection](https://gist.github.com/dannguyen/8a6fa49253c1d6a0eb92

@pazdera
pazdera / adapter.py
Created August 15, 2011 07:38
Example of `adapter' design pattern in Python
#!/usr/bin/env python
# -*- coding: utf-8 -*-
# Example of `adapter' design pattern
# Copyright (C) 2011 Radek Pazdera
# This program is free software: you can redistribute it and/or modify
# it under the terms of the GNU General Public License as published by
# the Free Software Foundation, either version 3 of the License, or
# (at your option) any later version.
@pazdera
pazdera / gist:1098119
Created July 21, 2011 20:25
Singleton example in C++
/*
* Example of a singleton design pattern.
* Copyright (C) 2011 Radek Pazdera
* This program is free software: you can redistribute it and/or modify
* it under the terms of the GNU General Public License as published by
* the Free Software Foundation, either version 3 of the License, or
* (at your option) any later version.
* This program is distributed in the hope that it will be useful,