This file contains hidden or 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 python3 | |
# https://gist.github.com/edoz90/a441f2bdfc8c99c1999db0a3e8495fb6 | |
# Author: notdodo | |
try: | |
from PyPDF2 import PdfFileWriter, PdfFileReader | |
import click | |
except ModuleNotFoundError: | |
print("pip install pypdf2 click") | |
import sys |
This file contains hidden or 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 zsh | |
# parse arguments {{{ | |
zparseopts -A _opts -user: -dstsrv: -dstpath: | |
if [[ $? -ne 0 ]]; then | |
echo 'invalid arguments' | |
exit -1 |
This file contains hidden or 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 hidden or 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 hidden or 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 hidden or 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 hidden or 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 hidden or 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 hidden or 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
<?xml version="1.0" encoding="utf-8"?> | |
<resources> | |
<!-- google's material design colours from | |
http://www.google.com/design/spec/style/color.html#color-ui-color-palette --> | |
<!--reds--> | |
<color name="md_red_50">#FFEBEE</color> | |
<color name="md_red_100">#FFCDD2</color> | |
<color name="md_red_200">#EF9A9A</color> |
This file contains hidden or 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 |
NewerOlder