Skip to content

Instantly share code, notes, and snippets.

View gridhead's full-sized avatar
🚀
Underpromise and overdeliver

Akashdeep Dhar gridhead

🚀
Underpromise and overdeliver
View GitHub Profile
@gridhead
gridhead / calc-anohana-the-flower-we-saw-that-day-s01eXX.csv
Last active December 5, 2021 15:41
Calculation Size Decrease (1080p30 to 720p30 with H.265 MKV Handbrake preset)
We can make this file beautiful and searchable if this error is corrected: It looks like row 7 should actually have 7 columns, instead of 2 in line 6.
#,Filename,Source Spec,Destination Spec,Source Size (MB),Destination Size (MB),Percentage Change (%)
1,Anohana The Flower We Saw That Day (2011) S01E01,Video 1920x1080 (H.265 Main 10) / Audio MPEG-4 AAC 100kbps,Video 1280x720 (H.265 Main) / Audio MPEG-4 AAC 160kbps,223,156,-42.95
2,Anohana The Flower We Saw That Day (2011) S01E02,Video 1920x1080 (H.265 Main 10) / Audio MPEG-4 AAC 100kbps,Video 1280x720 (H.265 Main) / Audio MPEG-4 AAC 160kbps,257,183,-40.44
3,Anohana The Flower We Saw That Day (2011) S01E03,Video 1920x1080 (H.265 Main 10) / Audio MPEG-4 AAC 100kbps,Video 1280x720 (H.265 Main) / Audio MPEG-4 AAC 160kbps,247,175,-41.14
4,Anohana The Flower We Saw That Day (2011) S01E04,Video 1920x1080 (H.265 Main 10) / Audio MPEG-4 AAC 100kbps,Video 1280x720 (H.265 Main) / Audio MPEG-4 AAC 160kbps,218,152,-43.42
5,Anohana The Flower We Saw That Day (2011) S01E05,Video 1920x1080 (H.265 Main 10) / Audio MPEG-4 AAC 100kbps,Video 1280x720 (H.265 Main) / Audio MPEG-4 AAC 160kbps,212,149,-42.28
6,Anohana The Flower We
@gridhead
gridhead / etherpad-noarch.Dockerfile
Created August 22, 2021 13:11
Etherpad Dockerfile
FROM docker.io/library/node:latest
LABEL maintainer "Akashdeep Dhar <t0xic0der@fedoraproject.org>"
WORKDIR /data
RUN git clone --branch master https://github.com/ether/etherpad-lite.git .
EXPOSE 9001
ENTRYPOINT ["sh", "/data/src/bin/run.sh", "--root"]
@gridhead
gridhead / gitblit-noarch.Dockerfile
Last active August 22, 2021 16:11
GitBlit Dockerfile
FROM centos:latest
LABEL maintainer "Akashdeep Dhar <t0xic0der@fedoraproject.org>"
RUN ["dnf", "install", "java", "wget", "-y"]
RUN ["wget", "https://github.com/gitblit/gitblit/releases/download/v1.9.1/gitblit-1.9.1.tar.gz"]
RUN ["tar", "-xvzf", "gitblit-1.9.1.tar.gz"]
RUN ["rm", "gitblit-1.9.1.tar.gz"]
WORKDIR /gitblit-1.9.1
EXPOSE 8080 8443 9418 29418
ENTRYPOINT ["sh", "/gitblit-1.9.1/gitblit.sh"]
@gridhead
gridhead / zeb_py_usage.md
Created August 28, 2021 15:57
Zeb Py Usage
  1. git clone https://github.com/zebpay/zeb_py.git
  2. cd zeb_py
  3. virtualenv venv
  4. source venv/bin/activate
  5. python3 setup.py install
  6. pip3 install requests pycrypto
  7. Add from zebpay_client import zebpay_rest_client in your module to use functions
@gridhead
gridhead / easyfix.md
Created August 30, 2021 13:37
Websites and Apps Architecture Diagram

1

@gridhead
gridhead / chanlist.md
Last active November 12, 2021 07:01
Channels that I am a part of

Host:

irc.libera.chat:6697

List:

#fedora-aaa
#fedora-admin
#fedora-apps
@gridhead
gridhead / 05112021.yml
Last active November 20, 2021 05:15
Gaming PC Performance Build Writeups
Metadata:
Author: "Akashdeep Dhar"
Email: "akashdeep.dhar@gmail.com"
Datetime: "17:18, 05 Nov 2021"
Timezone: "Asia/Kolkata"
Components:
CentralProcessingUnit:
Name: "AMD Ryzen 7 5800X"
Quantity: 1
TDP: 105
@gridhead
gridhead / gist:cb84d7374cc2f8204082268773f84085
Created November 8, 2021 10:41 — forked from nphilipp/gist:dd14f54a28ab00ac709b40c7d7fa2b52
Auto-activate Python virtualenvwrapper environment if shell is started within a project directory
# ...
# Copyright © 2021 Nils Philippsen <nils@tiptoe.de>
# Licensed under the MIT license as published by the Open Source Initiative
# Auto-activate Python virtualenvwrapper environment if shell is started within a project directory
_old_nullglob=$(shopt -p nullglob)
shopt -s nullglob
unset _projdirs_venvs
declare -A _projdirs_venvs
@gridhead
gridhead / new_app.py
Created November 9, 2021 09:09
Duffy Logging
import logging
import click
import uvicorn
from ..configuration import config, read_configuration
from ..version import __version__
DEFAULT_CONFIG_FILE = "/etc/duffy.yaml"