Skip to content

Instantly share code, notes, and snippets.

View abhishekpc's full-sized avatar

Abhishek Prakash abhishekpc

View GitHub Profile
syntax on
set noerrorbells "This removes vim's default error bell, turning it off so that it doesn't annoy us
set textwidth=100 "Ensures that each line is not longer than 100 columns
set tabstop=4 softtabstop=4
set shiftwidth=4
set expandtab
set smartindent
set linebreak
set number
@abhishekpc
abhishekpc / nginx-reverse-proxy-docker-compose
Last active November 16, 2021 05:45
The docker compose file for Ngnix reverse proxy set up
version: "3.3"
services:
NginxProxy:
image: "jwilder/nginx-proxy:latest"
volumes:
- "NPhtml:/usr/share/nginx/html"
- "NPdhparam:/etc/nginx/dhparam"
@abhishekpc
abhishekpc / env.example
Created March 26, 2021 12:59
Skeleton environment file for Nextcloud docker deployment. Part of Linux Handbook tutorial
# Database
#MYSQL_RANDOM_ROOT_PASSWORD=1
#MYSQL_ROOT_PASSWORD=
MYSQL_DATABASE=NC
MYSQL_USER=nextcloud
#MYSQL_PASSWORD=
MYSQL_HOST=NCDatabase
# Nextcloud
@abhishekpc
abhishekpc / docker-compose-skeleton-lhb-nextcloud-deployment.yaml
Created March 26, 2021 12:52
Skeleton Docker Compose file for Nextcloud Deployment. It is part of Linux Handbooj tutorial.
version: "3.7"
services:
NCDatabase:
image: "mariadb:10.5.2"
volumes:
- "NCMariaDB:/var/lib/mysql"
environment:
@abhishekpc
abhishekpc / sample_log_file.txt
Created November 18, 2019 08:09
Uniq command sample text file
/usr/lib/gdm3/gdm-x-session[1443]: (II) No input driver specified, ignoring this device.
/usr/lib/gdm3/gdm-x-session[1443]: (II) No input driver specified, ignoring this device.
/usr/lib/gdm3/gdm-x-session[1443]: (II) event9 - Intel HID events: device is a keyboard
/usr/lib/gdm3/gdm-x-session[1443]: (II) event9 - Intel HID events: device is a keyboard
/usr/lib/gdm3/gdm-x-session[1443]: (II) event9 - Intel HID events: device removed
/usr/lib/gdm3/gdm-x-session[1443]: (II) event9 - Intel HID events: is tagged by udev as: Keyboard
/usr/lib/gdm3/gdm-x-session[1443]: (II) event9 - Intel HID events: is tagged by udev as: Keyboard
/usr/lib/gdm3/gdm-x-session[1443]: (II) No input driver specified, ignoring this device.
/usr/lib/gdm3/gdm-x-session[1443]: (II) No input driver specified, ignoring this device.
/usr/lib/gdm3/gdm-x-session[1443]: (II) No input driver specified, ignoring this device.
@abhishekpc
abhishekpc / centos-buildah
Created April 1, 2019 15:57
CentOS HTTPD Installation with Buildah
# buildah run centos-working-container yum install httpd -y
Loaded plugins: fastestmirror, ovl
Determining fastest mirrors
* base: centos.gbnetwork.my
* extras: centos.gbnetwork.my
* updates: centos.gbnetwork.my
base | 3.6 kB 00:00
extras | 3.4 kB 00:00
updates | 3.4 kB 00:00
(1/4): base/7/x86_64/group_gz | 166 kB 00:00
@abhishekpc
abhishekpc / sample-subtitle.txt
Created January 8, 2019 10:55
Sample English subtitles from The Cabinet of Dr. Caligari
1
00:00:00,959 --> 00:00:13,744
"THE CABINET
OF DR. CALIGARI"
2
00:00:40,084 --> 00:01:02,088
A TALE of the modern re-appearance of an 11th Century Myth
involting the strange and mysterious influence
of a mountebank monk over a somnambulist.
@abhishekpc
abhishekpc / ccextractor-output.txt
Last active January 8, 2019 10:49
CCExtractor Output
$ ccextractor $something.mkv
CCExtractor 0.87, Carlos Fernandez Sanz, Volker Quetschke.
Teletext portions taken from Petr Kutalek's telxcc
--------------------------------------------------------------------------
Input: $something.mkv
[Extract: 1] [Stream mode: Autodetect]
[Program : Auto ] [Hauppage mode: No] [Use MythTV code: Auto]
[Timing mode: Auto] [Debug: No] [Buffer input: No]
[Use pic_order_cnt_lsb for H.264: No] [Print CC decoder traces: No]
[Target format: .srt] [Encoding: UTF-8] [Delay: 0] [Trim lines: No]