Skip to content

Instantly share code, notes, and snippets.

View henryhuypham's full-sized avatar

Henry Pham henryhuypham

  • Meta
  • London, UK
View GitHub Profile

emacs --daemon to run in the background. emacsclient.emacs24 <filename/dirname> to open in terminal

NOTE: "M-m and SPC can be used interchangeably".

  • Undo - C-/
  • Redo - C-?
  • Change case: 1. Camel Case : M-c 2. Upper Case : M-u
  1. Lower Case : M-l
@henryhuypham
henryhuypham / General Linux
Last active August 29, 2015 14:07
Setup xdmcp
1. install lightdm
2. Config /etc/lightdm/lightdm.conf:
[XDMCPServer]
enabled=true
[SeatDefaults]
xserver-allow-tcp=true
xdmcp-port=177
3. Config /etc/X11/xorg.conf:
package com.example.testadmin;
import android.app.Activity;
import android.app.admin.DevicePolicyManager;
import android.content.ComponentName;
import android.content.Context;
import android.content.Intent;
import android.os.Bundle;
import android.view.View;
import android.view.View.OnClickListener;
package com.geekyouup.paug.awesomepager;
import android.app.Activity;
import android.content.Context;
import android.graphics.Color;
import android.os.Bundle;
import android.os.Parcelable;
import android.support.v4.view.PagerAdapter;
import android.support.v4.view.ViewPager;
import android.view.View;
public class Monk {
public static void main(String[] args) {
Monk monk = new Monk();
monk.demo();
}
public void demo() {
AdbBackend ab = new AdbBackend();
IChimpDevice device = ab.waitForConnection();
// Print Device Name
@henryhuypham
henryhuypham / Bash - Expect
Last active March 15, 2022 12:55
Bash script using Expect - providing input for bash script beforehand.
#!/bin/bash
client="client_000"
country=""
state=""
locality=""
org=""
org_unit=""
common_name=""
name=""