Skip to content

Instantly share code, notes, and snippets.

@brainfucksec
brainfucksec / bash.bashrc
Last active May 1, 2024 09:24
Termux bash.bashrc
######################################
#
# Termux bash.bashrc
# by brainf+ck
#
# Last modified: 2022/06/30
#
######################################
#### Global ##########################
@berndverst
berndverst / Readme.md
Last active March 29, 2024 09:27
Script to quickly merge captions into mp4 H.264 (or HEVC/H.265) video as selectable or burned in subtitles from command-line

Add captions to MP4 videos as subtitles

Requirements

FFMpeg must be installed.

Instructions:

@bmatthewshea
bmatthewshea / geoip2lookup.bash
Last active December 4, 2023 20:59
GeoIP Lookup scripts for use with new Maxmind MMDB database files
#!/bin/bash
#
# By: Brady Shea - 10FEB2020 - Last update 04DEC2023
#
# Usage (ip4 only):
# geoip2lookup IP_ADDRESS
#
# ** Install GeoIP Tool and Updater **
#
# sudo add-apt-repository ppa:maxmind/ppa
@tjluoma
tjluoma / youtube-rss.sh
Last active January 3, 2023 09:00
Did you know YouTube has RSS feeds? No? Probably because YouTube makes them nearly impossible to find. But here's an easy way to get the RSS feed for any YouTube user. Inspired by <https://eggfreckles.net/notes/youtube-rss/>
#!/usr/bin/env zsh -f
# Purpose: get the RSS feed for a YouTube page
# Inspired By: https://eggfreckles.net/notes/youtube-rss/
# Gist: https://gist.github.com/tjluoma/fdbc63ceb78a2aecd3d638fd18b6ec6e
#
# From: Timothy J. Luoma
# Mail: luomat at gmail dot com
# Date: 2020-01-17; updated 2021-01-10
# 2021-01-10 YouTube currently has both 'rssUrl' and
@ix4
ix4 / cvs-receipt.markdown
Created December 19, 2019 03:14
CVS Receipt

CVS Receipt

CVS is notorious for their receipts, so I decided to share my experience with a simple CodePen.

With some quick and dirty HTML, CSS, and JavaScript - I present you with the never-ending CVS receipt. I even made a crappy web scrapper to get real product names from their site (https://github.com/garrettbear/CVScraper)

A Pen by Garrett Bear on CodePen.

License.

@Akhil-Suresh
Akhil-Suresh / postman_installation.md
Last active May 21, 2024 03:54
Installing Postman on Ubuntu/Debian

Installing Postman

Step 1

If any version of postman is installed we need to remove it

sudo rm -rf /opt/Postman

Step 2

@nestukh
nestukh / installheadlessfirefoxonpi.sh
Last active May 19, 2024 03:56
Install firefox-esr + geckodriver + selenium + python3 on raspberry pi 3 and above
#!/bin/bash
pypcks="python3-pip python3 python3-all-dev python3-dev libffi-dev libssl-dev librtmp-dev python-dev python3 python3-doc python3-tk python3-setuptools tix xvfb python-bluez python-gobject python-dbus python cython python-doc python-tk python-numpy python-scipy python-qt4 python3-pyqt5 python3-pyqt5.q* python3-qtpy python-pyqt5.q* python-lxml fontconfig python-demjson qt5-default libqt5webkit5-dev build-essential libudev-dev python-lxml libxml2-dev libxslt-dev libpq-dev python-pyside python-distlib python-pip python-setuptools" # python-examples python3-examples python-vte
allgoodpcks="ca-certificates virtualenv autotools-dev cdbs git expect libnss3-tools util-linux xvfb curl bridge-utils chromium-browser chromium-chromedriver firefox-esr"
sudo apt-get install --reinstall -y $pypcks $allgoodpcks
if [[ ! -f /usr/lib/chromium-browser/chromedriver ]]; then
sudo ln -s /usr/bin/chromedriver /usr/lib/chromium-browser/chromedriver
fi
@ix4
ix4 / README.md
Created September 28, 2019 15:25 — forked from lmatteis/README.md
Generic interactive D3.js charts using crossfilter.js

Try clicking on the various charts. All interactions are handled by crossfilter. Multi selection is also possible using crossfilter. This also shows how one can create reusable charts that support generic dimensions and groups.

@ix4
ix4 / README.md
Created September 28, 2019 14:50 — forked from andredumas/README.md
TechanJS Plots

Plots rendering demo. A sample of what can be created with the available plot types.

  • Candlestick
  • Volume
  • Percentage axis
  • Simple and Exponential Moving Averages
  • Zooming
  • Indicator combinations
  • Interactive trendlines
@cavedave
cavedave / getposition.r
Last active January 1, 2020 09:22
European Centers of population Data from
eur<-read_csv('GEOSTAT_grid_POP_1K_2011_V2_0_1.csv')
#two ways to extract east and north
eur$North <-str_match(eur$GRD_ID, "1kmN(\\d\\d\\d\\d)E(\\d\\d\\d\\d)")[,2]
eur$East <-str_match(eur$GRD_ID, "1kmN(\\d\\d\\d\\d)E(\\d\\d\\d\\d)")[,3]
eur<-eur%>%
mutate(
lat = as.numeric(gsub('.*N([0-9]+)[EW].*', '\\1', GRD_ID))/100,
lng = as.numeric(gsub('.*[EW]([0-9]+)', '\\1', GRD_ID)) * ifelse(gsub('.*([EW]).*', '\\1', GRD_ID) == 'W', -1, 1) / 100
)