http://aperiodic.net/screen/quick_reference
How to Navigate, copy & paste content?
within screen sessions: Cntl a + [ : To start navigation using up/down arrow Press Space bar: To select content starting position
http://aperiodic.net/screen/quick_reference
How to Navigate, copy & paste content?
within screen sessions: Cntl a + [ : To start navigation using up/down arrow Press Space bar: To select content starting position
# make sure to replace `<hash>` with your gist's hash
git clone https://gist.github.com/<hash>.git # with https
git clone [email protected]:<hash>.git # or with ssh
In this article, I will share some of my experience on installing NVIDIA driver and CUDA on Linux OS. Here I mainly use Ubuntu as example. Comments for CentOS/Fedora are also provided as much as I can.
curl
to get the JSON response for the latest releasegrep
to find the line containing file URLcut
and tr
to extract the URLwget
to download itcurl -s https://api.github.com/repos/jgm/pandoc/releases/latest \
| grep "browser_download_url.*deb" \
| cut -d : -f 2,3 \
| tr -d \" \
#! python3.4 | |
from setuptools import setup | |
import os | |
import py2exe | |
import matplotlib | |
includes = ["sip", | |
"PyQt5", | |
"PyQt5.QtCore", | |
"PyQt5.QtGui", |
Snippets, tips and tricks in no particular order. FOR ADVANCED USERS ONLY. Some of these one liners may be dangerous since they might delete files in loops. Please pay attention and make backups. :-)
Extract the 10th column while skipping the first line:
awk -F ' ' 'NR!=1{print $10}' filename.txt
<VirtualHost *> | |
ServerName example.com | |
WSGIDaemonProcess www user=max group=max threads=5 | |
WSGIScriptAlias / /home/max/Projekte/flask-upload/flask-upload.wsgi | |
<Directory /home/max/Projekte/flask-upload> | |
WSGIProcessGroup www | |
WSGIApplicationGroup %{GLOBAL} | |
Order deny,allow |
set palette defined (0 0.0 0.0 0.5, \ | |
1 0.0 0.0 1.0, \ | |
2 0.0 0.5 1.0, \ | |
3 0.0 1.0 1.0, \ | |
4 0.5 1.0 0.5, \ | |
5 1.0 1.0 0.0, \ | |
6 1.0 0.5 0.0, \ | |
7 1.0 0.0 0.0, \ | |
8 0.5 0.0 0.0 ) |
#!/bin/bash | |
# | |
# Converts LDIF data to CSV. | |
# Doesn't handle comments very well. Use -LLL with ldapsearch to remove them. | |
# | |
# 2010-03-07 | |
# [email protected] | |
# | |
# Show usage if we don't have the right params |