Skip to content

Instantly share code, notes, and snippets.

View MartinBucko's full-sized avatar
💚
200 OK

Martin Bučko MartinBucko

💚
200 OK
View GitHub Profile
@MartinBucko
MartinBucko / data-markdown.user.js
Created October 11, 2023 08:25 — forked from paulirish/data-markdown.user.js
*[data-markdown] - use markdown, sometimes, in your HTML
// ==UserScript==
// @name Use Markdown, sometimes, in your HTML.
// @author Paul Irish <http://paulirish.com/>
// @link http://git.io/data-markdown
// @match *
// ==/UserScript==
// If you're not using this as a userscript just delete from this line up. It's cool, homey.
@MartinBucko
MartinBucko / disable-xss-auditor.sh
Created January 22, 2023 02:45 — forked from mbijon/disable-xss-auditor.sh
CLI command to start Chrome with XSS Auditor disabled. Use for XSS/security testing
'/Applications/Google Chrome.app/Contents/MacOS/Google Chrome' --disable-xss-auditor --enable-devtools-experiments --disable-features=enable-automatic-password-saving
@MartinBucko
MartinBucko / tmux_local_install.sh
Created January 22, 2023 02:43 — forked from posva/tmux_local_install.sh
Install tmux without root rights. Fixed from https://gist.github.com/ryin/3106801
#!/bin/bash
# Script for installing tmux on systems where you don't have root access.
# tmux will be installed in $HOME/local/bin.
# It's assumed that wget and a C/C++ compiler are installed.
# exit on error
set -e
TMUX_VERSION=1.9
@MartinBucko
MartinBucko / pdfcat.fish
Created October 20, 2022 21:48 — forked from foonathan/pdfcat.fish
Small fish script that cats pdf files while preserving bookmarks
#!/bin/fish
#
# Copyright (C) 2022 Jonathan Müller
# SPDX-License-Identifier: BSL-1.0
#
# Usage: pdfcat input1 input2 ... inputN output
function print_usage
echo "Usage:" (basename (status -f)) "input1 input2 ... inputN output"
end
@MartinBucko
MartinBucko / transcode-install.sh
Created October 20, 2022 21:48 — forked from mmstick/transcode-install.sh
Ubuntu 10-bit HEVC Transcoding Tools -- Contains a script to install x265-10bit-git, libass-git, ffmpeg-git and bomi-git; another for updating everything; as well as scripts for transcoding videos with ffmpeg. Transcoding scripts require the fish shell to be installed.
#!/bin/bash
sourcedir="$HOME/.local/src/"
mkdir "$sourcedir"
export CFLAGS='-march=native -O3 -pipe -fstack-protector -Wall'
export CXXFLAGS='-march=native -O3 -pipe -fstack-protector -Wall'
function install-dependencies() {
# Install build tools and Mesa VDPAU support.
sudo apt-fast install -y cmake yasm autoconf build-essential mesa-vdpau-drivers \
libvdpau-va-gl1
@MartinBucko
MartinBucko / HTML5VIDEOBROADCASTING
Created December 20, 2021 01:59 — forked from Manishfoodtechs/HTML5VIDEOBROADCASTING
live-broadcast-on-html-page-with-html5-video-injust-30-minutes
https://dev.to/manishfoodtechs/live-broadcast-on-html-page-with-html5-video-injust-30-minutes-3pp6
===========================================================================================
# 1: Install Nginx + RTMP module.
sudo apt install -y nginx
sudo apt install -y libnginx-mod-rtmp
# 2: Installing required & additional software.
@MartinBucko
MartinBucko / emulator-install-using-avdmanager.md
Created December 20, 2021 01:47 — forked from TEGRAXD/emulator-install-using-avdmanager.md
Installing and creating Emulators with AVDMANAGER (For Continuous Integration Server or Local Use)

Install and Create Emulators using AVDMANAGER and SDKMANAGER

TL;DR

For generic skin emulator with default apis (without google apis):

  1. List All System Images Available for Download: sdkmanager --list | grep system-images

  2. Download Image: sdkmanager --install "system-images;android-29;default;x86"

@MartinBucko
MartinBucko / AdbCommands
Created December 20, 2021 01:46 — forked from mrk-han/AdbCommands
Adb useful commands list
== Adb Server
adb kill-server
adb start-server
== Adb Reboot
adb reboot
adb reboot recovery
adb reboot-bootloader
== Shell
# Source: https://gist.github.com/48f44d3974db698d3127f52b6e7cd0d3
###########################################################
# Automation of Everything #
# How To Combine Argo Events, Workflows, CD, and Rollouts #
# https://youtu.be/XNXJtxkUKeY #
###########################################################
# Requirements:
# - k8s v1.19+ cluster with nginx Ingress
@MartinBucko
MartinBucko / postgres-cheatsheet.md
Created October 18, 2021 17:00 — forked from pgiacalo/postgres-cheatsheet.md
PostgreSQL command line cheatsheet

PSQL

Magic words:

psql -U postgres

Some interesting flags (to see all, use -h or --help depending on your psql version):

  • -E: will describe the underlaying queries of the \ commands (cool for learning!)
  • -l: psql will list all databases and then exit (useful if the user you connect with doesn't has a default database, like at AWS RDS)