Skip to content

Instantly share code, notes, and snippets.

View Saren-Arterius's full-sized avatar
💭
(^^)

Saren Arterius Saren-Arterius

💭
(^^)
View GitHub Profile
@Saren-Arterius
Saren-Arterius / gist:10583912
Created April 13, 2014 13:20
TFM items shooting
function eventKeyboard(playerName, keyCode, down, xPlayerPosition, yPlayerPosition)
if keyCode == 32 then
playerShoot(playerName, false, xPlayerPosition, yPlayerPosition, tfm.get.room.playerList[playerName]["isFacingRight"])
elseif keyCode == 17 then
playerShoot(playerName, true, xPlayerPosition, yPlayerPosition, tfm.get.room.playerList[playerName]["isFacingRight"])
end
end
function playerShoot(playerName, fast, xPlayerPosition, yPlayerPosition, isFacingRight)
if fast then
#!/usr/bin/python
from selenium.common.exceptions import NoSuchElementException
from selenium import webdriver
from time import time
class HKGoldenLMDeleter(object):
hkg_url = "http://forum10.hkgolden.com/login.aspx?error=1"
#!/usr/bin/env python3
from io import BytesIO
from subprocess import check_output
import sys
from PIL import Image, ImageDraw
MAX_VALUE = 255
MIN_VALUE = 0
DESIRED_BRIGHTNESS = 128
@Saren-Arterius
Saren-Arterius / alias.sh
Last active August 29, 2015 14:20
My alias
export VISUAL=nano
alias suy='sudo pacman -Suy'
alias syu='sudo pacman -Syu'
alias sta='sudo systemctl start'
alias sto='sudo systemctl stop'
alias stt='sudo systemctl status'
alias rst='sudo systemctl restart'
alias enb='sudo systemctl enable'
@Saren-Arterius
Saren-Arterius / zshrc
Last active August 29, 2015 14:20
zshrc append
bindkey -s "^[Op" "0"
bindkey -s "^[Ol" "."
bindkey -s "^[OM" "^M"
# 1 2 3
bindkey -s "^[Oq" "1"
bindkey -s "^[Or" "2"
bindkey -s "^[Os" "3"
# 4 5 6
bindkey -s "^[Ot" "4"
bindkey -s "^[Ou" "5"
@Saren-Arterius
Saren-Arterius / exploit.py
Created November 2, 2015 04:01
10.10.5 exploit
# CVE-2015-5889: issetugid() + rsh + libmalloc osx local root
# tested on osx 10.9.5 / 10.10.5
# jul/2015
# by rebel
import os,time,sys
env = {}
s = os.stat("/etc/sudoers").st_size
@Saren-Arterius
Saren-Arterius / .zshrc
Created November 24, 2015 15:40
lazy grml zshrc
# Filename: /etc/zsh/zshrc
# Purpose: config file for zsh (z shell)
# Authors: grml-team (grml.org), (c) Michael Prokop <mika@grml.org>
# Bug-Reports: see http://grml.org/bugs/
# License: This file is licensed under the GPL v2.
################################################################################
# This file is sourced only for interactive shells. It
# should contain commands to set up aliases, functions,
# options, key bindings, etc.
#
@Saren-Arterius
Saren-Arterius / komica.py
Last active January 3, 2016 06:21
聲優廚終結者
#!/usr/bin/env python3
from pybrain.datasets import SupervisedDataSet
from pybrain.structure import TanhLayer
from pybrain.supervised.trainers import BackpropTrainer
from pybrain.tools.shortcuts import buildNetwork
from pyquery import PyQuery as pq
from os.path import exists
import urllib.request
import pickle
#!/bin/bash
# This script should be run by a DDoS protected server
REMOTE_DOMAIN="vulnerable-minecraft-server.domain"
PROTECTOR_PORT=8080
PROTECTED_PORT=25565
echo Fetching IPs...
PROTECTOR_IP=$(ip a | grep inet | awk 'FNR == 3 {print $2}' | sed 's/\/[0-9]\{1,\}//g')
#!/bin/bash
# This script should be run by a Minecraft server
# Notice: You will NOT be able to connect ddos.protected-server.domain from the same
# public IP address as vulnerable-minecraft-server.domain has. I have wasted at least
# 8 hours then found out that.
REMOTE_DOMAIN="ddos.protected-server.domain"
PROTECTOR_PORT=8080