create different ssh key according the article Mac Set-Up Git
$ ssh-keygen -t rsa -C "your_email@youremail.com"
| <?xml version="1.0" encoding="UTF-8"?> | |
| <opml version="1.0"> | |
| <head> | |
| <title>Graphics, Games, Programming, and Physics Blogs</title> | |
| </head> | |
| <body> | |
| <outline text="Tech News" title="Tech News"> | |
| <outline type="rss" text="Ars Technica" title="Ars Technica" xmlUrl="http://feeds.arstechnica.com/arstechnica/index/" htmlUrl="https://arstechnica.com"/> | |
| <outline type="rss" text="Polygon - Full" title="Polygon - Full" xmlUrl="http://www.polygon.com/rss/index.xml" htmlUrl="https://www.polygon.com/"/> | |
| <outline type="rss" text="Road to VR" title="Road to VR" xmlUrl="http://www.roadtovr.com/feed" htmlUrl="https://www.roadtovr.com"/> |
| > git submodule deinit <path_to_submodule> | |
| > git rm <path_to_submodule> | |
| > git commit-m "Removed submodule " | |
| > rm -rf .git/modules/<path_to_submodule> |
create different ssh key according the article Mac Set-Up Git
$ ssh-keygen -t rsa -C "your_email@youremail.com"
| #!/bin/sh | |
| # | |
| # This is a simple alternative to /usr/bin/lsb_release which | |
| # doesn't require python. | |
| # | |
| # If /etc/os-release exists then we use that to output data | |
| # in a compatible format to the original lsb_release utility. | |
| # | |
| # I consider this script trivial enough to be in the public-domain, | |
| # but any patches or suggestsions will be welcome. |
| """Demonstration of server-sent events with Tornado. To see the | |
| stream, you can either point your browser to ``http://localhost:8080`` | |
| or use ``curl`` like so:: | |
| $ curl http://localhost:8080/events | |
| """ | |
| import signal | |
| from tornado import web, gen |
Wensheng Wang, 10/1/11
Source: http://blog.wensheng.org/2011/10/performance-of-flask-tornado-gevent-and.html
When choosing a web framework, I pretty much have eyes set on Tornado. But I heard good things about Flask and Gevent. So I tested the performance of each and combinations of the three. I chose something just a little more advanced than a "Hello World" program to write - one that use templates. Here are the codes:
Search for a string within files in the current directory
grep -wrin "search for this text" .Find subdirectories matching a pattern
find /your/directory -name "pattern*"Description of nodes, cores and memory
sinfo -o "%n,%N,%o,%X,%Y,%Z,%c,%m"
sinfo -o "%10n %10N %10o %10X %10Y %10Z %10c %10m %25f %10G"Exclude a specific node
ssh -N -R 2210:localhost:22 username@host.comThis command can be interpreted as, create a tunnel between the remote host's port 2210 and localhost:22, where the remote host is host.com.
-R implies that the tunnel will be used from the remote side - i.e. host.com.
This command will initiate an ssh connection with reverse port forwarding option
| import asyncio | |
| async def trigger(delay): | |
| while True: | |
| print("Triggered telemetry generation") | |
| await asyncio.sleep(delay) | |
| async def main(delay, duration): | |
| task = asyncio.create_task(trigger(delay)) | |
| loop = asyncio.get_event_loop() | |
| loop.call_later(duration, task.cancel) | |
| try: |