Skip to content

Instantly share code, notes, and snippets.

View Daniel-Wang's full-sized avatar

Daniel Daniel-Wang

View GitHub Profile
#!/usr/bin/env ruby
HOME = ENV['HOME']
repeat = ARGV[0].to_i
assignment = ARGV[1]
cmd = ARGV[2]
verbose = ARGV[3]
Dir.chdir("#{HOME}/cs350-os161/os161-1.99/kern/conf") {
@vejei
vejei / TextViewUndoRedo.java
Created January 23, 2018 07:16
Perform undo redo operation in android edittext
package fi.iki.asb.android.logo;
/*
* THIS CLASS IS PROVIDED TO THE PUBLIC DOMAIN FOR FREE WITHOUT ANY
* RESTRICTIONS OR ANY WARRANTY.
*/
import java.util.LinkedList;
import android.content.SharedPreferences;
@romanz
romanz / fullnode.md
Last active March 20, 2024 19:05
Bitcoin Full Node on AWS Free Tier

Bitcoin Full Node on AWS Free Tier

Provisioning

  • Launch one T2 micro instance, using Ubuntu 14.04 LTS AMI.
  • Open SSH and Bitcoin Protocol TCP ports: 22, 8333.
  • Attach 40GB EBS (General-Purpose SSD) volume for blockchain storage to /dev/sdf.

The pricing should be ~3$ for the first year (assuming 30GB upload per month). See here for more details.