This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// ==UserScript== | |
// @name ByeZhihuSecurity | |
// @namespace http://tampermonkey.net/ | |
// @version 0.1 | |
// @description 去除知乎点开外链的安全中心跳转 | |
// @author Lin Xiangyu | |
// @match https://www.zhihu.com/* | |
// @grant none | |
// ==/UserScript== |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# Install Mosh and other software | |
yum -y update | |
yum groupinstall -y 'development tools' | |
yum -y install git vim curl screen nodejs mosh zsh nginx | |
yum install epel-release -y | |
#yum -y install mosh | |
sudo iptables -I INPUT 1 -p udp --dport 60000:61000 -j ACCEPT |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
VNCSERVERS="1:root" | |
VNCSERVERARGS[1]="-geometry 800x600" |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
require 'git' | |
# 一个计算在项目中 coding 时间的 Ruby 脚本,适用于频繁提交 commit 的个人项目。目前局限性还很大。 | |
# 扫描 Git 的 Log,对于两个时间间隔短的 commit 那么判定这个时间段在 coding,统计的总时间会略少一点。 | |
# 具体如何判定间隔可以修改 judge 函数。 | |
# 使用: |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#import <UIKit/UIKit.h> | |
@interface SXTimeScopePicker : UIPickerView<UIPickerViewDataSource, UIPickerViewDelegate> | |
@property NSString *currentText; | |
@property NSArray *data; | |
@property UITextField *textField; |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// | |
// SXStoregeHelper.h | |
// sx | |
// | |
// Created by xiangyu on 3/26/14. | |
// Copyright (c) 2014 xiangyu. All rights reserved. | |
// | |
#import <Foundation/Foundation.h> | |
#import "DefaultsKeys.h" |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// | |
// SXHTTPHelper.h | |
// sx | |
// | |
// Created by xiangyu on 4/1/14. | |
// Copyright (c) 2014 xiangyu. All rights reserved. | |
// | |
#import <Foundation/Foundation.h> |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/usr/bin/perl | |
# | |
# 24 November 2008 | |
# Framework Dumping utility; requires class-dump | |
# 2014.8.3 modify by Lin Xiangyu <[email protected]> to fit iOS 7.1 SDK | |
use strict; | |
use Cwd; | |
use File::Path; |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
[1024, 512, 256, 128 ,100, 64, 50, 26 ,24].each do |i| | |
n = i.to_s | |
`convert raw.png -resize #{n}x#{n}! #{n}.png` | |
end |
NewerOlder