Skip to content

Instantly share code, notes, and snippets.

View xatier's full-sized avatar
💭
吃點心

xatier xatier

💭
吃點心
  • ド田舎
View GitHub Profile
我見過的一個讓我瞠目結舌的電腦高手
1
  很久以前,那還是我用win98的時候有次我系統崩潰了,因為我是電腦白吃,我朋友給
我介紹了一個高手來幫我修電腦。
  
@xatier
xatier / kink.pl
Last active August 29, 2015 14:02
#!/usr/bin/env perl
########################################################################
#
# One hot night in Taichung, I read some intorductions to `kink.com`
# Video clips in this site are pretty great, so I try to do some hack to the site.
#
# Happy hacking,
# - xatier
#

1. Use all of WHOIS, Robtex, and PhishTank to trace back on a phishing email found in your mailbox. If you don’t find one, create one email account and post the email address onto Web to solicit some. Show and discuss your findings.

in my mailbox img

the original mail in plain text img

126.com is a webmail service in China, it's easy to crack an account and use that to spam to others.

# we have these files under `pwd`
┌─[ Fri Jul 04-18:16:29 ] xatier @ xatier-Air ^_^ [ ~> on master= ]
└─[~/work/llvm/llvm/lib/AsmParser]-[Mac OS X] $ ls
CMakeLists.txt LLLexer.h LLParser.h LLVMBuild.txt Parser.cpp
LLLexer.cpp LLParser.cpp LLToken.h Makefile module.modulemap
# now I press `cat l[tab]`
@xatier
xatier / c.py
Last active August 29, 2015 14:03
rip images from ねこ@ふたば <3
#!/usr/bin/env python3
########################################################################
#
# A ねこ@ふたば image crawler
#
# License: [GPL](http://www.gnu.org/copyleft/gpl.html)
#
# Usage: ./c.py > foo.html && chromium foo.html
#
#!/usr/bin/env python3
import lxml.html
import argparse
class RSS:
def __init__(self, url):
assert(url != "")
self.url = url
#!/usr/bin/env python3
import lxml.html
import argparse
class RSS:
def __init__(self, url):
assert(url != "")
self.url = url
@xatier
xatier / dmhy-magdl.py
Last active August 29, 2015 14:13 — forked from dannvix/dmhy-magdl.py
Command-line downloader (via magnet link) for share.dmhy.org
#!/usr/bin/env python3
# encoding: utf-8
# dmhy-magdl.py -- command-downloader for share.dmhy.org
# originally from my friend @dannvix
# modified by @xatier
# https://gist.github.com/dannvix/bcdbc83a880728f658cb
import datetime
import sys
import urllib.parse
@xatier
xatier / oxford.pl
Last active August 29, 2015 14:18
How does Oxford pronounce the word
#!/usr/bin/env perl
use 5.018;
#####################################################
##
## How does Oxford pronounce the word
##
## a little script to grab pronunciations from Oxford online dictionary
##
@xatier
xatier / gist:3051858
Created July 5, 2012 06:45
qemu/hw/stm32.c
static void stm32l152rbt6_init(ram_addr_t ram_size, const char *boot_device, const char *kernel_filename, const char *kernel_cmdline, const char *initrd_filename, const char *cpu_model) {
//Préparation de la mémoire
MemoryRegion *address_space_mem = get_system_memory();
uint16_t flash_size = stm32_board.f_size; //128KBits
uint16_t sram_size = 0x0010; //16 KBits
//Initialisation du processeur (+ mémoire)
qemu_irq* pic = armv7m_init(address_space_mem, flash_size, sram_size, kernel_filename, cpu_model);
stm32l_sys_init(0x1FF00000, pic[28], &stm32_board); //FIXME: Vérifier l'implémentation de la sys memory