This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
""" | |
A micro event loop library implementation from scratch. | |
This library provides a minimal but feature-complete asynchronous event loop | |
implementation for educational purposes. It demonstrates the core concepts of | |
asynchronous programming including: | |
- Task scheduling and management | |
- I/O multiplexing with non-blocking sockets | |
- Timeouts and sleep functionality |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
return bar |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
step1 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Install WireGuard via whatever package manager you use. For me, I use apt. | |
$ sudo add-apt-repository ppa:wireguard/wireguard | |
$ sudo apt-get update | |
$ sudo apt-get install wireguard | |
MacOS | |
$ brew install wireguard-tools | |
Generate key your key pairs. The key pairs are just that, key pairs. They can be |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#Variables that need to be set for each run | |
$startFolder = $args[0]; | |
$destinationHTMLFile = "c:\\tree.html"; #The final html file that will be produced, #does not need to exist | |
$htmlLines = @(); | |
#Function that creates a folder detail record | |
function CreateFolderDetailRecord | |
{ | |
param([string]$FolderPath) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# not the most efficient way, | |
# but you get the idea. | |
str = "meow" | |
# convert string to binary | |
bin = str.bytes.map{|d| d.to_s(2)}.map{|b| b.rjust(8, '0')}.join | |
puts bin | |
# and convert it back to a string |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Public Declare PtrSafe Function SetCursorPos Lib "user32" (ByVal x As LongPtr, ByVal y As LongPtr) As LongPtr | |
Public Declare PtrSafe Sub mouse_event Lib "user32" (ByVal dwFlags As LongPtr, ByVal dx As LongPtr, ByVal dy As LongPtr, ByVal cButtons As LongPtr, ByVal dwExtraInfo As LongPtr) | |
Public Const MOUSEEVENTF_LEFTDOWN = &H2 | |
Public Const MOUSEEVENTF_LEFTUP = &H4 | |
Public Const MOUSEEVENTF_RIGHTDOWN As LongPtr = &H8 | |
Public Const MOUSEEVENTF_RIGHTUP As LongPtr = &H10 | |
Sub DoNotSleepPlease() | |
Dim i As Integer |
This file has been truncated, but you can view the full file.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# Title: StevenBlack/hosts with the fakenews and gambling extensions | |
# | |
# This hosts file is a merged collection of hosts from reputable sources, | |
# with a dash of crowd sourcing via GitHub | |
# | |
# Date: 10 June 2022 03:10:21 (UTC) | |
# Extensions added to this file: fakenews, gambling | |
# Number of unique domains: 114,621 | |
# | |
# Fetch the latest version of this file: https://raw.githubusercontent.com/StevenBlack/hosts/master/alternates/fakenews-gambling/hosts |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
const esbuild = require('esbuild'); | |
const sassPlugin = require('esbuild-plugin-sass') | |
const http = require('http'); | |
let publicURL = "/" | |
let nodeEnv = "development" | |
const buildOptions = { | |
entryPoints: ['src/index.jsx'], | |
bundle: true, |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
ruby '2.7.1' | |
gem 'rails', github: 'rails/rails' | |
gem 'tzinfo-data', '>= 1.2016.7' # Don't rely on OSX/Linux timezone data | |
# Action Text | |
gem 'actiontext', github: 'basecamp/actiontext', ref: 'okra' | |
gem 'okra', github: 'basecamp/okra' | |
# Drivers |
NewerOlder