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
html { | |
width: 100%; | |
height: 100%; | |
&>body { | |
width: 100%; | |
height: 100%; | |
&>.content { | |
display: table; |
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
#!/usr/bin/env ruby | |
# | |
# Verify if a secp128r1 signature is valid. | |
# | |
# Dependencies: | |
# * ECDSA (gem install ecdsa) | |
# | |
# Authors: | |
# Alessandro Molari (alem0lars) <[email protected]> | |
# Luca Molari (LMolr) <[email protected]> |
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_name="foobar" # Replace "foobar" with the config name | |
_config_repo="[email protected]:alem0lars/configs-${_config_name}.git" # Replace with the right remote repo | |
# 1. Create the remote repository named: config-${_config_name} | |
# MANUAL | |
# 2. Add to MR | |
# 2.1 Add to available.d | |
echo "[\$HOME/.config/vcsh/repo.d/${_config_name}.git]" > ~/.config/mr/available.d/${_config_name}.vcsh | |
echo "checkout = vcsh clone ${_config_repo} ${_config_name}" >> ~/.config/mr/available.d/${_config_name}.vcsh |
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
β β ⌘ β ⌘ β the Command Key symbol | |
β₯ β ⌥ β ⌥ β the Option Key symbol | |
β§ β ⇧ β ⇧ β the Shift Key symbol | |
β β ⎋ β ⎋ β the ESC Key symbol | |
βͺ β ⇪ β ⇪ β the Capslock symbol | |
β β ⏎ β ⏎ β the Return symbol | |
β« β ⌫ β ⌫ β the Delete / Backspace symbol |
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
# -*- mode: ruby -*- | |
# vi: set ft=ruby : | |
require "fileutils" | |
VAGRANTFILE_API_VERSION = "2" | |
Vagrant.configure(VAGRANTFILE_API_VERSION) do |config| |
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
# -*- mode: ruby -*- | |
# vi: set ft=ruby : | |
require "fileutils" | |
VAGRANTFILE_API_VERSION = "2" | |
Vagrant.configure(VAGRANTFILE_API_VERSION) do |config| |
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
#!/bin/sh | |
set -e # Exit script immediately on first error. | |
set -x # Print commands and their arguments as they are executed. | |
# Update Debian package index. | |
sudo apt-get update -y | |
# Install basic packages. |
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
PRJ_BASE_DIR="/usr/local/archive/projects" # Change this with your project parent directory. | |
PRJ_GROUP_ID="my.group.id" | |
PRJ_ARTIFACT_ID="myArtifact" | |
cd ${PRJ_BASE_DIR} | |
mvn org.ops4j:maven-pax-plugin:create-project -DgroupId=${PRJ_GROUP_ID} -DartifactId=${PRJ_ARTIFACT_ID} | |
# It allows to manage the OSGi runtime using the web-ui | |
mvn pax:import-bundle -DgroupId=org.apache.felix -DartifactId=org.apache.felix.webconsole -DimportTransitive=true -DimportOptional=true |
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
Maybe([1,2,3]).select {|e| e < 3} # Just([1, 2]) | |
Maybe([1,2,3]).select {|e| e < 0} # Nothing | |
Maybe([1,2,3]).select {|e| e < 3} # Just([1, 2]) | |
Either(Maybe([1,2,3]).select {|e| e < 3}) # Success([1, 2]) | |
Either(Maybe([1,2,3]).select {|e| e < 0}) # Failure(Nothing) |
NewerOlder