pdftk <file-path> cat 1-endleft output <file-path-rotated>
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
| <table cellpadding="0" cellspacing="0" border="0" style="background: none; border-width: 0px; border: 0px; margin: 0; padding: 0;"> | |
| <tr> | |
| <td colspan="2" style="padding-bottom: 4px; color: #F7751F; font-size: 16px; font-family: Arial, Helvetica, sans-serif;">Luca Rinaldi</td> | |
| </tr> | |
| <tr> | |
| <td colspan="2" style="color: #333333; font-size: 14px; font-family: Arial, Helvetica, sans-serif;"><i>Computer Science & Networking Student</i></td> | |
| </tr> | |
| <tr> | |
| <td colspan="2" style="color: #333333; font-size: 14px; font-family: Arial, Helvetica, sans-serif;"> | |
| <strong>University of Pisa and Scuola Superiore Sant'Anna</strong> |
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
| from pprint import PrettyPrinter | |
| from random import randrange | |
| def post_order(t, deep=0): | |
| if isinstance(t, dotdict): | |
| # is a node | |
| yield deep, t.value | |
| yield from post_order(t.left, deep+1) | |
| yield from post_order(t.right, deep+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
| tosca_definitions_version: tosca_simple_yaml_1_0 | |
| description: "TOSCA simple profile with wordpress, web server and mysql on the same\ | |
| \ server.\n" | |
| repositories: | |
| docker_hub: https://registry.hub.docker.com/ | |
| imports: | |
| - tosker: ../tosker-types.yaml |
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
| abs_path=$(cd "$(dirname "$0")" && pwd) |
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
| /* jshint esversion:6 */ | |
| function * main (){ | |
| console.log('Every time you need a sleep, you can yield the number of seconds that you want to wait..'); | |
| yield 5; | |
| console.log('..this will be executed 5 seconds later'); | |
| yield 1.5; | |
| console.log('[long wait]'); | |
| yield 10; | |
| console.log('..and, this after 10 seconds.\n'); |
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
| -module(hot_change). | |
| -export([start/0, send/1, update_code/1]). | |
| start() -> | |
| F = fun(Str) -> string:lowercase(Str) end, | |
| register(hot_change_server, spawn(fun () -> loop(F) end)). | |
| loop(F) -> | |
| receive | |
| {request, Pid, Q} -> |
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 | |
| ### | |
| # Send message to your telegram chat when something happens to a remote server. | |
| # Before use the sript update the TOKEN and CHAT_ID variable with your data. | |
| # | |
| # Usage: | |
| # tsend 'ALL DONE!' | |
| # cat myfile.txt | tsend | |
| # | |
| # license: MIT |
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 .inputrc configuration file to enable a zsh-like completion mechanism in bash. | |
| # Features: | |
| # - Press tab to cycle throw all possible completions in a case-insensitive fashion. | |
| # - Use the up and down arrow to search throw the history for all matches of the typed string. | |
| # | |
| # DISCLAIMER: Use only when you cannot install zsh :) | |
| # | |
| # Put together by lucarin91. | |
| ## |