Skip to content

Instantly share code, notes, and snippets.

View b33f00d's full-sized avatar
:shipit:
¯\_(ツ)_/¯

Raul b33f00d

:shipit:
¯\_(ツ)_/¯
View GitHub Profile
@b33f00d
b33f00d / clipboard.swift
Last active February 23, 2023 17:04
Janky attempt to monitor clipboard and output to file using swift
import Cocoa
while(true){
let clipboard = NSPasteboard.general.string(forType: .string)
if(clipboard == nil){
continue
}else{
let fileName = "swift_append_file.txt"
guard let filePath = FileManager.default.urls(for: .applicationDirectory, in: .localDomainMask).first?.appendingPathComponent(fileName) else {

Keybase proof

I hereby claim:

  • I am yuungh4x0r on github.
  • I am theg3ntl3man (https://keybase.io/theg3ntl3man) on keybase.
  • I have a public key ASCzHsE1NOyUFRQ1Abo8D2XUzCsOGfKPhxWwKfJJ17iesQo

To claim this, I am signing this object: