Skip to content

Instantly share code, notes, and snippets.

@fuacici
fuacici / win7-bootable-usb-on-osx.md
Created January 24, 2018 23:21
Create a Bootable Win7 USB Stick on OSX

Create a Bootable Win7 USB Stick on OSX

Prerequesites:

  • 4GB+ USB Stick
  • Windows 7 ISO from Microsoft downloaded to your OSX-Machine

Preparing the drive

  1. Open Disk utility
  2. Find the drive, format it with the following options:
  • Choose Master Boot Record (MBR)
@fuacici
fuacici / .gitlab-ci.yml
Created July 18, 2017 02:36
.gitlab-ci.yml & Shell scripts for auto merge request
stages:
- load_branches
- master_merge
variables:
create_merge:
stage: master_merge
only:
- master
@fuacici
fuacici / apache.git.con
Created February 18, 2014 02:34
deny apache to serve .git directory
# do not allow .git version control files to be issued
<Directorymatch "^/.*/\.git+/">
Order deny,allow
Deny from all
</Directorymatch>
<Files ~ "^\.git">
Order allow,deny
Deny from all
</Files>
@fuacici
fuacici / entitlements
Created December 28, 2013 06:01
entitlements for app manager privileges
<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE plist PUBLIC "-//Apple//DTD PLIST 1.0//EN" "http://www.apple.com/DTDs/PropertyList-1.0.dtd">
<plist version="1.0">
<dict>
<key>com.apple.private.mobileinstall.allowedSPI</key>
<array>
<string>Install</string>
<string>Browse</string>
<string>Uninstall</string>
<string>Archive</string>
@fuacici
fuacici / cidya_deb.sh
Created December 28, 2013 05:49
The shell is to build & upload iOS deb package automaticly.Once used for update my own cydia source.
#!/usr/bin/bash
log=$(git log -1 --pretty=format:"%s")
cur=$(pwd)
target=ios_app_target
workpath=theworkdir
debdes=deb_path
if [ -e "$workpath/$target.app" ]; then
cp -rf $workpath/$target.app $debdes/Package/Applications/$target.app
else
echo "$workpath/$target.app" does not exist!
@fuacici
fuacici / blog.css
Last active December 31, 2015 11:59
css for markdown , get from sublime text
/*------------------------------------------------------------------------------
Pre/Code Styles
------------------------------------------------------------------------------*/
body h1 tt,body h1 code,body h2 tt,body h2 code,body h3 tt,body h3 code,body h4 tt,body h4 code,body h5 tt,body h5 code,body h6 tt,body h6 code{
font-size:inherit
}
body h1{
@fuacici
fuacici / regexs
Created December 12, 2013 15:38
regular expression , by Joost, didn't test well
// mobile number,like: (+86)13812003192 8613812003192 (+001)13812003192
(\(?\+?[0-9]{1,3}\)?)?(1[0-9]{10})$
//simple url regex, just for fun
https?://([\w]+\.)+[\w\-]+(/[\w\-\./?%&=]*)?
@fuacici
fuacici / uiwebview_text-decoration.css
Created December 5, 2013 08:23
iOS UIWebView 会自动检测页面中的链接,为之添加下划线,并标为蓝色,可以通过CSS 进行修改.
a {
text-decoration: none;
}
@fuacici
fuacici / codecss.css
Last active December 30, 2015 05:29
Quote source code in blogs with Blogger, just link the following css, and use <pre><code>..</code></pre> to quote. Source: highlightjs.org
@charset "UTF-8";.container{width:980px;margin-left:auto;margin-right:auto;-moz-box-sizing:border-box;box-sizing:border-box}.container:before,.container:after{content:" ";display:table}.container:after{clear:both}.wider .container{width:960px}#site-container>.container:first-child{margin-top:20px}.column-main,.column-sec{float:left}.column-main+.column-sec,.column-sec+.column-main{margin-left:20px}.column-main{width:740px}.column-sec{width:220px}.columns:before,.columns:after{content:" ";display:table}.columns:after{clear:both}.columns.typical .main{float:left;width:620px}.columns.typical .sidebar{float:right;width:330px}.columns.typical.compact-sidebar .main{width:650px}.columns.typical.compact-sidebar .sidebar{width:230px}.columns.dashcols .main{float:left;width:620px}.columns.dashcols .sidebar{float:right;width:337px}.columns.equacols .column{width:470px;float:left}.columns.equacols .secondary{float:right}.columns.equacols.bordered{border-top:1px solid #ddd;border-bottom:1px solid #ddd;background:url("/ima
@fuacici
fuacici / gitignore for Android
Created November 18, 2013 09:24
Android project git .ignore file.
# built application files
*.apk
*.ap_
# files for the dex VM
*.dex
# Java class files
*.class