Skip to content

Instantly share code, notes, and snippets.

View cjburkey01's full-sized avatar

CJ Burkey cjburkey01

View GitHub Profile
@RubenKelevra
RubenKelevra / fast_firefox.md
Last active May 27, 2024 21:23
Make Firefox fast again
@stecman
stecman / NewKittyWindow.scpt
Last active April 19, 2024 23:00
New Kitty terminal window global hotkey on Mac OSX
# Open a new kitty terminal window on MacOS
#
# 1. Copy this script into AppleScript Editor and save it somewhere
# 2. Use something like Apptivate to run the script on a global hotkey:
# http://www.apptivateapp.com/
#
# Note this script doesn't work well as a Service through Automator as the
# "click menu" functionality requires accessibility privileges granted.
# Services run as the focused app, so that setup would require every context
# the shortcut is run from to have accessibility granted.
@Goldmensch
Goldmensch / DCommand.java
Last active May 16, 2022 10:34
a class to register a command without plugin.yml
package ###;
import org.bukkit.Bukkit;
import org.bukkit.command.*;
import org.bukkit.command.defaults.BukkitCommand;
import org.jetbrains.annotations.NotNull;
import org.jetbrains.annotations.Nullable;
import java.lang.reflect.Field;
import java.util.List;
@carrotflakes
carrotflakes / make_movie.rs
Last active August 25, 2023 09:01
Generate a movie by Rust with FFmpeg.
use std::io::Write;
use std::process::{Command, Stdio};
fn make_frame(width: usize, height: usize, time: usize) -> Vec<u8> {
let mut frame = Vec::with_capacity(4 * width * height);
for y in 0..height {
for x in 0..width {
frame.push((x % 256) as u8);
frame.push((y % 256) as u8);
frame.push((time % 256) as u8);
@aahung
aahung / .applescript
Created June 26, 2019 08:16
Open current folder in Kitty (apple script)
on alfred_script(q)
tell application "Finder"
set pathList to (quoted form of POSIX path of (folder of the front window as alias))
set textToType to "clear; cd " & pathList
end tell
tell application "System Events"
set isRunning to (exists (processes where name is "kitty"))
end tell
@cjburkey01
cjburkey01 / libraries.sh
Created November 22, 2017 05:41
Generating OpenGL Cross-Compatible Dependencies (on MacOS High Sierra)
# Create GLFW Libs and put them in /usr/local/
mkdir {{GLFW_BUILDING_DIRECTORY}}
cd {{GLFW_BUILDING_DIRECTORY}}
cmake -D BUILD_SHARED_LIBS=ON {{GLFW_DIRECTORY}}
make
sudo make install
# Create GLEW Libs and put them in /usr/local/
mkdir {{GLEW_BUILDING_DIRECTORY}}
cd {{GLEW_BUILDING_DIRECTORY}}
@patik
patik / osx-special-chars.ahk
Last active November 28, 2022 12:02 — forked from aarongustafson/osx-special-chars.ahk
AutoHotKey stuff
#UseHook
!VKC0SC029::Return ; grave -> the grave ` accent gave some probs, used the virtualkey + scancode instead
!e::Return ; acute
!i::Return ; circumflex
!t::Return ; tilde
!u::Return ; umlaut
; 1 2 3 4 5 6 7 8 9 1
; 0
; r g G a A c C t T u U
@patriciogonzalezvivo
patriciogonzalezvivo / GLSL-Noise.md
Last active May 29, 2024 12:43
GLSL Noise Algorithms

Please consider using http://lygia.xyz instead of copy/pasting this functions. It expand suport for voronoi, voronoise, fbm, noise, worley, noise, derivatives and much more, through simple file dependencies. Take a look to https://github.com/patriciogonzalezvivo/lygia/tree/main/generative

Generic 1,2,3 Noise

float rand(float n){return fract(sin(n) * 43758.5453123);}

float noise(float p){
	float fl = floor(p);
  float fc = fract(p);
@vaiorabbit
vaiorabbit / Building libglfw.dylib on macOS (Apple Silicon)
Last active September 8, 2022 13:10
Building libglfw.dylib on macOS (Apple Silicon)
$ curl -L https://github.com/glfw/glfw/releases/download/3.3.2/glfw-3.3.2.zip > glfw-3.3.2.zip
$ unzip glfw-3.3.2.zip
$ cd glfw-3.3.2/
$ mkdir build
$ cd build
$ export MACOSX_DEPLOYMENT_TARGET=10.14
$ cmake -D CMAKE_BUILD_TYPE=Release -D GLFW_NATIVE_API=1 -D CMAKE_OSX_ARCHITECTURES="x86_64;arm64" -D BUILD_SHARED_LIBS=ON -D CMAKE_C_COMPILER=clang ../
$ make
$ ls -l src/libglfw*
@lancejpollard
lancejpollard / meta-tags.md
Created March 5, 2012 13:54
Complete List of HTML Meta Tags

Copied from http://code.lancepollard.com/complete-list-of-html-meta-tags/

Basic HTML Meta Tags

<meta name="keywords" content="your, tags"/>
<meta name="description" content="150 words"/>
<meta name="subject" content="your website's subject">
<meta name="copyright"content="company name">
<meta name="language" content="ES">