Skip to content

Instantly share code, notes, and snippets.

View zet4's full-sized avatar
🏠
Working from home

Aleksandr Tihomirov zet4

🏠
Working from home
View GitHub Profile
Traceback (most recent call last):
File "C:\Users\User\AppData\Local\Programs\Python\Python35\lib\site-packages\werkzeug\wsgi.py", line 650, in __call__
return app(environ, start_response)
File "C:\Users\User\AppData\Local\Programs\Python\Python35\lib\site-packages\flask\app.py", line 1836, in __call__
return self.wsgi_app(environ, start_response)
File "C:\Users\User\Projects\WaveRate\waverate\middleware.py", line 58, in __call__
return self.app(environ, start_response)
File "C:\Users\User\AppData\Local\Programs\Python\Python35\lib\site-packages\flask\app.py", line 1820, in wsgi_app
response = self.make_response(self.handle_exception(e))
File "C:\Users\User\AppData\Local\Programs\Python\Python35\lib\site-packages\flask\app.py", line 1403, in handle_exception
@zet4
zet4 / nginx.conf.template
Created April 10, 2015 12:09
Nginx Development Scripts
worker_processes 1;
events {
worker_connections 1024;
}
pid ROOT/nginx_user.pid;
http {
access_log ROOT/nginx_access.log;
@zet4
zet4 / debug.sh
Created April 8, 2015 05:47
Budgie WM Debug
#! /bin/sh
Xephyr -ac -br -noreset -screen 1024x720 :2.0 &
XEPHYR_PID=$!
sleep 1
DISPLAY=:2.0 ./wm/budgie-wm
kill $XEPHYR_PID
// constants -------------------------------------------------------------------
var alliedTypes = {
peasant: 'peasant',
soldier: 'soldier',
knight: 'knight',
librarian: 'librarian',
griffinRider: 'griffin-rider',
captain: 'captain'
};
@zet4
zet4 / Database.java
Created May 16, 2014 10:28
A Java database class for a friend.
package com.zetaworx.proboblyawesome.handler.database;
import java.io.File;
import java.io.BufferedReader;
import java.io.BufferedWriter;
import java.io.FileReader;
import java.io.FileWriter;
import java.io.IOException;
import java.util.ArrayList;
@zet4
zet4 / folderMaid_v2.py
Last active August 29, 2015 13:57
Renames/Moves all files in a folder of execution to a subfolder of choice and then into a subfolder depending on mimetype.
'''
Description: Renames/Moves all files in a folder of execution to a subfolder of choice and
then into a subfolder depending on mimetype, ignores script itself.
-----
Date: Thursday, 20 March 2014, 07:40:00 CST
Author: ZetaHunter
Credit: Fellow redditors SatanKidneyPie and vmsmith.
'''
import os
import mimetypes
@zet4
zet4 / folderMaid.py
Last active August 29, 2015 13:57
You will need python 3 or newer to run this script, save as anything you want in the folder to clean, run, enjoy the result.
import os
#Check and/or create directory 'dirname'.
def make_dir(dirname):
if os.path.isdir(dirname) != True:
os.mkdir(dirname)
#Check and/or rename file 'fr' to 'to'
def move_file(fr, to):
if os.path.isfile(to) != True:
#version 420
uniform mat4 projection_matrix;
uniform mat4 model_matrix;
void main()
{
int tri = gl_VertexID / 3;
int idx = gl_VertexID % 3;
int face = tri / 2;