Skip to content

Instantly share code, notes, and snippets.

Lentin codexss

Block or report user

Report or block codexss

Hide content and notifications from this user.

Learn more about blocking users

Contact Support about this user’s behavior.

Learn more about reporting abuse

Report abuse
View GitHub Profile
@codexss
codexss / pixivDylib.xm
Created Jun 26, 2019
hook pixiv ad-banner
View pixivDylib.xm
#import <UIKit/UIViewController.h>
@interface _TtC5pixiv26AdContainingViewController : UIViewController
@property(nonatomic) __weak UIView *adContainerView;
@end
%hook _TtC5pixiv26AdContainingViewController
- (void)viewDidLayoutSubviews{
[self.adContainerView removeFromSuperview];
}
@codexss
codexss / tiebaDylib.xm
Last active Jun 26, 2019
hook for tieba client
View tiebaDylib.xm
%hook TBCSplashLaunchADView
- (void)setupUI{}
%end
//启动闪图广告
%hook TBCHomePageViewController
- (void)setupTableHeaderView:(id)arg1{}
%end
//首页顶部广告
View view-source.js
javascript:(function(){var a=window.open("about:blank").document;var b=document.createElement("div");var c=location.href;b.appendChild(document.createTextNode(document.getElementsByTagName("html")[0].innerHTML));a.write("<!DOCTYPE html><html><head><title>view-source:"+c+'</title><meta name="viewport" content="width=device-width, initial-scale=1.0"><link href="http://www.google.com/s2/favicons?domain="'+c+' rel="icon" type="image/x-icon"/><link rel="stylesheet" href="//cdn.jsdelivr.net/gh/highlightjs/cdn-release/build/styles/github.min.css"><script src="//cdn.jsdelivr.net/gh/highlightjs/cdn-release/build/highlight.min.js"><\/script><script src="//cdn.jsdelivr.net/npm/highlightjs-line-numbers.js/dist/highlightjs-line-numbers.min.js"><\/script><script>hljs.initHighlightingOnLoad();hljs.initLineNumbersOnLoad();<\/script><style>.hljs-ln-numbers{text-align:right;color:#808080;word-break:normal;white-space:nowrap;font-size:9px;font-family:Helvetica;user-select:none;box-sizing:border-box;width:31px;background-color:#
View IPA Installer.js
var port_number = 8080
var plist_url = "itms-services://?action=download-manifest&url=https://qcloud.coding.net/u/lentin/p/file/git/raw/master/ipa-installer.plist"
// 从应用内启动
if ($app.env == $env.app) {
$drive.open({
handler: function(data) {
fileCheck(data)
}
})
@codexss
codexss / view-source.js
Created May 20, 2018
for Safari on iOS
View view-source.js
javascript:(function()%7Bvar%20a=window.open('about:blank').document;a.write('%3C!DOCTYPE%20html%3E%3Chtml%3E%3Chead%3E%3Ctitle%3ESource%20of%20'+location.href+'%3C/title%3E%3Cmeta%20name=%22viewport%22%20content=%22width=device-width%22%20/%3E%3C/head%3E%3Cbody%3E%3C/body%3E%3C/html%3E');a.close();var%20b=a.body.appendChild(a.createElement('pre'));b.style.overflow='auto';b.style.whiteSpace='pre-wrap';b.style.wordWrap="break-word";b.appendChild(a.createTextNode(document.documentElement.innerHTML))%7D)();
@codexss
codexss / doc.md
Created Jan 16, 2018
各种解码网站
View doc.md
View iptables.txt
iptables -t nat -A PREROUTING -p tcp -m tcp --dport 80 -j REDIRECT --to-ports 8388
iptables -t nat -A PREROUTING -p udp -m udp --dport 80 -j REDIRECT --to-ports 8388
iptables -t nat -A PREROUTING -p tcp -m tcp --dport 443 -j REDIRECT --to-ports 8388
iptables -t nat -A PREROUTING -p udp -m udp --dport 443 -j REDIRECT --to-ports 8388
@codexss
codexss / Caddyfile
Created Oct 18, 2017 — forked from bendo01/Caddyfile
Caddy Web Server As Service on Centos 7
View Caddyfile
#cd /etc/caddy/Caddyfile
example.com {
root /usr/share/nginx/html
gzip
log /var/log/caddy/access.log
#fastcgi / unix:/var/run/php-fpm/php-fpm.sock php # Fast CGI php interpreter
#fastcgi / fastcgi / 127.0.0.1:9000 php # Fast CGI php interpreter
#using with laravel
fastcgi / unix:/var/run/php-fpm/php-fpm.sock php {
index index.php
View Docker over Caddy Google Reverse Proxy.md

backend

curl -fsSL get.docker.com -o get-docker.sh 
sh get-docker.sh  
docker run -d -p 127.0.0.1:3001:20080  --restart=always lentin/elgoog 

frontend

@codexss
codexss / bash.sh
Created Sep 22, 2017
Build H@H on Debian8
View bash.sh
apt update && apt install default-jdk unzip -y
adduser hath
login hath
wget https://repo.e-hentai.org/hath/HentaiAtHome_1.4.1.zip
unzip HentaiAtHome_1.4.1.zip -d hath/
exit
wget https://github.com/Yukariin/hath-scripts/raw/master/hentaiathome -O /etc/init.d/hentaiathome
wget https://github.com/Yukariin/hath-scripts/blob/master/systemd.service -O /etc/systemd/system/hentaiathome.service
chmod 755 /etc/init.d/hentaiathome
/etc/init.d/hentaiathome start
You can’t perform that action at this time.