Wanna try google auth, but not have the app on your phone and use your CLI instead? sure!
Begin by adding this fun alias to your ~/.bashrc
. that way executing this bit of fun will be easier
alias google_auth=`sudo ~/.auth/google.sh`
# ~/.conf/alacritty/alacritty.yml | |
# Configuration for Alacritty, the GPU enhanced terminal emulator | |
# Any items in the `env` entry below will be added as | |
# environment variables. Some entries may override variables | |
# set by alacritty it self. | |
env: | |
# TERM env customization. | |
# | |
# If this property is not set, alacritty will set it to xterm-256color. |
# Default configuration file for tmux-powerline. | |
# Modeline { | |
# vi: foldmarker={,} foldmethod=marker foldlevel=0 tabstop=4 filetype=sh | |
# } | |
# General { | |
# Show which segment fails and its exit code. | |
export TMUX_POWERLINE_DEBUG_MODE_ENABLED="false" | |
# Use patched font symbols. | |
export TMUX_POWERLINE_PATCHED_FONT_IN_USE="true" |
Here are some good options for your next night stop:
Björnlandet is an officialy recognized national park, which means it's being maintained by the state and not just the province.
The park is quite big and you can have fun for a good day or 3 if you want to explore everything.
I hereby claim:
To claim this, I am signing this object:
#!/bin/sh | |
# Install script for elixir by Peter van der Meulen | |
echo "Welcome to elixir install script"; | |
echo "Please make sure you currently have no installation of elixir on your computer before running this script \n"; | |
echo "This script will install:"; | |
echo "-erlang via homebrew"; | |
echo "-exenv (an rbenv flavor for elixir)"; | |
echo "-elixir build 1.3"; |
Writing your own delivery method in Rails (4.+)
Imagine, you got your rails server and you need to send out a bunch of mails to your recipients. no big deal, but SMTP is just very slow when compared with things like simple HTTP API calls.
I set out a few days to write my own delivery method, but found online sources somewhat lacking, outdated or completely skipping this part of sending mails in rails. So lets start making a simple mail_delivery method that outputs the mail to a file in your project home.
You can change the postman step in this tutorial to match your API, etc. instead.
For everyone who wants to try https in their powder: install tunnelssl it’s tunnel but it makes sure yoyr ssl is system verified.
gem install tunnelssl
Tunnel ssl requires some form of sudo. problem being that when you run a gem in sudo all files it touches become root files. There is a handy rbenv plugin to tackle this problem:
git clone git://github.com/dcarley/rbenv-sudo.git ~/.rbenv/plugins/rbenv-sudo
open your .bashrc, .bash_profile, .zshrc or zsh_profile (for pro’s) and add
like a baws
ps: MacosX only sorry linux fans.
As of writing this in september 2015 react native requires installing nodejs 4.0.+
I like ndenv so let’s use that.
Open a terminal and issue the following commands (I’m assuming you have home-brew and some form of git installed here)
# bash <(curl -s https://gist.githubusercontent.com/HendrikPetertje/a7772596943d55acfd14/raw/2e52a0402b938639d1d909facd301c8f783176ec/atom.sh) | |
add-apt-repository ppa:webupd8team/atom -y | |
apt-get update | |
apt-get install atom |