Skip to content

Instantly share code, notes, and snippets.

View MartinN3's full-sized avatar

Martin Novák MartinN3

  • Staffers
  • Czech Republic
  • 20:16 (UTC +02:00)
View GitHub Profile
@MartinN3
MartinN3 / install-openvpn3-kali.sh
Last active October 11, 2023 11:57 — forked from stuartw1/install-openvpn3-kali.sh
install openvpn3 and dependencies on Kali Linux in ARM64 image
#!/bin/bash
# The following commands should install openvpn3 successfully on Kali Linux as of 2023-04-17
# PM me if broken and I will update
# Thanks to the following for bug reports / additions
# asingh-lp, Pyr0technicien
# update packages
sudo apt update
# too slow for our usecase of fast installation
@MartinN3
MartinN3 / youtube-dl.sh
Created September 10, 2019 10:36 — forked from mskian/youtube-dl.sh
Bash Shell Script - youtube-dl Downloader for Termux Terminal Emulator
#!/bin/bash
# -----------------------------------------------------------------------------
# Info:
# author: Santhosh veer
# file: youtube-dl.sh
# created: 18.09.2018
# revision: 18.09.2018
# version: 0.3
# -----------------------------------------------------------------------------
@MartinN3
MartinN3 / table.html
Created May 10, 2019 11:54
Trytech table
<div class="table table-responsive table-classic">
<table>
<tbody>
<tr>
<th>
<h6><span>Typ</span></h6>
</th>
<th><span>Sání l/min</span></th>
<th><span>Výtlak l/min</span></th>
<th><span>Vzdušník</span></th>
const makesOrder = ['32', "1", '2', '31', '26']
const makesList = [
{
"id": "0",
"name": "Santana"
},
{
"id": "1",
"name": "Audi"
},
const oneToFive = (number, arrayOfTranslations) => {
if (number === 1) {
return arrayOfTranslations[0]
} else if (number > 5) {
return arrayOfTranslations[2]
}
return arrayOfTranslations[1]
}
export const car = {
@MartinN3
MartinN3 / breakpoints.js
Created April 2, 2019 12:44
Debounced bootstrap resize react PoC - Unstable
export const mediaBreakpointBetween = (sizeA, sizeB) => {
const mediaBreakpoints = {
xs: {
name: 'xs',
value: 0,
},
sm: {
name: 'sm',
value: 576,
},
@MartinN3
MartinN3 / head.html
Created December 7, 2018 09:49
Easiest way to dwnl google font fastest from google lately?
<head>
<link rel="preconnect" href="https://fonts.gstatic.com/" crossorigin>
<link rel="preconnect" href="https://fonts.googleapis.com/" crossorigin>
<link href="https://fonts.googleapis.com/css?family=Roboto:300,400,500,700&amp;subset=latin-ext" rel="stylesheet">
</head>
@MartinN3
MartinN3 / jszip-test.js
Last active November 15, 2018 23:53
JSzip test
// Run in console on loremflicker.com
class ScriptLoader {
constructor(scriptUrl) {
this.script = document.createElement('script');
this.script.src = scriptUrl;
// this.head = document.querySelector('head');
this.firstScriptTag = document.getElementsByTagName('script')[0];
}