Skip to content

Instantly share code, notes, and snippets.

View Senorsen's full-sized avatar
👋
Hello

Sen Zhang Senorsen

👋
Hello
View GitHub Profile
@mitsuoka
mitsuoka / MIME.dart
Last active November 11, 2022 12:43
Dart WebSocket chat server and client samples
library MIME;
// get MIME type (returns null if there is no such extension)
String mimeType(String extension) => _mimeMaps[extension];
// default MIME type mappings
Map _mimeMaps = const {
'abs': 'audio/x-mpeg',
'ai': 'application/postscript',
'aif': 'audio/x-aiff',
@NicolasT
NicolasT / build.sh
Created April 8, 2013 09:07
Cross-compile Seafile to Windows on a Linux system using i686-w64-mingw32
#!/bin/bash -ue
# Dependencies (list might be incomplete):
# src/libevent-2.0.21-stable.tar.gz
# src/libsearpc (I used git f022c6509cff2eb604024c003eb60bcda975c0b1)
# src/ccnet (with Nicolas' patches, I used 3495a78466add16cfa9eddfb35a312bb9ce55264)
# src/seafile (with Nicolas' patches, I used 59eb918655dfa5f1328ec72be00681c6192f523d)
#
# Toolchain:
# vala (vala-0.18.1-1.fc18.x86_64)
@suziewong
suziewong / by.md
Created April 27, 2013 12:53
bingyan

去武汉三天,终于回来。其实,大家要相信,在杭州上学真的还是挺幸福的 除了有时候连续下一个星期的雨,有时候感觉春如四季…… 不过,去了不一样的地方,接触不同的人,多多观察,思考,总是好的。

这三天对我来说意义非凡。去旅游不算什么,黄鹤楼不算什么,带回鸭脖也不算什么……重要的是和站长、BaBa 等 那些管理层一起相处了三天,一起思考,互相交流;还有和冰岩人一起开的3个会议,我们了解,探讨,争论,然后开开玩笑。。。 去之前我回味了几遍 偶像JZ大人 上次去后回来写的感言,想起前冰岩总管 段磊 被求是潮采访时候我心中对他的无线仰慕的场景,心中便不由得忐忑不安——貌似他们好强啊!!

@zenozeng
zenozeng / 评教.js
Last active January 1, 2016 17:39
自动评教脚本(部分)
var oHead = document.getElementsByTagName('HEAD').item(0);
var oScript= document.createElement("script");
oScript.type = "text/javascript";
oScript.src="https://code.jquery.com/jquery-2.1.4.min.js";
oScript.onload = function() {
jQuery('input[value="5"], input[value="优秀"]').each(function() {
console.log(jQuery(this));
jQuery(this).click();
});
$('#Button1').click();
@EmmanuelKasper
EmmanuelKasper / EFI boot on Lenovo Thinkcenter M92Z
Last active February 14, 2023 13:02
EFI boot on Lenovo Thinkcenter M92Z
# disable secure boot in the bios, in menu security
# downlad and unzip refind-bin-0.7.8.zip
# install refind, assuming your ESP partition is /dev/sda1 and mounted in /boot/efi
cd refind-bin-0.7.8
./install.sh
# type y and go ahead
# at that time your boot entry should look like that

参考了以下两篇文献: http://blog.ch3n2k.com/2013/09/openwrt.html http://www.right.com.cn/forum/thread-128967-1-1.html

tomato路由器上已经成功部署,并且一直很稳定,openwrt的部署步骤是我按照上面的两篇文献以及tomato上的部署经验写的,但我没有真正搭建过。下面是详细的解决方案:

#一、tomato路由器 1、设置好jffs和ipkg安装环境;把附件中的geoip压缩包的内容放入/opt/etc/geoip(或者/jffs/opt/etc/geoip)目录下。

2、在系统管理——脚本设置——wan连线中输入以下内容:

@zenozeng
zenozeng / ssh-via-ssh.sh
Created April 6, 2014 08:44
ssh via ssh
ssh -A -t -p 23 server1 ssh -A server2
@emersion
emersion / gitlab-raspberrypi.sh
Last active December 1, 2016 11:26
Gitlab install on Raspberrypi (cross-compiling)
# Gitlab install instructions: https://gitlab.com/gitlab-org/gitlab-ce/blob/master/doc/install/installation.md
# Cross-compiling on Rpi: https://raspberrypi.stackexchange.com/questions/1/how-do-i-build-a-gcc-4-7-toolchain-for-cross-compiling
apt-get update -y
apt-get upgrade -y
apt-get install -y sudo
apt-get install -y build-essential zlib1g-dev libyaml-dev libssl-dev libgdbm-dev libreadline-dev libncurses5-dev libffi-dev curl openssh-server redis-server checkinstall libxml2-dev libxslt-dev libcurl4-openssl-dev libicu-dev logrotate
apt-get install -y git-core
@zenozeng
zenozeng / restart-gnome-shell-from-tty.sh
Created April 27, 2014 17:07
Restart gnome-shell from tty
gnome-shell -r --display=:0

CySCA 2014 - Web Application Pentest

The CySCA organizers have released a VM image with most of the challenges from CySCA 2014, which you can grab from http://goo.gl/6ftZ39 to play with. Here are my solutions to the Web Application Pentest section.

Club Status

Only VIP and registered users are allowed to view the Blog. Become VIP to gain access to the Blog to reveal the hidden flag.