Written for fairly adept technical users, preferably of Debian GNU/Linux, not for absolute beginners.
You'll probably be working with a single smartcard, so you'll want only one primary key ( |
You'll probably be working with a single smartcard, so you'll want only one primary key ( |
FWIW: I (@rondy) am not the creator of the content shared here, which is an excerpt from Edmond Lau's book. I simply copied and pasted it from another location and saved it as a personal note, before it gained popularity on news.ycombinator.com. Unfortunately, I cannot recall the exact origin of the original source, nor was I able to find the author's name, so I am can't provide the appropriate credits.
Also posted here: http://18pct.com/sending-bash-and-zsh-commands-to-syslog/
Your bash/zsh history is great if its complete, but it doesn't capture commands across all users, sudo's, root commands etc. In particular with test environments, someone may perform a "one-off" procedure and then months later it needs to be repeated. It would be nice to be able to look up what the user did at the time, and searching through multiple, possibly truncated history files is a pain.
Tools like typescript are great if you're actively documenting, but not something you would use all the time in practice and capture more than just a history of your commands. There are third-party tools like rootsh and Snoopy that can accomplish this, but third-party tools can be overkill if all you want is a quick reference in a re
#!/bin/bash | |
#title :lt_install.sh | |
#description :LightTable Installation Script | |
#author :<[email protected]> Ali GOREN | |
#date :2015-10-31 | |
#version :0.1 | |
#usage :chmod u+x, ./lt_install.sh | |
#notes :progressFilt Source-> http://stackoverflow.com/a/4687912 | |
#bash_version :4.3.11(1)-release |
# If this script is throwing an error near a Unicode symbol try resaving the file as UTF-8 with BOM | |
$psmodules = ";~\Documents\WindowsPowerShell\Modules" | |
# sometimes the module paths has been fucked before posh loads, but that won't stop us | |
$env:PSModulePath = $env:PSModulePath + $psmodules | |
# Set the OutputEncoding to Unicode so that the λ renders properly | |
[Console]::OutputEncoding = [System.Text.Encoding]::UTF8 | |
As all objects must be Serializable
to be used as part of RDD
operations in Spark, it can be difficult to work with libraries which do not implement these featuers.
For simple classes, it is easiest to make a wrapper interface that extends Serializable. This means that even though UnserializableObject
cannot be serialized we can pass in the following object without any issue
public interface UnserializableWrapper extends Serializable {
public UnserializableObject create(String parm1, String parm2);
#!/usr/bin/bash | |
# | |
# Script to notify user for new mails. | |
# Crontab ex: | |
# */3 * * * * ~/bin/offlineimap-notify.sh | |
# | |
#run OfflineIMAP once, with quiet interface | |
offlineimap -o -q -u quiet |
import pymssql | |
import pandas as pd | |
## instance a python db connection object- same form as psycopg2/python-mysql drivers also | |
conn = pymssql.connect(server="172.0.0.1", user="howens",password="some_fake_password", port=63642) # You can lookup the port number inside SQL server. | |
## Hey Look, college data | |
stmt = "SELECT * FROM AlumniMirror..someTable" | |
# Excute Query here | |
df = pd.read_sql(stmt,conn) |
When hosting our web applications, we often have one public IP
address (i.e., an IP address visible to the outside world)
using which we want to host multiple web apps. For example, one
may wants to host three different web apps respectively for
example1.com
, example2.com
, and example1.com/images
on
the same machine using a single IP address.
How can we do that? Well, the good news is Internet browsers