Skip to content

Instantly share code, notes, and snippets.

View flash76's full-sized avatar

flash76

View GitHub Profile
@flash76
flash76 / one-liner-neofetch-custom-ascii.md
Created January 25, 2021 15:39
A one-liner command to show neofetch with a custom ASCII image in zsh

Requires

  • curl
  • jp2a
  • neofetch
  • zsh
neofetch --source =(jp2a <(curl $image))

You can do image= or just replace $image with the link to your jpg.

@kubeliv
kubeliv / vibrate.swift
Last active July 1, 2021 14:19
Swift script to consistently vibrate the MacBook touchpad - Updated to macOS 10.13
import AppKit
var i = 1;
while i <= 5000 {
NSHapticFeedbackManager.defaultPerformer.perform(NSHapticFeedbackManager.FeedbackPattern.alignment, performanceTime: NSHapticFeedbackManager.PerformanceTime.now);
i = i + 1
usleep(10000000 / 10000);
}