Skip to content

Instantly share code, notes, and snippets.

View Luuk2016's full-sized avatar
🇺🇦

Luuk Kenselaar Luuk2016

🇺🇦
View GitHub Profile
@Svision
Svision / visa.py
Last active April 12, 2024 02:42 — forked from yaojialyu/visa.py
ais usvisa reschedule
import logging
import time
import json
import random
from datetime import datetime
import requests
from selenium import webdriver
from selenium.webdriver.support import expected_conditions as EC
from selenium.webdriver.support.ui import WebDriverWait
@ajumalp
ajumalp / Install Mosquitto MQTT on Synology NAS Server.txt
Last active March 29, 2024 04:36
Install Mosquitto MQTT on Synology NAS Server
From https://synocommunity.com add http://packages.synocommunity.com to your NAS package sources.
For that, go to NAS->Package Cnter->Click Settings->Package Sources tab.
Then from the community, you can see Mosquitto. Install it.
After installing, please stop the Mosquitto service before updating configuration. You can start service after changes.
Enable Admin login for Synology
Enable SSH in NAS
Download putty and connect to NAS Server
Login using admin
Change to root user [sudo -i, {use admin password}]
Find mosquitto.conf file [find / -name mosquitto.conf]
@emartin59
emartin59 / Moore's_Law.csv
Last active February 29, 2024 14:36
Moore's Law is Alive and Well: Transistors per Square Millimeter by Year
Processor Transistors Year Designer Process Area mm2 Trans./mm2
MOS Technology 6502 3,510 1975 MOS Tech. 8,000 nm 21 167
RCA 1802 5,000 1974 RCA 5,000 nm 27 185
Intel 4004 2,300 1971 Intel 10,000 nm 12 192
Intel 8080 4,500 1974 Intel 6,000 nm 20 225
Intel 8008 3,500 1972 Intel 10,000 nm 14 250
Motorola 6800 4,100 1974 Motorola 6,000 nm 16 256
Intel 8085 6,500 1976 Intel 3,000 nm 20 325
Motorola 6809 9,000 1978 Motorola 5,000 nm 21 429
Zilog Z80 8,500 1976 Zilog 4,000 nm 18 472
<?php
require_once 'DB_FILE_HERE';
// SQL statement
$sql = mysqli_query($conn, "QUERY_HERE");
// Define array for row
$rows = array();
// Set each row into array.
@dannygsmith
dannygsmith / valet-plus-destroy
Last active July 18, 2023 09:07
Remove valet-plus - reboot required
#!/usr/bin/env bash
#styles
VP_NONE='\033[00m'
VP_RED='\033[01;31m'
VP_GREEN='\033[01;32m'
VP_YELLOW='\033[01;33m'
VP_PURPLE='\033[01;35m'
VP_CYAN='\033[01;36m'
VP_WHITE='\033[01;37m'
@pkirkovsky
pkirkovsky / yubikey-reset.sh
Last active October 20, 2023 21:57
Utility for resetting a Yubikey to factory defaults using gpg-connect-agent. This will wipe out any stored keys and reset PINs to default values.
# Adapted from https://developers.yubico.com/ykneo-openpgp/ResetApplet.html
gpg-connect-agent <<EOF
/hex
scd serialno
scd apdu 00 20 00 81 08 40 40 40 40 40 40 40 40
scd apdu 00 20 00 81 08 40 40 40 40 40 40 40 40
scd apdu 00 20 00 81 08 40 40 40 40 40 40 40 40
scd apdu 00 20 00 81 08 40 40 40 40 40 40 40 40
scd apdu 00 20 00 83 08 40 40 40 40 40 40 40 40
scd apdu 00 20 00 83 08 40 40 40 40 40 40 40 40
@PurpleBooth
PurpleBooth / README-Template.md
Last active April 22, 2024 11:45
A template to make good README.md

Project Title

One Paragraph of project description goes here

Getting Started

These instructions will get you a copy of the project up and running on your local machine for development and testing purposes. See deployment for notes on how to deploy the project on a live system.

Prerequisites

@roachhd
roachhd / README.md
Last active April 23, 2024 19:16
Basics of BrainFuck

=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=

BrainFuck Programming Tutorial by: Katie

=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=

INTRODUCTION

var mediaJSON = { "categories" : [ { "name" : "Movies",
"videos" : [
{ "description" : "Big Buck Bunny tells the story of a giant rabbit with a heart bigger than himself. When one sunny day three rodents rudely harass him, something snaps... and the rabbit ain't no bunny anymore! In the typical cartoon tradition he prepares the nasty rodents a comical revenge.\n\nLicensed under the Creative Commons Attribution license\nhttp://www.bigbuckbunny.org",
"sources" : [ "http://commondatastorage.googleapis.com/gtv-videos-bucket/sample/BigBuckBunny.mp4" ],
"subtitle" : "By Blender Foundation",
"thumb" : "images/BigBuckBunny.jpg",
"title" : "Big Buck Bunny"
},
{ "description" : "The first Blender Open Movie from 2006",
"sources" : [ "http://commondatastorage.googleapis.com/gtv-videos-bucket/sample/ElephantsDream.mp4" ],
@mrbongiolo
mrbongiolo / install-postgresql-ubuntu-vagrant
Last active March 21, 2019 16:18
Install PostgreSQL 9.3 on a Ubuntu Precise VM (Vagrant)
# Add the public GPG key
wget -O - https://www.postgresql.org/media/keys/ACCC4CF8.asc | sudo apt-key add -
# Create a file with the repository address
echo deb http://apt.postgresql.org/pub/repos/apt/ precise-pgdg main | sudo tee /etc/apt/sources.list.d/postgresql.list
# Remove any older postgresql installation you may have (ex:)
sudo apt-get remove postgresql-9.1 postgresql-contrib-9.1 postgresql-client-9.1
# Install the PostgreSQL