Skip to content

Instantly share code, notes, and snippets.

View perXautomatik's full-sized avatar

perXautomatik

View GitHub Profile
@sirlancelot
sirlancelot / PinDistrictApps.cmd
Created April 16, 2010 20:17
Windows 7 script to pin items to the taskbar. Can be placed in the default user's startup folder. Self-terminating.
@echo off
cscript PinItem.vbs /taskbar /item:"%ProgramData%\Microsoft\Windows\Start Menu\Programs\Mozilla Firefox\Mozilla Firefox.lnk"
cscript PinItem.vbs /taskbar /item:"%ProgramData%\Microsoft\Windows\Start Menu\Programs\Microsoft Office\Microsoft Office Word 2007.lnk"
cscript PinItem.vbs /taskbar /item:"%ProgramData%\Microsoft\Windows\Start Menu\Programs\Microsoft Office\Microsoft Office Excel 2007.lnk"
cscript PinItem.vbs /taskbar /item:"%ProgramData%\Microsoft\Windows\Start Menu\Programs\Microsoft Office\Microsoft Office PowerPoint 2007.lnk"
rem --------------------------------------------------------
rem Echofon for Firefox の sqlite をお掃除するバッチ
rem --------------------------------------------------------
@echo off
echo *** 実行するよー
pause
setlocal
i
me
my
myself
we
our
ours
ourselves
you
your
@roder
roder / xmlsqlite.py
Created December 16, 2010 04:49
Convert XML files into SQLite
#!/usr/bin/env python
from optparse import OptionParser
from xml.dom.minidom import parse
import os
import sqlite3
datatypeMap = {
'integer': 'INT',
'datetime': 'DATETIME',
@c00kiemon5ter
c00kiemon5ter / post-commit
Created June 1, 2011 16:17
a hook to deploy static generated sites
#!/usr/bin/env bash
# executables prefix
_prefix="/usr/bin"
# git executable
_git="$_prefix/git"
# site generation executable
_generate="$_prefix/jekyll"
# options for the generator
@jstangroome
jstangroome / PSISEAliasExpansion.ps1
Created September 8, 2011 01:14
Add Ctrl+Shift+E shortcut to expand aliased commands and parameter names in the selected text in the PowerShell ISE to their full form.
# Just dot-source this in your profile script.
function Expand-Alias {
[CmdletBinding()]
param (
[Parameter(Mandatory=$true)]
[string]
$Code
)
@frogonwheels
frogonwheels / WordCompare.vbs
Created September 30, 2011 01:10
Compare word documents
' Created by: Michael Geddes
' Access to CLI Arguments
Set args = WScript.Arguments
if args.count = 0 then
ShowHelp
WScript.Quit 1
end if
@4rc0s
4rc0s / SimpleKeyboardHistory.ahk
Created November 7, 2011 16:37
AutoHotKey clipboard history script that is easily navigated and relatively short
; Retrieves saved clipboard information since when this script last ran
Loop C:\tmp\clipvar*.txt
{
clipindex += 1
FileRead clipvar%A_Index%, %A_LoopFileFullPath%
FileDelete %A_LoopFileFullPath%
}
maxindex := clipindex
OnExit ExitSub
@tkarpinski
tkarpinski / EnableLinkedConnections.reg
Created January 5, 2012 16:47
A reg file to EnableLinkedConnections (Network Drives over UAC) http://support.microsoft.com/kb/937624
Windows Registry Editor Version 5.00
[HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows\CurrentVersion\Policies\System]
"EnableLinkedConnections"=dword:00000001
@adhipg
adhipg / countries.sql
Created January 12, 2012 11:41
Sql dump of all the Countries, Country Codes, Phone codes.
CREATE TABLE IF NOT EXISTS `country` (
`id` int(11) NOT NULL AUTO_INCREMENT,
`iso` char(2) NOT NULL,
`name` varchar(80) NOT NULL,
`nicename` varchar(80) NOT NULL,
`iso3` char(3) DEFAULT NULL,
`numcode` smallint(6) DEFAULT NULL,
`phonecode` int(5) NOT NULL,
PRIMARY KEY (`id`)
) ENGINE=MyISAM DEFAULT CHARSET=latin1;