- Smarter completion. A few examples:
- context sensitive -- if you have file "name1" and directory "name2", "cd nam<TAB>" completes to "name2/"
- "tar xf <TAB>" completes to tarballs only. "unrar x <TAB>" completes to RARs only. etc.
- rsync / scp completion: "rsync host:anything/<TAB>" shows you files on host under anything/
- also works with rsync:// URLs
- SSH host completion from ~/.ssh/config & ~/.ssh/known_hosts
- lots of other smart completions: Rake tasks, git commands & SHAs, dpkg packages, dash-options for most commands, etc etc.
#!/bin/bash | |
# Script for installing tmux on systems where you don't have root access. | |
# tmux will be installed in $HOME/local/bin. | |
# It's assumed that wget and a C/C++ compiler are installed. | |
# exit on error | |
set -e | |
TMUX_VERSION=1.8 |
1. pip install -r reqs.pip | |
2. server.py | |
3. open client.html in browser | |
4. redis-cli publish push '123456' | |
5. check browser console |
package main | |
// mentioned in bleve google group | |
// https://groups.google.com/forum/#!topic/bleve/-5Q6W3oBizY | |
import ( | |
"encoding/json" | |
"fmt" | |
"github.com/blevesearch/bleve" | |
"github.com/blevesearch/bleve/document" |
This is a tutorial that describes how to set up a private git (github) server for a smallish development team.
- Download GOGS binary Zip File
- Unzip to folder
- Run: sudo apt-get install sqlite3
- Run GOGS: ./gogs web
- Goto install page: http://hostname:3000/install
- Set to use sqlite3 as the database backend
- Set USER to run as, preferrably not root if it will be internet facing.
- Set Database file location (Make sure database file location is set to a folder where that same user has write permissions)
#!/usr/bin/env ruby | |
require 'rubygems' | |
require 'mechanize' | |
require 'json' | |
url = "https://en.wikipedia.org/wiki/List_of_city_nicknames_in_the_United_States" | |
STATES = ["Alabama", "Alaska", "Arizona", "Arkansas", "California", "Colorado", | |
"Connecticut", "Delaware", "Florida", "Georgia", "Hawaii", "Idaho", | |
"Illinois", "Indiana", "Iowa", "Kansas", "Kentucky", "Louisiana", | |
"Maine", "Maryland", "Massachusetts", "Michigan", "Minnesota", |
A curated list of AWS resources to prepare for the AWS Certifications
A curated list of awesome AWS resources you need to prepare for the all 5 AWS Certifications. This gist will include: open source repos, blogs & blogposts, ebooks, PDF, whitepapers, video courses, free lecture, slides, sample test and many other resources.
In the manual the steps required to install headless Firefox on CentOS 6 are described. Headless Firefox may be needed to perform GUI automated testing.
All steps of this manual have been validated on CentOS 6.8. It should not be a problem to adapt the solution to other distros.
N.B. SQLAlchemy now incorporates all of this information in its documentation; I’m leaving this post here, but recommend referring to SQLAlchemy instead of these instructions.
- We’ll assume you already have SQLAlchemy and Pandas installed; these are included by default in many Python distributions.
- Install the cx_Oracle package in your Python environment, using either
pip
orconda
, for example: