Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Sign in / Register
Toggle navigation
O
oh-my-fish
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Locked Files
Issues
0
Issues
0
List
Boards
Labels
Service Desk
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Security & Compliance
Security & Compliance
Dependency List
License Compliance
Packages
Packages
List
Container Registry
Analytics
Analytics
CI / CD
Code Review
Insights
Issues
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
nanahira
oh-my-fish
Commits
db0eda65
Commit
db0eda65
authored
May 21, 2013
by
Francis Lavoie
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
replaced 4 spaces tabs for 2 spaces tab
parent
02a8a664
Changes
4
Hide whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
22 additions
and
23 deletions
+22
-23
plugins/python/pybeautifyjson.fish
plugins/python/pybeautifyjson.fish
+2
-3
plugins/python/pyclean.fish
plugins/python/pyclean.fish
+7
-7
plugins/python/pyhttp.fish
plugins/python/pyhttp.fish
+6
-6
plugins/python/pysmtp.fish
plugins/python/pysmtp.fish
+7
-7
No files found.
plugins/python/pybeautifyjson.fish
View file @
db0eda65
# beautify json string
# use : pybeautifyjson '{"foo": "lorem", "bar": "ipsum"}'
function pybeautifyjson
echo $argv | python -mjson.tool
end
echo $argv | python -mjson.tool
end
\ No newline at end of file
plugins/python/pyclean.fish
View file @
db0eda65
# clean current directory recursively from any .pyc and .pyo files
function pyclean
if test -n $argv
set path2CLEAN $argv
else
set path2CLEAN .
end
if test -n $argv
set path2CLEAN $argv
else
set path2CLEAN .
end
find $path2CLEAN -name "*.pyc" -delete -o -name "*.pyo" -delete
end
\ No newline at end of file
find $path2CLEAN -name "*.pyc" -delete -o -name "*.pyo" -delete
end
\ No newline at end of file
plugins/python/pyhttp.fish
View file @
db0eda65
# start in-place a simple http server, take a optional parameter for the port number
function pyhttp
if test -n "$argv"
set HTTPPORT $argv
else
set HTTPPORT 1025
end
python -m SimpleHTTPServer $HTTPPORT;
if test -n "$argv"
set HTTPPORT $argv
else
set HTTPPORT 1025
end
python -m SimpleHTTPServer $HTTPPORT;
end
plugins/python/pysmtp.fish
View file @
db0eda65
# start smtp debugging server, can pass an option port parameter. Default to 1025
function pysmtp
if test -n "$argv"
set SMTPPORT $argv
else
set SMTPPORT 1025
end
echo "smtp server started on port" $SMTPPORT;
python -m smtpd -n -c DebuggingServer localhost:$SMTPPORT;
if test -n "$argv"
set SMTPPORT $argv
else
set SMTPPORT 1025
end
echo "smtp server started on port" $SMTPPORT;
python -m smtpd -n -c DebuggingServer localhost:$SMTPPORT;
end
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment