Skip to content

Instantly share code, notes, and snippets.

View tatumroaquin's full-sized avatar
🐢
steadily walking with my knowledge

Tatum Roaquin tatumroaquin

🐢
steadily walking with my knowledge
  • Australia
  • 15:34 (UTC +10:00)
View GitHub Profile
// requestAnimFrame; find variable for all browsers supporting animation
window.requestAnimFrame = (function() {
return window.requestAnimationFrame ||
window.webkitRequestAnimationFrame ||
window.mozRequestAnimationFrame ||
window.msRequestAnimationFrame ||
window.oRequestAnimationFrame ||
function(callback) {
setTimeout(callback, 1000 / 60)
}
@tatumroaquin
tatumroaquin / grid-ball.js
Last active August 16, 2021 10:34
Grid Ball
/**
* @name: Grid Ball
* @date: 7-29-16 | July 29, 2016
* @author: ormux
* @class: Ball Physics
* @version: 1.1
*/
/* Request Animation Frame Shim; this piece of code is my hero... */
window.requestAnimFrame = (function() {
return window.requestAnimationFrame ||
@tatumroaquin
tatumroaquin / the-swarm.js
Last active August 16, 2021 10:42
Particles
/*
@author: ormux (c) Copyright 2016
@name: Particles | The Swarm
@date: 7-22-16 | July 22, 2016
@class: Particle Effects
@version: final
*/
window.requestAnimFrame = (function() {
return window.requestAnimationFrame ||
window.webkitRequestAnimationFrame ||
#!/usr/bin/env bash
#author :ormux
#date :2019/08/31 (August 31)
#description :generates a needed bookcode for my cryptographic puzzles.
#title :getbookcode.sh
#usage :bash getbookcode.sh
read -p "enter word/sentence: " word
line_num=1
word_idx=1
#!/usr/bin/env bash
#author :ormux
#date :2019/08/31 (August 31)
#description :generates a LaTeX bibliography based on the DOI of a pdf document for easy referencing.
#title :getbib.sh
#usage :bash getbib.sh <DOI/file>
#version :0.1
if [[ -z $1 ]]; then
echo "usage: getbib.sh file.pdf";
#!/usr/bin/env bash
#author :ormux
#date :2019/08/31 (August 31)
#description :reads bookcode based on a given text, originally by clevcode
#title :readbookcode.sh
#usage :bash readbookcode.sh
read -p "bookcode filepath: " code
read -p "source filepath: " text
#description :a simple script to perform xor operations on 2 files and save the output
#title :xor.py
#usage :xor.py file1 file2 file3
import sys
file1_b = bytearray(open(sys.argv[1], 'rb').read())
file2_b = bytearray(open(sys.argv[2], 'rb').read())
size = len(file1_b) if len(file1_b) < len(file2_b) else len(file2_b)
@tatumroaquin
tatumroaquin / alarmpi-wifi.sh
Last active July 5, 2022 05:37
connects RPI4 to an access point so that SSH can be accessed directly without cables.
#!/bin/sh
#https://archlinuxarm.org/forum/viewtopic.php?f=31&t=11529
#dependency: pacman -S wpa_supplicant
set -e
if [ $# -ne 3 ]; then
echo "Usage: $0 </dev/disk> <ssid> <passphase>"
exit 1
fi
@tatumroaquin
tatumroaquin / password-store.md
Last active December 17, 2022 22:04
general instructions to setting up a local password-store server

Password Store Setup

  1. create bare git repo to push and pull from all devices.
    mkdir ~/.config/.password-serve.git

  2. initialise the empty bare git repository
    cd ~/.config/.password-serve.git git init --bare --initial-branch=master

  • note: may output, 'fatal: This operation must be done in a work tree' ignore this.
@tatumroaquin
tatumroaquin / lemp-stack.md
Last active June 24, 2021 01:40
simple LEMP stack web server

Arch Linux LEMP Stack

Install NGINX Web Server

  1. sudo pacman --noconfirm -S nginx
  2. sudo vim /etc/nginx/nginx.conf
// Modify the following
location / {
   root           /usr/share/nginx/html;
   index          index.html index.php;