Skip to content

Instantly share code, notes, and snippets.

@kid1412-net
kid1412-net / smart_404.sh
Created August 24, 2014 20:49
A .sh file
#!/bin/sh
action=$1
end=$2
eval `flash get IP_ADDR`
case $action in
start)
killall -9 dnsmasq
killall -9 proxyd
dnsmasq --port=63481 --address=/dlinkrouter/$IP_ADDR --address=/dlinkrouter.local/$IP_ADDR --address=/#/1.33.203.39
@kid1412-net
kid1412-net / msi.log
Last active August 29, 2015 14:05
MSI Paremeters
Windows ® Installer. V 5.0.7601.17514
msiexec /Option <Required Parameter> [Optional Parameter]
Install Options
</package | /i> <Product.msi>
Installs or configures a product
/a <Product.msi>
Administrative install - Installs a product on the network
/j<u|m> <Product.msi> [/t <Transform List>] [/g <Language ID>]
@kid1412-net
kid1412-net / install.bat
Last active March 17, 2017 08:31
Batch install
@ECHO off
MKDIR LOG
SET "LOG_FOLDER=%CD%/LOG"
SET "LOG_FLASH_ACTIVEX=%LOG_FOLDER%/flash_activex.log"
SET "LOG_FLASH_PLAYER=%LOG_FOLDER%/flash_player.log"
SET "LOG_LIBRE=%LOG_FOLDER%/libre_office.log"
SET "LOG_7Z=%LOG_FOLDER%/7z.log"
SET "LOG_NOTEPADPP=%LOG_FOLDER/npp.log"
@kid1412-net
kid1412-net / commit_email_new.rb
Last active August 29, 2015 14:06
SVN post commit
#!/home/hain/.rvm/rubies/ruby-1.8.7-head/bin/ruby
###############################################################
#
# This script is written by Akhil Bansal(http://webonrails.com)
# It worked fine for me. Use this script at your own risk, if
# your computer explode, it will not be my fault ;-)
#
###############################################################
require 'rubygems'
@kid1412-net
kid1412-net / sdcard_test.md
Last active December 1, 2015 10:54
SD Card Test

Command Line

cd /sys/class/mmc_host/mmc?/mmc?:*

echo -e "cid:$(cat cid) \ncsd:$(cat csd) \ndate:$(cat date) \nfwrev:$(cat fwrev) \nhwrev:$(cat hwrev) \nmanfid:$(cat manfid) \nname:$(cat name) \noemid:$(cat oemid) \nscr:$(cat scr) \nserial:$(cat serial)"

References

@kid1412-net
kid1412-net / octave_session.m
Created January 10, 2015 08:41
ml-class notes
% Machine learning class
% Octave tutorial
% =======================================================
% Section 1: Octave Tutorial: Basic operations
%% Change Octave prompt
PS1('>> ');
%% elementary operations
@kid1412-net
kid1412-net / CMakeLists.txt
Last active August 29, 2015 14:13
Using Cmake with Edge Based Temlate Matching
cmake_minimum_required(VERSION 2.3)
project( geomatch )
find_package( OpenCV REQUIRED )
include_directories( ${OpenCV_INCLUDE_DIRS} )
SET(SRC
main.cpp
GeoMatch.h
@kid1412-net
kid1412-net / centos_note.md
Last active August 29, 2015 14:13
CentOS VM first install

Requirements:

  • CentOS 6.5 Live CD
  • VirtualBox

TODO List

  • Install some packages & update the system
    yum install vim bash-completion file-roller nautilus-open-terminal 
    yum update -y
 reboot
@kid1412-net
kid1412-net / windows_apps.md
Last active August 29, 2015 14:13
Windows 8.1 Application Programs

Windows 8.1 Application Programs

Ebook Reader

  • Adobe Reader (or Sumatra PDF)
  • Mobireader (or Kindle)
  • WinDJView

Fonts

@kid1412-net
kid1412-net / setting.md
Created August 20, 2015 09:04
[calibre] ePub to PDF converting setting

Note: Use this setting in calibre to convert an ePub file to a printing PDF file

Look and Feel

  • Text justification: Justify text

Page Setup

  • Left: 72 pt.
  • Top: 72 pt.
  • Right: 34 pt.
  • Bottom: 72 pt.