Skip to content

Instantly share code, notes, and snippets.

View Senorsen's full-sized avatar
👋
Hello

Sen Zhang Senorsen

👋
Hello
View GitHub Profile
@cbarraco
cbarraco / ffmpeg screen sharing
Last active December 24, 2023 09:46
The poor man's VNC. If you have ffmpeg and netcat you can stream your screen across your network with two one-liners
# If the server has ffmpeg:
## For the server:
ffmpeg -f fbdev -i /dev/fb0 -f avi pipe:1 | nc -l -p 1234
## For the viewer:
nc 127.0.0.1 1234 | ffplay -i pipe:0
# If the server doesn't have ffmpeg:
## For the server:
sudo cat /dev/fb0 | nc -l -p 1234
## For the viewer (replace 1920x1080 with the server's resolution):
@githubutilities
githubutilities / Uninstall-pkg.md
Last active June 7, 2024 22:06
Uninstall pkg manually in OS X

Mac Uninstall pkg Manually

  • using pkgutil
# list all your installed packages
pkgutil --pkgs

# show your package info
pkgutil --pkg-info 

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.

@zenozeng
zenozeng / restart-gnome-shell-from-tty.sh
Created April 27, 2014 17:07
Restart gnome-shell from tty
gnome-shell -r --display=:0
@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 / ssh-via-ssh.sh
Created April 6, 2014 08:44
ssh via ssh
ssh -A -t -p 23 server1 ssh -A server2

参考了以下两篇文献: 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连线中输入以下内容:

@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
@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();
@suziewong
suziewong / by.md
Created April 27, 2013 12:53
bingyan

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

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