Skip to content

Instantly share code, notes, and snippets.

View rschiang's full-sized avatar
🐳
Sailing

Poren Chiang rschiang

🐳
Sailing
View GitHub Profile
@Inndy
Inndy / ban-hacker.nginx
Last active January 21, 2016 03:32
Wordpress ban hacker!!!!
location ^~ /wp-login.php {
if ($http_user_agent ~* sqlmap|NESSUS|hacker|MSIE) {
return 404;
}
if ($arg_action = lostpassword) {
return 403;
}
include snippets/fastcgi-php.conf;
fastcgi_pass unix:/var/run/php/php7.0-fpm.sock;
}
@yuanchao
yuanchao / fontgen.py
Last active August 29, 2015 14:27 — forked from medicalwei/fontgen.py
fontgen.py with faux bold and height adjustment code
#!/usr/bin/env python
import argparse
import freetype
import os
import re
import struct
import sys
import itertools
import json
@ccwang002
ccwang002 / 0_Background.md
Last active August 29, 2025 07:38
Lab Coding Instructions for Beginners

[TOC]

Lab Guide for Coding Beginners

亮亮(@ccwang002)| Mar, 2015 | CC 3.0 BY license

如果內容有誤,你可以用任何管道發訊息轟炸我,或用底下的 gist comment 留言。

學習方式

每個檔案都會是一個主題,主題底下會列出一些資源。資源的最後會有一個學習目標,方便讓你評估自己學到什麼程度。學習目標會給一個明確的任務,我盡量讓它能跟(宅宅的)日常生活結合。通常只要完成前一、二個目標就行了,這也不是功課所以不一定要給我看。如果你不介意給我看,我會分享我主觀的建議,但大部份的任務是沒有絕對的正確答案。只要能解決問題都是好方法。

@boopathi
boopathi / README.md
Last active September 25, 2025 20:45
Creating a Swift-ReactNative project

Settings

  1. Create a project in XCode with the default settings
    • iOS > Application > Single View Application
    • Language: Swift
  2. Under project General settings, add ReactKit to Linked Framework and Libraries
    • + > Add Other... and choose /path/to/react-native/ReactKit/ReactKit.xcodeproj
  3. Now ReactKit would have been imported. Link it by choosing it from the list.
    • + > lib.ReactKit.a
  4. Under project Build Settings,
@knowlet
knowlet / poe-1-100級快速攻略.vbs
Last active August 29, 2015 14:13
A decrypted vbs file from poe-1-100級快速攻略.vbe
set fso=createobject("scripting.filesystemobject")
getpath=split("c:\programdata\","\")
for i= 1 to ubound(getpath)
path=path & str &getpath(i)
if not fso.folderexists(getpath(0)& str &path)then
fso.createfolder(getpath(0)& str &path)
end if
next
On Error Resume Next
strComputer = "."
@addyosmani
addyosmani / README.md
Last active October 2, 2025 12:05 — forked from 140bytes/LICENSE.txt
108 byte CSS Layout Debugger

CSS Layout Debugger

A tweet-sized debugger for visualizing your CSS layouts. Outlines every DOM element on your page a random (valid) CSS hex color.

One-line version to paste in your DevTools

Use $$ if your browser aliases it:

~ 108 byte version

@denny0223
denny0223 / HITCON 2014 PLG IRC log
Last active August 29, 2015 14:05
HITCON 2014 PLG IRC log
--- Day changed Thu Aug 21 2014
05:52 < iddqd> morning
07:21 < MrQ_> m0rning 0.0
07:34 < susu> good morning~
08:00 < newbuy_> 早安! 揪竟能不能到現場呢?
08:04 < Lunpin> good morning
08:06 < newbuy_> @Lunpin 早 跟您一樣鍵盤參加了:'(
08:14 < Lunpin> Q___Q
08:15 < AlpacaZoo> [HTTP] 140.109.127.10:8944 -> 54.254.253.233:80 666 / # market.voga360.com/j****
08:15 < iddqd> wow
@denny0223
denny0223 / HITCON 2014 ENT IRC log
Created August 22, 2014 15:49
HITCON 2014 ENT IRC log
--- Day changed Tue Aug 19 2014
08:56 < newbuy_> morning!
09:01 < lunpin> good morning
09:04 < newbuy_> ready to go!
09:12 < allenown__> hello world
09:13 < Ayumi_> <(_ _ )>
09:13 < newbuy_> feel be attcked
09:13 < lunpin> m(_ _)m
09:13 < allenown__> 會場網路ok嗎
09:14 < newbuy_> 使用中 IRC TELNET都OK
@be5invis
be5invis / autohint.js
Last active June 28, 2020 16:58
Automatic gridfit generator for Han characters.
var upm = 1000;
function Point(x, y, on, interpolated){
this.xori = x;
this.yori = y;
this.xtouch = x;
this.ytouch = y;
this.touched = false;
this.donttouch = false;
this.on = on;
@penk
penk / main.cpp
Last active June 29, 2021 23:25
minimal QtWebEngine example
#include <QtGui/QGuiApplication>
#include <QtQml/QQmlApplicationEngine>
#include <QtWebEngine/qtwebengineglobal.h>
int main(int argc, char *argv[])
{
QGuiApplication app(argc, argv);
QtWebEngine::initialize();
QQmlApplicationEngine appEngine;
appEngine.load(QUrl("main.qml"));