This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
In the "logging in" section of Programming Phoenix, | |
it says that using the :renew option to configure_session | |
is important to prevent session fixation attacks. However, aren't | |
these already impossible because the cookie that phoenix is storing | |
the session inside is signed? How could an attacker fixate the session ID? |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
{ | |
"cacheDir": "/var/lib/tlsmuxd", | |
"email": "[email protected]", | |
"enable": true, | |
"hosts": { | |
"aubble.com": [ | |
{ | |
"_module": { | |
"args": { | |
"name": "[definition 1-entry 1]" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
{"cacheDir":"/var/lib/tlsmuxd","email":"[email protected]","enable":true,"hosts":{"aubble.com":[{"_module":{"args":{"name":"[definition 1-entry 1]"},"check":true},"addr":"localhost:906","name":"ssh"},{"_module":{"args":{"name":"[definition 1-entry 2]"},"check":true},"addr":"localhost:8081","name":"h2"},{"_module":{"args":{"name":"[definition 1-entry 3]"},"check":true},"addr":"localhost:8080","name":""}],"avondieselemission.com":[{"_module":{"args":{"name":"[definition 1-entry 1]"},"check":true},"addr":"localhost:8083","name":"h2"},{"_module":{"args":{"name":"[definition 1-entry 2]"},"check":true},"addr":"localhost:8082","name":""}],"dropbox.aubble.com":[{"_module":{"args":{"name":"[definition 1-entry 1]"},"check":true},"addr":"localhost:8087","name":"h2"},{"_module":{"args":{"name":"[definition 1-entry 2]"},"check":true},"addr":"localhost:8086","name":""}],"lounge.aubble.com":[{"_module":{"args":{"name":"[definition 1-entry 1]"},"check":true},"addr":"localhost:8088","name":""}],"radiograydon.aubble.com":[{"_mo |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
{ config, lib, pkgs, ... }: | |
with lib; | |
let | |
configFile = pkgs.writeText "config.json" (builtins.toJSON config.services.tlsmuxd); | |
in | |
{ | |
options.services.tlsmuxd = { | |
enable = mkEnableOption "tlsmuxd"; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
❯ nixos-rebuild switch --show-trace i | |
building Nix... | |
building the system configuration... | |
error: while evaluating the attribute ‘buildCommand’ of the derivation ‘nixos-system-aubble.com-17.03.git.c1b0382’ at /etc/nixos/nixpkgs/nixos/modules/system/activation/top-level.nix:102:7: | |
while evaluating the attribute ‘sources’ of the derivation ‘etc’ at /etc/nixos/nixpkgs/nixos/modules/system/etc/etc.nix:12:5: | |
while evaluating anonymous function at /etc/nixos/nixpkgs/nixos/modules/system/etc/etc.nix:20:20, called from undefined position: | |
while evaluating the attribute ‘source’ at /etc/nixos/nixpkgs/lib/attrsets.nix:199:44: | |
while evaluating anonymous function at /etc/nixos/nixpkgs/lib/modules.nix:75:45, called from /etc/nixos/nixpkgs/lib/attrsets.nix:199:52: | |
while evaluating the attribute ‘value’ at /etc/nixos/nixpkgs/lib/modules.nix:300:9: | |
while evaluating the option `environment.etc.crontab.source': |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
mkdir -p .deps | |
cd .deps && \ | |
cmake -G 'Unix Makefiles' \ | |
../third-party | |
-- The CXX compiler identification is unknown | |
-- Check for working CXX compiler: /nix/store/bkkhnzl3wpla85cjq30xbz3nrcqjpi8q-gcc-wrapper-5.4.0/bin/g++ | |
-- Check for working CXX compiler: /nix/store/bkkhnzl3wpla85cjq30xbz3nrcqjpi8q-gcc-wrapper-5.4.0/bin/g++ -- broken | |
CMake Error at /nix/store/aqqlrc5bsb6z18jq4i1qk6j7wc561vhb-cmake-3.7.1/share/cmake-3.7/Modules/CMakeTestCXXCompiler.cmake:44 (message): | |
The C++ compiler | |
"/nix/store/bkkhnzl3wpla85cjq30xbz3nrcqjpi8q-gcc-wrapper-5.4.0/bin/g++" is |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
fish = lib.overrideDerivation fish (attrs: rec { | |
name = "fish-${version}-dev"; | |
version = "2.3.1"; | |
src = fetchFromGitHub { | |
owner = "fish-shell"; | |
repo = "fish-shell"; | |
rev = "89e48ba0b3b2ff0f254443117483814402f8f6cd"; | |
sha256 = "1hznlfa75l24bwdx5rkwnr5ni4x2zssh2n1m3jv10mnsi0slwrgw"; | |
}; | |
buildInputs = fish.buildInputs ++ [ autoconf ]; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
[[plugins]] | |
repo = 'Shougo/deoplete.nvim' | |
depends = 'context_filetype.vim' | |
on_event = 'InsertEnter' | |
hook_source = ''' | |
let g:deoplete#enable_at_startup = 1 | |
inoremap <silent> <expr> <C-N> deoplete#mappings#manual_complete() | |
call deoplete#custom#set('_', 'matchers', ['matcher_length', 'matcher_full_fuzzy']) | |
call deoplete#custom#set('_', 'converters', ['converter_remove_overlap', 'converter_truncate_abbr', 'converter_truncate_menu', 'converter_remove_paren', 'converter_auto_delimiter']) | |
let g:deoplete#omni#input_patterns = {} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
[[plugins]] | |
repo = 'dag/vim-fish' | |
hook_add = ''' | |
let g:deoplete#omni#input_patterns.fish = '\w+' | |
augroup fish_ft | |
autocmd! | |
autocmd FileType fish setlocal keywordprg=:Man | |
augroup END | |
''' |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
package main | |
import ( | |
"encoding/json" | |
"flag" | |
"fmt" | |
"net/http" | |
"runtime" | |
"strconv" | |
"time" |