Skip to content

Instantly share code, notes, and snippets.

View netspooky's full-sized avatar
🍙
Meditating

【☆ ゆう ☆ 】 netspooky

🍙
Meditating
View GitHub Profile
@ald3ns
ald3ns / build.sh
Created March 29, 2022 17:38
Download and compile VMWare Workstation drivers for cutting edge kernels
#!/usr/bin/bash
# Version of the installed VMWare Workstation
VERSION="$(vmware-installer -l | awk 'FNR==3 {print $2}' | cut -n -d '.' -f 1-3)"
# Grab the zip from the github repo
wget "https://github.com/mkubecek/vmware-host-modules/archive/refs/heads/player-${VERSION}.zip"
# Unzip the zip file
unzip -q player-$VERSION.zip
@katef
katef / life-utf8.c
Last active September 8, 2024 05:59
XBM to UTF-8 braille image things
/*
* John Conway's Game of Life.
*
* This is written for POSIX, using Curses. Resizing of the terminal is not
* supported.
*
* By convention in this program, x is the horizontal coordinate and y is
* vertical. There correspond to the width and height respectively.
* The current generation number is illustrated when show_generation is set.
*
@dustyfresh
dustyfresh / gdpr.txt
Created January 20, 2020 22:03
GDPR text, but replaced cookies with biscuits
27 April 2016
On the protection of natural persons with regard to the processing of personal data and on the free movement of such data, and repealing Directive 95/46/EC (General Data Protection Regulation)
(Text with EEA relevance)
THE EUROPEAN PARLIAMENT AND THE COUNCIL OF THE EUROPEAN UNION,
Having regard to the Treaty on the Functioning of the European Union, and in particular Article 16 thereof,
@dustyfresh
dustyfresh / python-nameserver.py
Created June 7, 2019 16:26
DNS nameserver implemented in python
#!/usr/bin/env python3
import sys
from datetime import datetime
import time
from time import sleep
from dnslib import DNSLabel, QTYPE, RD, RR, RCODE
from dnslib import A, AAAA, CNAME, MX, NS, SOA, TXT
from dnslib.server import DNSServer
@streetgt
streetgt / youtube_comment_bot.py
Last active January 15, 2022 13:04
Youtube Comment Bot - python
#!/usr/bin/env python
# -*- coding: utf-8 -*-
# Python bot for comment a list of urls in YouTube
import time
import numpy as np
from selenium import webdriver
from selenium.webdriver.common.by import By
from selenium.webdriver.support.ui import WebDriverWait
@claymcleod
claymcleod / pycurses.py
Last active October 13, 2024 16:45
Python curses example
import sys,os
import curses
def draw_menu(stdscr):
k = 0
cursor_x = 0
cursor_y = 0
# Clear and refresh the screen for a blank canvas
stdscr.clear()