init...
| # See https://halu.lu/%E6%9D%82%E8%B0%88/cloudflare-warp/ | |
| # Depolyed at https://warp.halu.lu/ | |
| // Change keys if needed | |
| const keys = [ | |
| "9WO41D5p-6OP8xj27-36gQG75D", | |
| "R65K12Up-aU907O2e-4nuvD581", | |
| "06LM94EJ-1nl0V2d7-V847va5y", | |
| ] |
macOS comes with a remote desktop application called "Screen Sharing." It is essentially a VNC server and client, and it works really well.
Unfortunately, VNC protocol doesn't include sound, hence neither Screen Sharing for macOS or other VNC clients.
I needed a way to be able to hear various application notifications through Screen Sharing, as well as watch videos or any media hosted by my company. To solve this problem, I came up with a way to support forwarding sound between two Macs.
The idea is to use BlackHole to capture output audio, record it with SoX, and pipe the output to the play command (from SoX) on the remote client. It's not an ideal setup, especially since there's about a second of lag, but it's sufficient if you need to remotely watch videos or hear sound for whatever reason.
| Domain | Description |
|---|---|
| dis.gd | Discord's URL shorter (I like .gd as top-level domain) |
| discord.co | Admin panel, this means not for us! (Not discord administrators / maybe staffs) |
| discord.com | The domain is for e.g the homepage or message links etc |
| discord.design | Dribbble profile shortlink |
| discord.dev | Developer site shortlinks |
| discord.gg | Invite shortlinks |
| # after appcleaner does his magic, do this | |
| sudo rm -rf "/Library/Application Support/Paragon Software/" | |
| sudo rm /Library/LaunchDaemons/com.paragon-software.installer.plist | |
| sudo rm /Library/LaunchDaemons/com.paragon-software.ntfs.loader.plist | |
| sudo rm /Library/LaunchDaemons/com.paragon-software.ntfsd.plist | |
| sudo rm /Library/LaunchAgents/com.paragon-software.ntfs.notification-agent.plist | |
| sudo rm -rf /Library/Filesystems/ufsd_NTFS.fs/ | |
| sudo rm -rf /Library/PrivilegedHelperTools/com.paragon-software.installer | |
| sudo rm -rf /Library/Extensions/ufsd_NTFS.kext/ |
| # retrieve webelement | |
| input = driver.find_element_by_xpath("//*[@name='fieldname']") | |
| # set attribute from js script referencing webelement found in python code | |
| driver.execute_script("arguments[0].setAttribute('value', 'new value!')", input); | |
| # or | |
| driver.execute_script("arguments[0].setAttribute('value', arguments[1])", input, 'new value!'); | |
| # Code for File Upload | |
| file_input = driver.find_element_by_id("uploadBtn") | |
| file_input.send_keys("/absolute/path/to/file") |
| # From https://coderwall.com/p/-wbo5q/pip-install-a-specific-github-repo-tag-or-branch | |
| pip install -e git://github.com/{ username }/{ reponame }.git@{ tag name }#egg={ desired egg name } |
| #!/usr/bin/python | |
| #crEAP is a utility which will identify WPA Enterprise Mode Encryption types and if | |
| #insecure protocols are in use, crEAP will harvest Radius usernames and handshakes. | |
| #Author: Snizz | |
| #Requirements: Should be run as root/sudo. | |
| # | |
| # Python Scapy Community (scapy-com) - Dev version of Scapy which supports additional |
| #!/bin/bash | |
| # | |
| # This version uses September 2017 august stretch image, please use this image | |
| # | |
| if [ "$EUID" -ne 0 ] | |
| then echo "Must be root" | |
| exit | |
| fi |
| # /etc/fail2ban/jail.local | |
| # [...] | |
| [nginx-dos] | |
| # Based on apache-badbots but a simple IP check (any IP requesting more than | |
| # 240 pages in 60 seconds, or 4p/s average, is suspicious) | |
| # Block for two full days. | |
| # @author xros | |
| enabled = true |