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 / .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 <[email protected]>
# 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 / 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
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 / 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'
#!/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
#!/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"
@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