Skip to content

Instantly share code, notes, and snippets.

View wallyqs's full-sized avatar
🌎

Waldemar Quevedo wallyqs

🌎
  • Synadia Communications, Inc.
  • San Francisco
View GitHub Profile
#+TITLE: Running Org babel processes in parallel
* Print with different languages
#+name: hello_from_bash
#+begin_src sh :shebang #!/bin/bash
while true; do echo "hello world from bash"; sleep 1; done
#+end_src
#+name: hello_from_ruby
#+TITLE: Running scripts in parallel
In the following example, the following 3 scripts should be run in parallel
with all output being flushed to the screen.
- Count some numbers with bash
#+name: bash_counter
#+begin_src sh :shebang #!/bin/bash
echo '' > out.log

Emacs の初期化用ファイル・環境編

Test

puts "hello world"

Mesos & Deimos install

Ticket: https://issues.apache.org/jira/browse/MESOS-816

To get started with Docker/Marathon/Mesos, you need to install a new Mesos, a new Marathon, and Deimos, the bridge to Docker. You’ll also need Docker and the JVM. These instructions are for Ubuntu 13.10.

@wallyqs
wallyqs / ifconfig-deprecated.sh
Created July 6, 2014 10:45
ifconfig deprecated
# Taken from http://blog.livedoor.jp/sonots/archives/38589335.html
net_tools_deprecated_message () {
echo -n 'net-tools コマンドはもう非推奨ですよ?おじさんなんじゃないですか? '
}
arp () {
net_tools_deprecated_message
echo 'Use `ip n`'
}
@wallyqs
wallyqs / tangle-and-reload.rb
Created July 20, 2014 08:07
Tangle and reload webapp via Guard and Google Chrome Dev tools websocket
require 'org-converge'
require 'uri'
require 'net/http'
require 'eventmachine'
require 'faye/websocket'
require 'json'
ORG_FILE = 'org/app.org'
WEBAPP_URL = 'localhost:8000'
CHROME_DEVTOOLS_URL = 'http://localhost:9222/json'
@wallyqs
wallyqs / dev-server.org
Created July 20, 2014 08:17
Ruby development environtment with Org

Dev workflow

Example setup of development environment which enables literate programming. Needs the following gems at least in development group for it to work:

group :development do
  gem 'shotgun'
@wallyqs
wallyqs / fixing-wifi-in-ubuntu-14.04.org
Last active August 29, 2015 14:06
Fixing the wifi in Ubuntu 14.04 Lenovo Yoga 2

Problem most likely is that the wifi is hardware due to a bug, this can be checked with sudo rfkill list. The wlan module would say that it is Hardware Blocked.

  • Remaking the module, in the following repo there is a useful Makefile for this
sudo apt-get install linux-headers-generic build-essential git
git clone https://github.com/pfps/yoga-laptop.git
cd yoga-laptop/yoga_laptop
@wallyqs
wallyqs / about-org-macros.txt
Created September 24, 2014 05:39
macro implementation notes
#+macro: version 1.0
We have the application running version {{{version}}}.
Notice that it has to be within 3 brackets and no internal spaces.
#+macro: greet Hi $1, how is it going?
Now let's try saying hi: {{{greet(Wally)}}}.
#+macro: greetreply {{{greet($1)}}} - *$1* :: $2