Skip to content

Instantly share code, notes, and snippets.

View dogtopus's full-sized avatar
🦄
Unicorn!

dogtopus

🦄
Unicorn!
View GitHub Profile
#!/usr/bin/env ruby
require 'zlib'
require 'yaml'
def decode(fname,dir)
begin
Dir.mkdir(dir) if !File.exist?(dir) and !File.directory?(dir)
marshal=File.open(fname,'rb')
yaml=File.open(File.join(dir,'Scripts.yaml'),'wb')
@dogtopus
dogtopus / 91sucks.sh
Created April 22, 2013 12:23
PandaDaemon remove script
#!/bin/bash
# Run as root, and it'll remove PandaDaemon automatically
# Make sure you have uninstalled ALL the pxl package before you run this script
# This script comes up with NO WARRANTY, it may brick your iOS device, you should know what you're doing before you start.
echo 'Cleaning up...'
rm -rf /Applications/PandaSpace.app
rm -rf /var/mobile/PandaSpace
rm -rf /var/mobile/Library/PandaSpace/
rm -rf /var/mobile/Library/NetDragon/
$ desmume --cpu-mode=1 --jit-size=1 ind-cpue.nds
Slot 2: NONE
Failed to set format: Invalid argument
Microphone init failed.
DeSmuME 0.9.10 svnr4636 x86-JIT NOSSE
SoftRast Initialized with cores=1
Already decrypted.
ROM game code: CPUE
ROM crc: 69D628E8
x
webadmin
webadmin2
vmail
vaimedia
vaimedia3
upload
transoft
tomcat
test
# 脚本使用设定:
LEVEL_UP_POINT = 1 # 每升一级所增加的点数
LEVEL_UP_VARIABLE = 110 # 储存角色点数的变量编号与角色id编号的差值
# 默认情况 = 100,
# 则是数据库里1号角色的加点数存于101号变量
# 3号角色的加点数存于103号变量。
# 你可以直接操作变量赠与角色可分配点数
@dogtopus
dogtopus / haibot.txt
Created March 3, 2016 04:13
Haibara bot @ Baidu Tieba
不能从外表去判断的,就像美丽的蔷薇也有刺一样。
人是不可以过度水贴的……如果特意去水贴的话,吧务就会给你惩罚。
人是有感情的动物,而感情是看不见的,所以才会十分善变。
人类的科学所创造出来的悲剧,你不觉得很可怕吗?
今天是大吉呢
你不会得意忘形,水好多贴了吧,嗯?
你又召唤我这个年幼可爱的少女来帮你暖贴吗?
你是变态吗
你是我非常感兴趣的研究对象,所以我想给你挽尊
你的正义之眼看得穿邪恶之心,却看不透女人的心意?
@dogtopus
dogtopus / Dockerfile
Last active July 1, 2016 13:31
v2ray Dockerfile using alpine
FROM alpine:latest
# ENV V2RAY_VERSION master
ENV V2RAY_VERSION v1.17.3
ENV BUILD_DEPENDENCIES go git
ENV GOPATH /tmp/go
RUN apk add --update $BUILD_DEPENDENCIES \
&& mkdir $GOPATH \
@dogtopus
dogtopus / exception_dump_parser_rasm2.py
Created October 17, 2016 04:41
Luma3DS exception dump parser, modified to use rasm2 as disassembler
#!/usr/bin/env python
# Requires Python >= 3.2 or >= 2.7
# This file is part of Luma3DS
# Copyright (C) 2016 Aurora Wright, TuxSH
#
# This program is free software: you can redistribute it and/or modify
# it under the terms of the GNU General Public License as published by
# the Free Software Foundation, either version 3 of the License, or
# (at your option) any later version.
@dogtopus
dogtopus / fetchbib.sh
Last active September 25, 2018 23:19
Resolve DOI references and print bibliography in BibTeX format
#!/bin/bash
if [[ $# -lt 1 ]]; then
echo "Usage ${0} <doi> ..."
exit 1
fi
for doi in "${@}"; do
ref="$(curl -sSf -H 'Accept: application/x-bibtex' -L "http://dx.doi.org/${doi}")" && { \
head -n1 <<< "${ref}" | egrep -q '^@[a-zA-Z]+'
if [[ $? != 0 ]]; then
@dogtopus
dogtopus / invoke.md
Last active November 5, 2018 21:03
Washing Machine Video generator

Washing Machine Video generator

>Why is she in a washing machine?
>No anon, YOU are in the washing machine

wmv

(Not actual output)