Skip to content

Instantly share code, notes, and snippets.

View Kagemaru's full-sized avatar

Thomas Burkhalter Kagemaru

View GitHub Profile
@Kagemaru
Kagemaru / settings.ex
Last active April 8, 2024 15:07
Teej Settings parser
❯ iex
Erlang/OTP 26 [erts-14.2.3] [source] [64-bit] [smp:24:24] [ds:24:24:10] [async-threads:1] [jit:ns]
Interactive Elixir (1.16.2) - press Ctrl+C to exit (type h() ENTER for help)
[dev] iex [17:05 :: 1] > defmodule Settings do
[dev] ... [17:05 :: 1] > def parse(settings) do
[dev] ... [17:05 :: 1] > [
[dev] ... [17:05 :: 1] > Enum.map(~w[feature feature2]a, &{:"is_#{&1}_enabled", &1}),
[dev] ... [17:05 :: 1] > Enum.map(~w[feature3 feature4]a, &{:"is_another_#{&1}_true", &1})
[dev] ... [17:05 :: 1] > ]
@Kagemaru
Kagemaru / decidim_geo_questions.md
Created March 18, 2024 09:49
Questions / Problems for Decidim::Geo
  • Problem: Don't know how to build task 'decidim-geo:install:migrations'
    • Current Solution: Needed to run: rails decidim_geo:install:migrations instead of rails decidim-geo:install:migrations from the docs
  • Question: Also, what is rails decidim_geo:webpacker:install and do I need to run it? (Not in the docs)
  • Problem: config/initializers/decidim_geocoder.rb:
    config.maps = {
call plug#begin()
Plug 'Shougo/deoplete.nvim', { 'do': ':UpdateRemotePlugins' }
Plug 'SirVer/ultisnips'
Plug 'arcticicestudio/nord-vim'
Plug 'autozimu/LanguageClient-neovim', { 'branch': 'next', 'do': 'bash install.sh' }
Plug 'dense-analysis/ale'
Plug 'godlygeek/tabular'
Plug 'honza/vim-snippets'
Plug 'jiangmiao/auto-pairs'
Plug 'jpo/vim-railscasts-theme'
@Kagemaru
Kagemaru / postfinance-ynab.user.js
Last active November 9, 2018 17:22 — forked from weiserr/README.md
Postfinance YNAB Export
// ==UserScript==
// @name Postfinance CSV Export
// @namespace Kagemaru
// @include https://www.postfinance.ch/ap/ba/fp/html/e-finance/assets
// @version 6
// @grant none
// @updateURL https://gist.github.com/Kagemaru/1cf1eab79a2959f50054fad390c4d302/raw/fb0b6160461bda21cef9a3502fbd29dbe00599b8/postfinance-ynab.user.js
// ==/UserScript==
// Function definitions
function createGenerateButton() {
@Kagemaru
Kagemaru / installer_error.txt
Created November 23, 2017 10:33
Postgres Installer Error
2017-11-23 10:29:20 [COMMAND] : pgc info
2017-11-23 10:29:20 [ERROR] : Traceback (most recent call last):
File "hub\scripts\pgc.py", line 1959, in <module>
api.info(isJSON, PGC_HOME, REPO)
File "C:\POSTGR~1\hub\scripts\api.py", line 243, in info
cpu_model = subprocess.check_output([wmic_path, "cpu", "get", "name"]).strip().split("\n")[1]
File "C:\POSTGR~1\python2\lib\subprocess.py", line 574, in check_output
raise CalledProcessError(retcode, cmd, output=output)
CalledProcessError: Command '['C:\\WINDOWS\\System32\\wbem\\wmic', 'cpu', 'get', 'name']' returned non-zero exit status -2147217392