author | date | title |
---|---|---|
Tabea Kischka |
2018-06-26 |
BASH Cheatsheet |
# to list files that already exist on the server
<?php | |
// Your PHP code here | |
?> | |
<!doctype html> | |
<html lang="en"> | |
<head> | |
<meta charset="UTF-8"> | |
<meta name="viewport" content="width=device-width, user-scalable=no, initial-scale=1.0, maximum-scale=1.0, minimum-scale=1.0"> | |
<meta http-equiv="X-UA-Compatible" content="ie=edge"> |
# csv sort and remove column | |
sort -h --field-separator=',' 374160.csv | cut -d, -f6 --complement | less | |
# shell print for download csv file | |
sort -h --field-separator=',' 1532881.csv | cut -d, -f6 --complement | perl -pe 's/((?<=,)|(?<=^)),/ ,/g;' | column -t -s, | less -S | |
# run funtion in remote machine | |
ssh ${machine} "$(typeset -f function_name); function_name" | |
# kill process |
A list of useful commands for the FFmpeg command line tool.
Download FFmpeg: https://www.ffmpeg.org/download.html
Full documentation: https://www.ffmpeg.org/ffmpeg.html
docker run -d --name=landoop -p 127.0.0.1:8081-8083:8081-8083 -p 127.0.0.1:9581-9585:9581-9585 -p 127.0.0.1:9092:9092 -p 127.0.0.1:3030:3030 -p 127.0.0.1:2181:2181 -e ADV_HOST=127.0.0.1 landoop/fast-data-dev
/*------------------------------------------------------------------------ | |
File : Export table headers | |
Purpose : Gist for exporting table headers in Progress OpenEdge | |
Description : | |
Author(s) : Johan Vergeer. With thanks to TheDropper at | |
https://stackoverflow.com/questions/44204335/how-to-add-column-name-while-export-csv-in-progress-4gl#44205839 | |
Created : 6 december 2017 | |
----------------------------------------------------------------------*/ | |
DEF VAR hTable AS HANDLE NO-UNDO. |
/** | |
* Calculates the next fibonacci sequence. | |
* | |
* To properly implement a Fibonacci sequence, | |
* we need to know the Mathematical formula first, and that is: | |
* | |
* F<sub>n</sub> = F<sub>n-1</sub> + F<sub>n-2</sub> | |
* | |
* The above formula basically reads as this: | |
* The next sequence (Fn) is the sum of the |