Skip to content

Instantly share code, notes, and snippets.



  • Korean Peninsula
View GitHub Profile

Unbricking a Buffalo WZR-HP-G300NH

TFTP recovery in OSX 10.12

Similar steps can be used under Linux, I have no idea how to Windows anymore. This will probably work for similar Buffalo WZR routers, though your milage may vary. These directions flash the router back to stock Buffalo branded DDWRT.

When these routers brick they tend to go into a kind of reboot mode. At the begining of the reboot, the TFTP server is available for a brief period of time, then all of the lights flash and the unit reboots. We're exploiting the short period of time where the router is in TFTP mode at the start of the reboot. You can try to do a put via TFTP at the begining of this cycle, even if your router has been plugged in for awhile.

Back to Stock Buffalo Branded DDWRT

View WinRM 세팅

WinRM 사용 정리

WinRM 초기 설정

  • PowerShell (Run as Administrator)
# Service Enable 
winrm qc 

# 인증 및 AllowUnencrypted 설정 
ajchemist /
Created Mar 17, 2019 — forked from padawanphysicist/
Install emacs packages from the command-line
# I wrapped the code constructed in
# in a single bash script, so I would a single code snippet.
# Package to be installed
View gist:a6227cbdb7d5a565b7b3f5439ce1bde2
<html lang="en-US">
<meta charset="UTF-8" />
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8" />
<meta http-equiv="X-UA-Compatible" content="IE=Edge,chrome=1" />
<meta name="robots" content="noindex, nofollow" />
<meta name="viewport" content="width=device-width, initial-scale=1, maximum-scale=1" />
<title>Just a moment...</title>
<style type="text/css">
ajchemist / analytics.conf
Created Jan 26, 2019 — forked from jirutka/analytics.conf
Add Google Analytics tracking code to HTML via nginx
View analytics.conf
# Add Google Analytics tracking code to HTML response
# Usage:
# set $tracking_id 'UA-12345678-9';
# include incl/analytics.conf;
# It needs nginx compiled with option --with-http_sub_module.
# Uses optimized GA code from:
View reagent-autoscroll.cljs
;; Auto-scrolling ==============================================================
(defn scroll! [el start end time]
(.play (goog.fx.dom.Scroll. el (clj->js start) (clj->js end) time)))
(defn scrolled-to-end? [el tolerance]
;; at-end?: element.scrollHeight - element.scrollTop === element.clientHeight
(> tolerance (- (.-scrollHeight el) (.-scrollTop el) (.-clientHeight el))))
(defn autoscroll-list [{:keys [children class scroll?] :as opts}]
ajchemist / scroll.cljs
Created Dec 12, 2018 — forked from jasich/scroll.cljs
ClojureScript scroll element into view
View scroll.cljs
;; Based on
(ns example.scroll)
(def speed 500)
(def moving-frequency 15)
(defn cur-doc-top []
(+ (.. js/document -body -scrollTop) (.. js/document -documentElement -scrollTop)))
(defn element-top [elem top]
public void updateJarFile(File srcJarFile, String targetPackage, File ...filesToAdd) throws IOException {
File tmpJarFile = File.createTempFile("tempJar", ".tmp");
JarFile jarFile = new JarFile(srcJarFile);
boolean jarUpdated = false;
try {
JarOutputStream tempJarOutputStream = new JarOutputStream(new FileOutputStream(tmpJarFile));
try {
//Added the new files to the jar.
ajchemist /
Created Oct 13, 2018 — forked from MariadeAnton/
Travis CI Demo Examples - GitHub Satellite 2017

Typing vagrant from the command line will display a list of all available commands.

Be sure that you are in the same directory as the Vagrantfile when running these commands!

Creating a VM

  • vagrant init -- Initialize Vagrant with a Vagrantfile and ./.vagrant directory, using no specified base image. Before you can do vagrant up, you'll need to specify a base image in the Vagrantfile.
  • vagrant init <boxpath> -- Initialize Vagrant with a specific box. To find a box, go to the public Vagrant box catalog. When you find one you like, just replace it's name with boxpath. For example, vagrant init ubuntu/trusty64.

Starting a VM

  • vagrant up -- starts vagrant environment (also provisions only on the FIRST vagrant up)
You can’t perform that action at this time.