in ~/.bash_profile
:
alias npp='~/npp'
in ~/npp
:
#!/bin/sh
exec d:/utils/Notepad++/notepad++.exe "$@" &
@echo off | |
@copy /Y wpxref.cfg phpxref.cfg | |
@phpxref.exe |
<NotepadPlus> | |
<UserLang name="Markdown" ext="mkdn mkd md" udlVersion="2.0"> | |
<Settings> | |
<Global caseIgnored="yes" allowFoldOfComments="no" forceLineCommentsAtBOL="no" foldCompact="no" /> | |
<Prefix Keywords1="no" Keywords2="no" Keywords3="no" Keywords4="no" Keywords5="no" Keywords6="no" Keywords7="no" Keywords8="no" /> | |
</Settings> | |
<KeywordLists> | |
<Keywords name="Comments" id="0">00# 00## 00### 00#### 00##### 01 02 03<!-- 04--></Keywords> | |
<Keywords name="Numbers, additional" id="1"></Keywords> | |
<Keywords name="Numbers, prefixes" id="2"></Keywords> |
#!/bin/sh | |
usage() { | |
echo "usage: this that <param>" | |
} | |
if [ $# -ne 1 ]; then | |
usage | |
exit 1 | |
fi |
/****************************** Module Header ******************************\ | |
* Module Name: kbd.h | |
* | |
* Copyright (c) Microsoft Corporation. All rights reserved. | |
* | |
* Keyboard table values that form the basis for languages and keyboard types. | |
* The basis is US, kbd type 4 - all others are a variation on this. | |
* This file is included by all kbd**.h files. | |
* | |
* History: |
"\e[A": history-search-backward | |
"\e[B": history-search-forward | |
set show-all-if-ambiguous on | |
set completion-ignore-case on |
in ~/.bash_profile
:
alias npp='~/npp'
in ~/npp
:
#!/bin/sh
exec d:/utils/Notepad++/notepad++.exe "$@" &
MAILTO="" | |
# .---------------- minute (0 - 59) | |
# | .------------- hour (0 - 23) | |
# | | .---------- day of month (1 - 31) | |
# | | | .------- month (1 - 12) OR jan,feb,mar,apr ... | |
# | | | | .---- day of week (0 - 6) (Sunday=0 or 7) OR sun,mon,tue,wed,thu,fri,sat | |
# | | | | | | |
# * * * * * command to be executed | |
# * * * * * command --arg1 --arg2 file1 file2 2>&1 |
Download http://pear.phpunit.de/get/phpunit.phar
Edit ~/.bash_profile:
alias php="d:/online/xampp/php/php.exe"
alias phpunit="php d:/online/xampp/php/phpunit.phar"
In any directory: phpunit test.php
#!/bin/bash | |
json=`curl -s -X GET https://api.github.com/repos/YOURLS/YOURLS/tags` | |
prop='name' | |
temp=`echo $json | sed 's/\\\\\//\//g' | sed 's/[{}]//g' | awk -v k="text" '{n=split($0,a,","); for (i=1; i<=n; i++) print a[i]}' | sed 's/\"\:\"/\|/g' | sed 's/[\,]/ /g' | sed 's/\"//g' | grep -w $prop` | |
echo $temp | cut -d\ -f3 |