-
Notifications
You must be signed in to change notification settings - Fork 2
/
Copy pathns-cli.conf
213 lines (199 loc) · 10.6 KB
/
ns-cli.conf
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
#
# ns-cli.conf -- configuration file for ns-cli.
#
# What am I talking about? See <http://www.lafferty.ca/software/>.
#
# How do I use this? See the README in the ns-cli package.
# Regex to match allowed addresses -- leave blank to allow access
# from anywhere
$allowed = '';
# define your fave URLs here.
#
# Format:
#
# key => {URL => 'http://foo.com/search.cgi?term=%%QUERY%%',
# DESC => 'Search foo.com'}
#
# (The query "key word1 word2" will redirect the user to
# <http://foo.com/search.cgi?term=word1+word2>, and the 'help me'
# query will show "key Search foo.com".)
#
# key => {SYNONYM => 'otherkey'}
#
# (Entering "key" will do the same thing as entering "otherkey",
# which must be defined as well. Synonyms cannot point to other
# synonyms.)
%search = (
# If the first word doesn't match any command, we do this. This lets
# you type "cold beans" instead of "find cold beans", for instance.
default => {SYNONYM => 'google'},
# Google
google => {URL => 'http://www.google.com/search?query=%%QUERY%%',
DESC => 'Search the web with Google'},
find => {SYNONYM => 'google'},
lucky => {SYNONYM => 'go'},
go => {URL => 'http://www.google.com/search?btnI=I%27m+Feeling+Lucky&query=%%QUERY%%',
DESC => 'Go to first result of Google search ("I feel lucky")'},
googleimg => {URL => 'http://images.google.com/images?q=%%QUERY%%',
DESC => 'Search the web for images with Google'},
img => {SYNONYM => 'googleimg'},
usenet => {URL => 'http://groups.google.com/groups?num=100&q=QUERY',
DESC => 'Search Usenet with Google'},
googlemaps => {URL => 'http://maps.google.com/?q=%%QUERY%%',
DESC => 'Search with Google Maps'},
map => {SYNONYM => 'googlemaps'},
# Dictionaries, thesauruses
oed => {URL => 'http://dictionary.oed.com/cgi/findword?query_type=word&find=find&queryword=%%QUERY%%',
DESC => 'Look up word in online Oxford English Dictionary'},
mw => {URL => 'http://www.merriam-webster.com/dictionary/%%QUERY%%',
DESC => 'Look up word in Merriam-Webster Collegiate Dictionary'},
thesaurus => {URL => 'http://thesaurus.reference.com/browse/%%QUERY%%',
DESC => "Look up word in Roget's New Thesaurus"},
thes => {SYNONYM => 'thesaurus'},
foldoc => {URL => 'http://wombat.doc.ic.ac.uk/foldoc/foldoc.cgi?query=%%QUERY%%',
DESC => "Look up word in the Free On-line Dictionary of Computing"},
dictionary => {URL => 'http://dictionary.reference.com/browse/%%QUERY%%',
DESC => "Look up word in Random House Dictionary"},
dict => {SYNONYM => 'dictionary'},
# Software repositories, etc
cpan => {URL => 'http://search.cpan.org/search?mode=module&query=%%QUERY%%',
DESC => 'Search for Perl module on CPAN'},
rpm => {URL => 'http://www.rpmfind.net/linux/rpm2html/search.php?query=%%QUERY%%',
DESC => 'Search for RPMs on rpmfind.net'},
rpmfind => {SYNONYM => 'rpm'},
fm => {URL => 'http://freshmeat.net/search/?section=projects&q=%%QUERY%%',
DESC => 'Search for project on Freshmeat'},
fmp => {URL => 'http://freshmeat.net/projects/%%QUERY%%/',
DESC => 'Go to Freshmeat project by name'},
sf => {URL => 'http://sourceforge.net/projects/%%QUERY%%/',
DESC => 'Go to SourceForge project by name'},
phpman => {URL => 'http://www.php.net/%%QUERY%%',
DESC => 'Search PHP manual'},
rfc => {URL => 'http://www.faqs.org/rfcs/rfc%%QUERY%%.html',
DESC => 'Bring up hypertext RFC by number'},
bug => {URL => 'http://your-bugzilla-url/show_bug.cgi?id=%%QUERY%%',
DESC => 'Customize this to bring up Bugzilla bugs by number'},
rt => {URL => 'http://your-rt-url/Ticket/Display.html?id=%%QUERY%%',
DESC => 'Customize this to bring up RT tickets by number'},
linuxt => {URL => 'http://linuxtoday.com/search.php3?query=%%QUERY%%',
DESC => 'Search LinuxToday'},
# Communities
livej => {URL => 'http://www.livejournal.com/~%%QUERY%%/',
DESC => 'Go to LiveJournal for indicated user'},
lj => {SYNONYM => 'livej'},
liveji => {URL => 'http://www.livejournal.com/userinfo.bml?user=%%QUERY%%',
DESC => 'Go to LiveJournal userinfo page for user'},
lji => {SYNONYM => 'liveji'},
ljint => {URL => 'http://www.livejournal.com/interests.bml?int=%%QUERY%%',
DESC => 'See results for LiveJournal interest'},
advo => {URL => 'http://www.advogato.org/person/%%QUERY%%/',
DESC => 'Go to Advogato page for indicated user'},
# Other stuff
validate => {URL => 'http://validator.w3.org/check?uri=%%QUERY%%',
DESC => 'Validate HTML at indicated URL'},
bobby => {URL => 'http://bobby.cast.org/bobby?URL=%%QUERY%%&output=Submit',
DESC => 'Test HTML at indicated URL for accessibility'},
ebay => {URL => 'http://search.ebay.com/search/search.dll?MfcISAPICommand=GetResult&ht=1&SortProperty=MetaEndSort&query=%%QUERY%%',
DESC => 'Search eBay'},
ebayn => {URL => 'http://cgi.ebay.com/ws/eBayISAPI.dll?ViewItem&item=%%QUERY%%',
DESC => 'Go to eBay auction by number'},
quote => {URL => 'http://finance.yahoo.com/q?s=%%QUERY%%&d=c',
DESC => 'Stock quote and chart from Yahoo Finance'},
stock => {SYNONYM => 'quote'},
symbol => {URL => 'http://finance.yahoo.com/l?m=US&s=%%QUERY%%',
DESC => 'Look up a stock symbol'},
shorten => {URL => 'http://makeashorterlink.com/index.php?url=%%QUERY%%',
DESC => 'Create makeashorterlink.com link to URL'},
olga => {URL => 'http://rhythm.harmony-central.com/olga-query.php?key=%%QUERY%%&Search=Song/',
DESC => 'Search On-line Guitar Archive for tablature'},
imdb => {URL => 'http://www.imdb.com/find?s=all&q=%%QUERY%%',
DESC => 'Search Internet Movie Database'},
bashorg => {URL => 'http://www.bash.org/?%%QUERY%%',
DESC => 'Search bash.org (IRC Quotes)'},
bash => {SYNONYM => 'bashorg'},
jerkcity => {URL => 'http://www.jerkcity.com/search/index.cgi?q=%%QUERY%%',
DESC => 'Search Jerkcity strips'},
jerk => {SYNONYM => 'jerkcity'},
pennyarcade => {URL => 'http://penny-arcade.com/archive/results/search&keywords=%%QUERY%%',
DESC => 'Search Penny Arcade strips'},
pa => {SYNONYM => 'pennyarcade'},
urbandict => {URL => 'http://www.urbandictionary.com/define.php?term=%%QUERY%%',
DESC => 'Search for word/phrase in Urban Dictionary'},
ud => {SYNONYM => 'urbandict'},
urban => {SYNONYM => 'urbandict'},
udict => {SYNONYM => 'urbandict'},
wikipedia => {URL => 'http://en.wikipedia.org/w/wiki.phtml?search=%%QUERY%%&go=GO',
DESC => 'Go to word/phrase in Wikipedia'},
wiki => {SYNONYM => 'wikipedia'},
w => {SYNONYM => 'wikipedia'},
everything2 => {URL => 'http://everything2.com/index.pl?node=%%QUERY%%',
DESC => 'Go to word/phrase in Everything2'},
e2 => {SYNONYM => 'everything2'},
amg_artist => { URL => 'http://www.allmusic.com/cg/amg.dll?p=amg&opt1=1&sql=%%QUERY%%',
DESC => 'Search All Music Guide by Artist'},
amg_album => { URL => 'http://www.allmusic.com/cg/amg.dll?p=amg&opt1=2&sql=%%QUERY%%',
DESC => 'Search All Music Guide by Album'},
amg_song => { URL => 'http://www.allmusic.com/cg/amg.dll?p=amg&opt1=3&sql=%%QUERY%%',
DESC => 'Search All Music Guide by Song'},
amg => {SYNONYM => 'amg_artist'},
acronym_exact => { URL => 'http://www.acronymfinder.com/af-query.asp?p=dict&String=exact&Acronym=%%QUERY%%',
DESC => 'Search Acronym Finder (exact)'},
acronym => {SYNONYM => 'acronym_exact'},
answers => { URL => 'http://www.answers.com/%%QUERY%%',
DESC => 'Search Answers.com',
},
answer => {SYNONYM => 'answers'},
ans => {SYNONYM => 'answers'},
snopes => { URL => 'http://search.atomz.com/search/?sp-q=%%QUERY%%&sp-a=00062d45-sp00000000&sp-advanced=1&sp-p=all&sp-w-control=1&sp-w=alike&sp-date-range=-1&sp-x=any&sp-c=100&sp-m=1&sp-s=0',
DESC => 'Search Snopes Urban Legends Reference Pages',
},
toothpastefordinner => { URL => 'http://www.toothpastefordinner.com/search.php?search=%%QUERY%%',
DESC => 'Search toothpaste for dinner strips',
},
toothpaste => {SYNONYM => 'toothpastefordinner'},
yahooweather => { URL => 'http://weather.yahoo.com/search/weather2?p=%%QUERY%%',
DESC => 'Get weather information from Yahoo!',
},
'4cast' => { URL => 'http://4ca.st/?getlocation=%%QUERY%%',
DESC => 'Get weather information from 4cast',
},
weather => {SYNONYM => '4cast'},
etymology => { URL => 'http://www.etymonline.com/index.php?search=%%QUERY%%',
DESC => 'Search online etymology dictionary',
},
etym => { SYNONYM => 'etymology' },
powerset => { URL => 'http://www.powerset.com/explore/pset?q=%%QUERY%%',
DESC => 'Search Powerset',
},
pset => { SYNONYM => 'powerset' },
phonespell => { URL => 'http://www.phonespell.org/combo.cgi?n=%%QUERY%%',
DESC => 'What does your phone number spell?',
},
phone => { SYNONYM => 'phonespell' },
gamefaq => { URL => 'http://www.gamefaqs.com/search/index.html?game=%%QUERY%%&platform=0&s=s',
DESC => 'GameFAQs search',
},
gf => { SYNONYM => 'gamefaq' },
termly => { URL => 'http://term.ly/%%QUERY%%',
DESC => 'Search term.ly',
},
term => { SYNONYM => 'termly' },
scrabblecheck => { URL => 'http://scrabbletools.appspot.com/search?word=%%QUERY%%',
DESC => 'Check validity of Scrabble word',
},
scrabble => { SYNONYM => 'scrabblecheck' },
emusicall => { URL => 'http://www.emusic.com/listen/#/search.html?mode=x&QT=%%QUERY%%&=:',
DESC => 'Check emusic.com (all)',
},
emusic => { SYNONYM => 'emusicall' },
tvtropes => { URL => 'http://www.google.com/search?query=site:tvtropes.org%20%%QUERY%%',
DESC => 'Search TV Tropes' },
trope => { SYNONYM => 'tvtropes' },
baby => {URL => 'http://images.google.com/images?q=baby%20%%QUERY%%',
DESC => 'Search the web for baby [something] images with Google'},
boardgamegeek => {URL => 'http://boardgamegeek.com/geeksearch.php?action=search&objecttype=boardgame&q=%20%%QUERY%%',
DESC => 'Search BoardGameGeek for this game'},
bgg => { SYNONYM => 'boardgamegeek' },
);
# Leave this here!
1;