by Ossi Hanhinen, @ohanhi
with the support of Futurice 💚.
Licensed under CC BY 4.0.
emacs --daemon
to run in the background.
emacsclient.emacs24 <filename/dirname>
to open in terminal
NOTE: "M-m and SPC can be used interchangeably".
C-/
C-?
M-c
2. Upper Case : M-u
M-l
This describes how I setup Atom for an ideal Clojure development workflow. This fixes indentation on newlines, handles parentheses, etc. The keybinding settings for enter (in keymap.cson) are important to get proper newlines with indentation at the right level. There are other helpers in init.coffee and keymap.cson that are useful for cutting, copying, pasting, deleting, and indenting Lisp expressions.
The Atom documentation is excellent. It's highly worth reading the flight manual.
1) install npm packages | |
2) update brunch-config.js | |
3) remove Bootstrap from web/static/css/app.css | |
4) rename web/static/css/app.css to web/static/css/app.scss | |
5) update web/static/css/app.scss |
#!/usr/bin/sudo ruby | |
# | |
# revealer.rb -- Deobfuscate GHE .rb files. | |
# | |
# This is simple: | |
# Every obfuscated file in the GHE VM contains the following code: | |
# | |
# > require "ruby_concealer.so" | |
# > __ruby_concealer__ "..." |
{:duct.logging/timbre | |
{:level :info | |
:appenders {:println #ref :duct.logging.timbre/println}} | |
:duct.logging.timbre/println | |
{:stream :auto} | |
:duct.server/jetty | |
{:port 3000 | |
:handler #ref duct.bridge/handler} |
import time | |
import bs4 | |
import requests | |
import logging | |
import sys | |
logger = logging.getLogger('switchlogger') | |
logger.setLevel(logging.DEBUG) | |
ch = logging.StreamHandler(sys.stdout) |
# A few fun tricks right quick. Note that more tricks like this are over at: | |
# https://medium.com/rubyinside/triple-equals-black-magic-d934936a6379 | |
# | |
# I'll probably condense this into a blog post later, but for now we'll have our fun. | |
# 1 - "Pattern Matching" with case | |
# We make a new lambda named M for brevity. Because it can be called with `[]` it | |
# looks quite natural in flow with a case statement. | |
# |
#!/bin/bash | |
# | |
# NOTE: specify the absolutepath to the directory to use when | |
# loading a plugin. '~' expansion is supported. | |
# | |
chunkc core::plugin_dir /usr/local/opt/chunkwm/share/chunkwm/plugins | |
# |