Navigation Menu

Skip to content

Instantly share code, notes, and snippets.

View allyouaskfor's full-sized avatar

Ethan Priest allyouaskfor

View GitHub Profile
@allyouaskfor
allyouaskfor / LG infrared codes
Created January 1, 2019 11:46 — forked from francis2110/LG infrared codes
Lg infrared codes for making your own remote
on-off->20DF10EF
energy->20DFA956
av. mode->20DF0CF3
input->20DFD02F
tv/rad->20DF0FF0
1->20DF8877
2->20DF48B7
3->20DFC837
4->20DF28D7
5->20DFA857
@allyouaskfor
allyouaskfor / bourke
Created November 17, 2019 00:49
attractor #cpp #visual #math #science
/*
xn+1 = sin(a yn) + c cos(a xn)
yn+1 = sin(b xn) + d cos(b yn)
*/
#include <iostream>
#include <cmath>
#include <vector>
using namespace std;
@allyouaskfor
allyouaskfor / com.apple.Terminal.plist.md
Last active September 25, 2020 19:10
TotalTerminal with no dock icon or menu bar icon.

Although it is no longer actively developed, TotalTerminal by BinaryAge continues to work on macOS 10.15 Catalina. This defaults setting will allow you to use TotalTerminal without any visual indicator such as dock icon or menu bar icon.

defaults write com.apple.Terminal TotalTerminalHideStatusItemRegardless -bool 1

Keybase proof

I hereby claim:

  • I am allyouaskfor on github.
  • I am canibeanartist (https://keybase.io/canibeanartist) on keybase.
  • I have a public key ASD1IFaSmwsjau0IatTEvbPCjPYiTnLXB1porwwaUsRI9Ao

To claim this, I am signing this object:

@allyouaskfor
allyouaskfor / altercd.sh
Last active October 6, 2022 00:17
List contents of directory after changing into it.
#!/bin/bash
# cd & ls with just "cd"
# Original solution found on StackOverflow. I do not have the direct link.
# Modified/adjusted by myself to work in line with my own expectations.
# Tested and used regularly on macOS with ZSH and Raspberry Pi with BASH.
altercd() {
cd() {
unset -f cd
@allyouaskfor
allyouaskfor / make_bookmarklet.pl
Last active January 18, 2023 01:24 — forked from gruber/make_bookmarklet.pl
JavaScript Bookmarklet Builder
#!/usr/bin/env perl
#
# http://daringfireball.net/2007/03/javascript_bookmarklet_builder
use strict;
use warnings;
use URI::Escape qw(uri_escape_utf8);
use open IO => ":utf8", # UTF8 by default
":std"; # Apply to STDIN/STDOUT/STDERR
// Original: https://jsfiddle.net/ux84votz/
const formBuilder = {};
formBuilder.buildForm = (options) => {
// validate the options parameter
options = options || {};
if (typeof options !== 'object' || options == null) {
console.error('options is not a valid object');
return null;
}
# Name: Install .exe without admin privileges
# on Windows 10
# Create a .bat file in same directory as the .exe you want to install
Set __COMPAT_LAYER=RunAsInvoker
Start <filename>.exe
@allyouaskfor
allyouaskfor / pi-to-dropbox.py
Created April 18, 2024 18:02
Dropbox authentication and upload
#!/bin/python3
# Copied from https://bit.ly/4aZvn5B
###############################################################################
# Script uploading files to Dropbox and receiving Dropbox links
# -------------------------------------------------------------
# Every target file/folder is passed as argument to the script.
# Two preparation steps are needed:
# 1. Register a Dropbox application and put the application key as value of