Skip to content

Instantly share code, notes, and snippets.

View daegalus's full-sized avatar
❄️

Yulian Kuncheff daegalus

❄️
View GitHub Profile
@daegalus
daegalus / baseConvert.js
Created February 24, 2012 10:13
Positional Notation Encoder/Decoder
var BASE02 = "01"; //Binary
var BASE04 = "0123";
var BASE08 = "01234567"; //Octal
var BASE10 = "0123456789"; //Decimal
var BASE16 = "0123456789ABCDEF"; //Hexadecimal
var BASE36 = "0123456789ABCDEFGHIJKLMNOPQRSTUVWXYZ";
var BASE62 = "abcdefghijklmnopqrstuvwxyz0123456789ABCDEFGHIJKLMNOPQRSTUVWXYZ";
var BASE75 = "abcdefghijklmnopqrstuvwxyz0123456789ABCDEFGHIJKLMNOPQRSTUVWXYZ_.,!=-*(){}[]"; //URL SAFE
function getValueOfDigit(digit, alphabet)
@daegalus
daegalus / halparser.py
Created March 4, 2013 18:37
Parser for HAL translation Excel file to Spring Property Files.
from xlrd import open_workbook,cellname
import os
# Open the Excel Spreadsheet and get the first Sheet
book = open_workbook('translations.xls')
sheet = book.sheet_by_index(0)
# Setup initial lists for storing the keys and langauges
keys = []
languages = []
@daegalus
daegalus / level8.py
Last active December 14, 2015 12:08
Stripe CTF Level 8 solution. Very hacky, messy, and not very well written, but it worked and it got me a T-Shirt and my name on the leaderboard.
import urllib2
import json
import SocketServer
import socket
import threading
import sys
import time
url = 'https://level08-3.stripe-ctf.com/user-ilxzfufcbq/'
password1 = 0
@daegalus
daegalus / gw2downloader.py
Last active January 22, 2019 16:14
GW2 Downloader - This was used during alpha/beta for reverse engineering efforts, don't know if it still works.
import os
import urllib.request
import struct
import numpy
manifest = None
lastFileSize = 0
def readManifest(version):
"""Reads the manifest file for the specified version."""
@daegalus
daegalus / gw2intializer.py
Last active December 14, 2015 12:09
GW2 Initializer - Was used during alpha/beta for reverse engineering efforts. Probably does not work anymore. Making it public as it was private for a long time.
import os
import urllib.request
import struct
import sys
import shlex
infoList = [];
def getLatest(branch):
"""Downloads 'latest' file to get the latest versions."""
@daegalus
daegalus / rpi-pong.py
Last active December 14, 2015 12:08
Raspberry Pi Pong script. On boot, updates a central server with its current WAN and LAN ip so it can be booted headlessly on any network.
import urllib2
import commands
lanip = commands.getoutput('netstat -n -t | awk \'{print $4}\' | grep -o "[0-9]*\.[0-9]*\.[0-9]*\.[0-9]*" | grep -v "127.0.0.1" | sort -u')
wanip = urllib2.urlopen('http://ipv4.icanhazip.com').read().strip()
result = urllib2.urlopen('http://yulian.kuncheff.com/rpi/?ip='+lanip+'&lanip='+wanip,"").read()
if result != 'Ok':
sys.stderr.write('There was an errror posting IPs : '+result+'\n')
/* Flatten das boostrap */
.well, .navbar-inner, .popover, .btn, .tooltip, input, select, textarea, pre, .progress, .modal, .add-on, .alert, .table-bordered, .nav>.active>a, .dropdown-menu, .tooltip-inner, .badge, .label, .img-polaroid {
-moz-box-shadow: none !important;
-webkit-box-shadow: none !important;
box-shadow: none !important;
-webkit-border-radius: 0px !important;
-moz-border-radius: 0px !important;
border-radius: 0px !important;
border-collapse: collapse !important;
background-image: none !important;

Keybase proof

I hereby claim:

  • I am Daegalus on github.
  • I am yulian (https://keybase.io/yulian) on keybase.
  • I have a public key whose fingerprint is 10B3 7026 CB46 5449 E31D 0F41 EBBC 3398 5BFC 0E17

To claim this, I am signing this object:

@daegalus
daegalus / ScalaScript
Last active August 29, 2015 14:21
Scala Bash
#!/bin/sh
exec scala "$0" "$@"
!#
@daegalus
daegalus / feral_druid.tmw
Last active November 9, 2016 03:08
Feral Druid Display for TMW - Latest version is 1.7
^1^T^SVersion^N82008 ^SNumGroups^N10 ^SCodeSnippets^T ^N1^T ^SName^SFeralBuffState ^SCode^SabilityState~`=~`{}~J currentBuffs~`=~`{}~J currentTargetGUID~`=~`nil~J ~J function~`hasBuff(ability,~`buff)~J ~`~`~`~`return~`currentTargetGUID~`and~`abilityState[currentTargetGUID]~`and~`abilityState[currentTargetGUID][ability]~`and~`abilityState[currentTargetGUID][ability][buff]~J end~J ~J function~`setBuffs(ability)~J ~`~`~`~`if~`currentTargetGUID~`==~`nil~`then~J ~`~`~`~`~`~`~`~`return~J ~`~`~`~`end~J ~`~`~`~`~J ~`~`~`~`if~`not~`abilityState[currentTargetGUID]~`then~J ~`~`~`~`~`~`~`~`abilityState[currentTargetGUID]~`=~`{}~J ~`~`~`~`end~J ~`~`~`~`~J ~`~`~`~`abilityState[currentTargetGUID][ability]~`=~`{}~J ~`~`~`~`~J ~`~`~`~`for~`buff,exists~`in~`pairs(currentBuffs)~`do~J ~`~`~`~`~`~`~`~`abilityState[currentTargetGUID][ability][buff]~`=~`exists~J ~`~`~`~`end~J ~`~`~`~`~J end~J ~J function~`setBuffActiveness(buff,~`active)~J ~`~`~`~`currentBuffs[buff]~`=~`active~J end~J ~J ~J function~`clearBuffsForAbility(ability)~J