- Java
- set JAVACMD_OPTIONS="-Xmx2g" or other memory size when osmosis starts to complain.
- [osmium][12] for filtering and splitting .pbf files
- [osmosis][1] for splitting .pbf and creating .map files
- [mapsforge-map-writer][9] plugin for osmosis to create .map files
- [osmfilter][2] for filtering pois and ways
- [osmconvert][3] for converting .pbf and .o5m files
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
# Edit this configuration file to define what should be installed on | |
# your system. Help is available in the configuration.nix(5) man page | |
# and in the NixOS manual (accessible by running ‘nixos-help’). | |
{ config, pkgs, ... }: | |
{ | |
nix = { | |
package = pkgs.nixUnstable; | |
extraOptions = '' |
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/bash | |
echo "Install Imgproxy for Centos7"; | |
cd $HOME; | |
# Install and enable the EPEL RPM package on Amazon Linux 2 | |
yum install https://dl.fedoraproject.org/pub/epel/epel-release-latest-7.noarch.rpm -y; | |
# Install the Remi repository configuration package | |
yum install http://rpms.remirepo.net/enterprise/remi-release-7.rpm -y; |
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 | |
# taken from Matthew S. Dippel's blog: | |
# http://matthewdippel.blogspot.com/2018/10/howto-install-keybase-on-opensuse.html | |
# import package signature | |
TMFILE="$(mktemp)" | |
curl https://keybase.io/docs/server_security/code_signing_key.asc > "$TMFILE" | |
sudo rpm --import "$TMFILE" | |
rm "$TMFILE" |
- Go to the video url you want to download
- Open devtools into browser (
ctrl+shift+i
in firefox) - Show the network tab
- Reload tab with video and look into devtools
- Find line with text 1080p.m3u8 and copy url (like: https://edge-7.facecast.net/secure/VgTub-XSFSFFSFSF/DFSDGDSGDSGGD-pyJiOPQ/34634636/4367546/235235/1080p.m3u8)
- Download and install Streamlink
- Open console and execute:
streamlink hls://URL_FROM_STEP_5 best -o video1080p.ts
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
#include <stdio.h> | |
#include <stdlib.h> | |
#include <stdint.h> | |
#ifdef _MSC_VER | |
#include <intrin.h> /* for rdtscp and clflush */ | |
#pragma optimize("gt",on) | |
#else | |
#include <x86intrin.h> /* for rdtscp and clflush */ | |
#endif |
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/bash | |
# save this file as tailc then | |
# run as: $ tailc logs/supplier-matching-worker.log Words_to_highlight | |
file=$1 | |
if [[ -n "$2" ]]; then | |
color=' | |
// {print "\033[37m" $0 "\033[39m"} | |
/(WARN|WARNING)/ {print "\033[1;33m" $0 "\033[0m"} | |
/(ERROR|CRIT)/ {print "\033[1;31m" $0 "\033[0m"} |
NewerOlder