Skip to content

Instantly share code, notes, and snippets.

View imZack's full-sized avatar
🤠
Make bugs

YuLun Shih imZack

🤠
Make bugs
  • Moxa
  • Taipei, Taiwan
View GitHub Profile
USE [AdventureWorks2012]
GO
:setvar checkpoint_files_location "h:\Databases\DATA\"
/*************************** Add MEMORY_OPTIMIZED_DATA filegroup to enable in-memory OLTP **********************************/
IF NOT EXISTS (SELECT * FROM sys.data_spaces WHERE type='FX')
ALTER DATABASE CURRENT ADD FILEGROUP [AdventureWorks2012_mod] CONTAINS MEMORY_OPTIMIZED_DATA
GO
@imZack
imZack / zsh.md
Created December 16, 2013 05:47 — forked from tsabat/zsh.md

OS X Screencast to animated GIF

This gist shows how to create a GIF screencast using only free OS X tools: QuickTime, ffmpeg, and gifsicle.

Screencapture GIF

Instructions

To capture the video (filesize: 19MB), using the free "QuickTime Player" application:

/*
* draw a multiline string rotated in a canvas
*
* @param ctx (M) context of the canvas
* @param text (M) string may contain \n
* @param posX (M) horizontal start position
* @param posY (M) vertical start position
* @param textColor color
* @param rotation in degrees (by 360)
* @param font must be installed on client use websafe
@imZack
imZack / .tmux.conf
Last active October 11, 2019 23:05 — forked from josephj/.tmux.conf
# General configuration.
# $ tmux show-options -g
set -g base-index 1
set -g display-time 5000
set -g repeat-time 1000
set -g status-keys vi
set -g status-bg black
set -g status-fg white
set -g status-justify left
set -g status-interval 1
@imZack
imZack / fb_spam.html
Created May 23, 2013 07:31
又是一個惡意 FB 網站

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<title>Shocking Video</title>
<link rel="stylesheet" href="http://2.7.be.static.xlhost.com/style3.css" type="text/css" />
@imZack
imZack / gist:5604734
Created May 18, 2013 15:05
常用表情符號
(  ̄ c ̄)y▂ξ
 ∧_∧  あっ!
(´・ω・)
O┬O )   
◎┴し'-◎ ≡
( ′-`)y-~
~ˋ( ̄▽ ̄#)ˊ~
@imZack
imZack / AnonTAIWAN.html
Created May 12, 2013 17:01
紀錄一下,插旗的一刻 (純備份)
<!DOCTYPE html>
<html lang="en">
<head>
<title>Anonymous #opphilippines #AnonTAIWAN #InHackWeTrust</title>
<style type="text/css">
@import url(http://fonts.googleapis.com/css?family=Anonymous+Pro:700);
body{background: black; text-align: center; color: white;font-family: 'Anonymous Pro', sans-serif;}
p{font-family: 'Anonymous Pro', sans-serif;font-size: 120%;}
<?php
function encodeURI($url) {
// http://php.net/manual/en/function.rawurlencode.php
// https://developer.mozilla.org/en/JavaScript/Reference/Global_Objects/encodeURI
$unescaped = array(
'%2D'=>'-','%5F'=>'_','%2E'=>'.','%21'=>'!', '%7E'=>'~',
'%2A'=>'*', '%27'=>"'", '%28'=>'(', '%29'=>')'
);
$reserved = array(
'%3B'=>';','%2C'=>',','%2F'=>'/','%3F'=>'?','%3A'=>':',
@imZack
imZack / gist:5554337
Created May 10, 2013 13:19
鄉民 DDoS 工具 介面漂亮版
<!doctype html>
<html lang="en">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8" />
<title>鍵盤開戰 復刻 PTTATK</title>
<link href="https://netdna.bootstrapcdn.com/twitter-bootstrap/2.3.1/css/bootstrap-combined.min.css" rel="stylesheet">
</head>
<body>