Skip to content

Instantly share code, notes, and snippets.

View hizkifw's full-sized avatar
🍝

Hizkia Felix hizkifw

🍝
View GitHub Profile

Keybase proof

I hereby claim:

  • I am HizkiFW on github.
  • I am hizkifw (https://keybase.io/hizkifw) on keybase.
  • I have a public key whose fingerprint is D7A7 8089 EEFC 3554 4597 73C5 EF41 25C8 229F CE1F

To claim this, I am signing this object:

@hizkifw
hizkifw / tic_tac_toe.py
Created July 5, 2017 15:58
A simple Tic-Tac-Toe engine in Python
import os
matrix = [
[" ", " ", " "],
[" ", " ", " "],
[" ", " ", " "]
]
keymap = [
"Q", "W", "E",
"A", "S", "D",
@hizkifw
hizkifw / discord_tic_tac_toe.py
Created July 6, 2017 17:11
A Tic-Tac-Toe cog for Red Discord Bot
import discord
from discord.ext import commands
class Games:
"""
Games cog for Red Discord Bot
Copyright (c) 2017 Hizkia Felix
"""
def __init__(self, bot):
TASK [openwisp.openwisp2 : migrate] ********************************************
fatal: [0.0.0.0]: FAILED! => {"changed": false, "cmd": "./manage.py migrate --noinput", "msg": "\n:stderr: Traceback (most recent call last):\n File \"/opt/openwisp2/env/lib/python3.5/site-packages/django/contrib/gis/db/backends/spatialite/base.py\", line 60, in get_new_connection\n cur.execute(\"SELECT load_extension(%s)\", (self.spatialite_lib,))\n File \"/opt/openwisp2/env/lib/python3.5/site-packages/django/db/backends/sqlite3/base.py\", line 328, in execute\n return Database.Cursor.execute(self, query, params)\nsqlite3.OperationalError: /usr/lib/x86_64-linux-gnu/libspatialite.so.7: undefined symbol: sqlite3_spatialite_init\n\nDuring handling of the above exception, another exception occurred:\n\nTraceback (most recent call last):\n File \"./manage.py\", line 10, in <module>\n execute_from_command_line(sys.argv)\n File \"/opt/openwisp2/env/lib/python3.5/site-packages/django/core/management/__init__.py\", line 364,
@hizkifw
hizkifw / audiovis1.pde
Last active November 25, 2018 06:13
Audio analyzer/visualizer written in Processing.
import processing.sound.*;
FFT fft;
Amplitude amp;
AudioIn ain;
// Circle settings
float min_size = 200;
float threshold = 0.1;
int bass_range = 5;
@hizkifw
hizkifw / bullet-hell.html
Last active April 9, 2019 15:09
Bootleg Touhou game in Javascript
<!DOCTYPE html>
<html>
<head>
<title>Bullet Game</title>
<script>
// quick and dirty bullet hell game written in javascript using html canvas
// made this at my school's computer lab while waiting for the guys to fix some technical difficulties
// not using any libraries because they disabled the internet
// wouldn't have made this if the internet was up in the first place anyways
@hizkifw
hizkifw / autosetup-script.sh
Last active September 23, 2020 15:40
Auto setup script for fresh Ubuntu installations
#!/bin/bash
USERNAME=hizkifw
# Install packages
apt update
apt upgrade -y
apt install -y axel vim openvpn python3 python3-pip cloudflared cmake build-essential git tmux fail2ban gimp mplayer vlc cmus ffmpeg pv qbittorrent keepassxc chromium-browser xclip
# Install node
@hizkifw
hizkifw / .tmux.conf
Last active December 7, 2020 09:06
My tmux config
# hizkifw's tmux configuration
# based off https://github.com/gpakosz/.tmux
# -------------------------------------------------------------------------------
# general
# -------------------------------------------------------------------------------
set -g default-terminal "screen-256color"
set -g prefix2 C-Space
set -g history-limit 5000
@hizkifw
hizkifw / video_facial_landmarks.py
Created June 2, 2020 13:36
some face tracking thing
# USAGE
# wget https://github.com/AKSHAYUBHAT/TensorFace/raw/master/openface/models/dlib/shape_predictor_68_face_landmarks.dat
# python3 video_facial_landmarks.py
# import the necessary packages
from socket import *
from imutils.video import VideoStream
from imutils import face_utils
from scipy import signal
import datetime