Skip to content

Instantly share code, notes, and snippets.

View maishuguang's full-sized avatar
🎯
Focusing

Falaq M maishuguang

🎯
Focusing
View GitHub Profile
@maishuguang
maishuguang / LICENCE SUBLIME TEXT
Created August 4, 2018 08:03
Sublime Text 3 Serial key build is 3176
## Sublime Text 3 Serial key build is 3176
> * Added these lines into /etc/hosts
127.0.0.1 www.sublimetext.com
127.0.0.1 license.sublimehq.com
> * Used the license key
----- BEGIN LICENSE -----
@maishuguang
maishuguang / keypress.rb
Created May 9, 2016 08:54 — forked from acook/keypress.rb
Read keypresses from user in terminal, including arrow keys using pure Ruby. This has since been folded into a much more robust gem called Remedy. https://rubygems.org/gems/remedy & https://github.com/acook/remedy
require 'io/console'
# Reads keypresses from the user including 2 and 3 escape character sequences.
def read_char
STDIN.echo = false
STDIN.raw!
input = STDIN.getc.chr
if input == "\e" then
input << STDIN.read_nonblock(3) rescue nil
#!/usr/bin/ruby
sym = ['|', '/', '-', '\\']
count = 0
printf "\033[s"
10.times do
printf "\033[u\033[1D"
printf "\033[34m" + sym[count % sym.length] + "\033[0m"
printf "\033[s\033[0;0f"
STDOUT.flush
[Desktop Entry]
Name=Emacs
GenericName=Text Editor
Comment=Edit text
MimeType=text/english;text/plain;text/x-makefile;text/x-c++hdr;text/x-c++src;text/x-chdr;text/x-csrc;text/x-java;text/x-moc;text/x-pascal;text/x-tcl;text/x-tex;application/x-shellscript;text/x-c;text/x-c++;
Exec=env LC_CTYPE=zh_CN.UTF-8 emacs %F
Icon=emacs
Type=Application
Terminal=false
Categories=Development;TextEditor;
@maishuguang
maishuguang / build-emacs.sh
Created May 3, 2016 14:02 — forked from favadi/build-emacs.sh
Compile latest emacs version (24.5) in Ubuntu 14.04
#!/bin/bash
# Build latest version of Emacs, version management with stow
# OS: Ubuntu 14.04 LTS
# version: 24.5
# Toolkit: lucid
# Warning, use updated version of this script in: https://github.com/favadi/build-emacs
set -e