Skip to content

Instantly share code, notes, and snippets.

View john-eevee's full-sized avatar
:shipit:

John Ev. john-eevee

:shipit:
View GitHub Profile
@john-eevee
john-eevee / observer.md
Created October 24, 2018 03:18 — forked from pnc/observer.md
Using Erlang observer/appmon remotely

Using OTP's observer (appmon replacement) remotely

$ ssh remote-host "epmd -names"
epmd: up and running on port 4369 with data:
name some_node at port 58769

Note the running on port for epmd itself and the port of the node you're interested in debugging. Reconnect to the remote host with these ports forwarded:

$ ssh -L 4369:localhost:4369 -L 58769:localhost:58769 remote-host
@john-eevee
john-eevee / .editorconfig
Created March 11, 2018 14:32 — forked from eksperimental/.editorconfig
.editorconfig for Elixir projects
# EditorConfig is awesome: http://EditorConfig.org
# .editorconfig for Elixir projects
# https://git.io/elixir-editorconfig
# top-most EditorConfig file
root = true
[*]
indent_style = space
@john-eevee
john-eevee / material_design_guidelines_dimens.xml
Created May 22, 2017 21:03 — forked from aeroechelon/material_design_guidelines_dimens.xml
Recommended Material Design Dimensions for Android
<?xml version="1.0" encoding="utf-8"?>
<resources>
<!--
# Material Design Dimensions
These dimensions are provided as per Material Design Guidelines
to adhere to a 8 dp baseline grid. (With the exception of the
toolbar and notification bar.).
## References
@john-eevee
john-eevee / download_hex_docs.sh
Created September 18, 2016 18:50 — forked from seven1m/download_hex_docs.sh
Download the docs for a project from hexdocs.pm
#!/bin/bash
project=$1
wget --mirror -k -np http://hexdocs.pm/$project
ruby -e "puts ARGF.read.scan(/[A-Z]\\w*\\.[\\w\\.]+/).uniq.map { |l| 'http://hexdocs.pm/$project/' + l + '.html' }" hexdocs.pm/$project/dist/sidebar_items.js | wget --mirror -k -i -
wget --mirror -k http://hexdocs.pm/$project/extra-api-reference.html
@john-eevee
john-eevee / gh-pages-deploy.md
Created August 17, 2016 17:23 — forked from cobyism/gh-pages-deploy.md
Deploy to `gh-pages` from a `dist` folder on the master branch. Useful for use with [yeoman](http://yeoman.io).

Deploying a subfolder to GitHub Pages

Sometimes you want to have a subdirectory on the master branch be the root directory of a repository’s gh-pages branch. This is useful for things like sites developed with Yeoman, or if you have a Jekyll site contained in the master branch alongside the rest of your code.

For the sake of this example, let’s pretend the subfolder containing your site is named dist.

Step 1

Remove the dist directory from the project’s .gitignore file (it’s ignored by default by Yeoman).

@john-eevee
john-eevee / introrx.md
Created August 3, 2016 19:11 — forked from staltz/introrx.md
The introduction to Reactive Programming you've been missing
@john-eevee
john-eevee / rake task
Created July 4, 2016 00:35 — forked from mcansky/rake task
simple ruby git changelog generator
# simple rake task to output a changelog between two commits, tags ...
# output is formatted simply, commits are grouped under each author name
#
desc "generate changelog with nice clean output"
task :changelog, :since_c, :until_c do |t,args|
since_c = args[:since_c] || `git tag | head -1`.chomp
until_c = args[:until_c]
cmd=`git log --pretty='format:%ci::%an <%ae>::%s::%H' #{since_c}..#{until_c}`
entries = Hash.new
@john-eevee
john-eevee / Dockerfile
Created May 9, 2016 15:36 — forked from eluleci/Dockerfile
Dockerfile for Android CI
############################################################
# Dockerfile to build Android project and use Jenkins CI
#
############################################################
FROM ubuntu:14.04
MAINTAINER eluleci <emrullahluleci@gmail.com>
RUN apt-get update
@john-eevee
john-eevee / Wildfly.xml
Created March 11, 2016 14:10 — forked from foo4u/Wildfly.xml
Wildfly Code Style for IntelliJ
<code_scheme name="Wildfly">
<option name="LINE_SEPARATOR" value="&#10;" />
<option name="INSERT_INNER_CLASS_IMPORTS" value="true" />
<option name="CLASS_COUNT_TO_USE_IMPORT_ON_DEMAND" value="9999" />
<option name="NAMES_COUNT_TO_USE_IMPORT_ON_DEMAND" value="9999" />
<option name="PACKAGES_TO_USE_IMPORT_ON_DEMAND">
<value>
<package name="org.junit.Assert" withSubpackages="false" static="true" />
<package name="org.rendersnake.HtmlAttributesFactory" withSubpackages="false" static="false" />
<package name="org.mockito.Mockito" withSubpackages="true" static="true" />
@john-eevee
john-eevee / cassandra_intellij.xml
Created March 11, 2016 14:10
Intellij code style formater for Apache Cassandra
<?xml version="1.0" encoding="UTF-8"?>
<code_scheme name="cassandra-intellij">
<option name="LINE_SEPARATOR" value="&#10;" />
<option name="IMPORT_LAYOUT_TABLE">
<value>
<package name="java" withSubpackages="true" static="false" />
<package name="javax" withSubpackages="true" static="false" />
<emptyLine />
<package name="com.google.common" withSubpackages="true" static="false" />
<package name="org.apache.commons" withSubpackages="true" static="false" />