Docu for encrypt and decrypt a large file with AES and RSA
//generates a private Key with 8196 Bit.
openssl genrsa -out private.pem 8196
module Partiality where | |
import Control.Monad.Free | |
type Partiality = Free Maybe | |
never :: Partiality a | |
never = Free $ Just never | |
bad :: Partiality a |
#plot.stream makes a "stream plot" where each y series is plotted | |
#as stacked filled polygons on alternating sides of a baseline. | |
# | |
#Arguments include: | |
#'x' - a vector of values | |
#'y' - a matrix of data series (columns) corresponding to x | |
#'order.method' = c("as.is", "max", "first") | |
# "as.is" - plot in order of y column | |
# "max" - plot in order of when each y series reaches maximum value | |
# "first" - plot in order of when each y series first value > 0 |
[Unit] | |
Description=Demonstrate Bash | |
[Service] | |
ExecStartPre=/usr/bin/bash -c "/usr/bin/systemctl set-environment MYVAR=$(( 2 + 2 ))" | |
ExecStart=/usr/bin/echo "2 + 2 = ${MYVAR}" |
# ag <https://github.com/ggreer/the_silver_searcher> | |
# usage: ag-replace.sh [search] [replace] | |
# caveats: will choke if either arguments contain a forward slash | |
# notes: will back up changed files to *.bak files | |
ag -0 -l $1 | xargs -0 perl -pi.bak -e "s/$1/$2/g" | |
# or if you prefer sed's regex syntax: | |
ag -0 -l $1 | xargs -0 sed -ri.bak -e "s/$1/$2/g" |
#! /bin/bash | |
package_name=$(basename `pwd`) | |
log_file=./cabal-init.log | |
function fatal() { | |
echo "$1. Examine ${log_file} for more information." 2>&1 | |
exit 1 | |
} |
cabal exec -- ghci # starts ghci with cabal sandbox set | |
cabal exec -- runghc ... # runs runghc with cabal sandbox set |
#!/usr/bin/python | |
################# | |
# NOTE | |
# Now at https://github.com/jkominek/updatestars | |
################# | |
import requests | |
import json | |
import re |
Emacs packages, features, files, layers, extensions, auto-loading, require
,
provide
, use-package
… All these terms getting you confused? Let’s clear up
a few things.
Emacs files contains code that can be evaluated. When evaluated, the functions, macros and modes defined in that file become available to the current Emacs session. Henceforth, this will be termed as loading a file.
One major problem is to ensure that all the correct files are loaded, and in the
After updating the configuration
nixos-rebuild switch
I had to restart the system for pulseaudio to load the bluetooth module.
pactl list
should show the bluetooth module.
As I'm not using a desktop-manager I've configured the device from the command line following ArchLinux instructions