- Read every row in the table
- No reading of index. Reading from indexes is also expensive.
source ~/path/to/tabs.sh | |
load-dev(){ | |
#Create sessi data format '<Tab Name/Title> <Profile Name> <Working Directory>' | |
local sessions=( | |
oak Shell 'clear; cd ~/git/apache/oak' | |
sling Shell 'clear; cd ~/git/apache/sling' | |
felix Shell 'clear; cd ~/git/apache/felix' | |
) | |
start_sessions sessions[@] |
Each of these commands will run an ad hoc http static server in your current (or specified) directory, available at http://localhost:8000. Use this power wisely.
$ python -m SimpleHTTPServer 8000
<project xmlns="http://maven.apache.org/POM/4.0.0" | |
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" | |
xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd"> | |
<modelVersion>4.0.0</modelVersion> | |
<groupId>gd.wa</groupId> | |
<artifactId>minimal-pom</artifactId> | |
<version>1.0-SNAPSHOT</version> | |
<packaging>jar</packaging> |
#!/usr/bin/env bash | |
sudo locale-gen en_US.UTF-8 | |
sudo update-locale LANG=en_US.UTF-8 | |
sudo update-locale LC_ALL=en_US.UTF-8 | |
sudo apt-get update | |
sudo apt-get install -y build-essential git curl libxslt1-dev libxml2-dev libssl-dev | |
# postgres |
module RequestMacros | |
def login_user(user = nil) | |
user = create(:user, password: 'password') unless user | |
# ensure password is valid when `user` is provided | |
expect(user.valid_password?('password')).to be(true) | |
# ensure user is confirmed | |
user.confirm! |
set itermRunning to (application "iTerm" is running) | |
set scriptPath to quoted form of POSIX path of ((path to me as text) & "::" & "start.sh") | |
set user_shell to do shell script "dscl /Search -read /Users/$USER UserShell | awk '{print $2}'" | |
tell application "iTerm" | |
activate | |
if not (exists window 1) or (itermRunning = false) then | |
reopen | |
end if |
The list of actions listed below was taken mostly from Book Of Zeus with minor modifications and did the job well for Ubuntu version, which was available at that moment (May 2016). This gist was created for internal use and was never meant to be discovered by the web, although Google managed to find and index this page, which was a great surprise for me. Please check the original source for the updated information (links are provided in most of the sections), and read the comments below: they provide more details about the usage experience.
http://bookofzeus.com/harden-ubuntu/initial-setup/system-updates/
Keeping the system updated is vital before starting anything on your system. This will prevent people to use known vulnerabilities to enter in your system.
This worked for me and might not work for your.
Try it at your own risk!
$ wget -qO - 'http://archive.neon.kde.org/public.key' | sudo apt-key add -
$ sudo apt-add-repository http://archive.neon.kde.org/user
$ sudo apt-get update
$ sudo apt-get install neon-desktop
#!/bin/bash | |
# Unlock the directory, we need the unencrypted versions of the files | |
git crypt unlock | |
# Re-initialize git crypt, generating a new key | |
rm .git/git-crypt/keys/default | |
git crypt init | |
# Make the key available to the current users |