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/zsh | |
| # GistID: 45209142f7aa3ac3710417c2de58cdf1 | |
| # Sync one way opml file from ttrss server to newsbeuter | |
| opml_file=${NEWS}.opml | |
| news_file=$NEWS | |
| ttrss_server=$TTRSS_SERVER | |
| #sync_time=604800 | |
| sync_time=10 |
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 | |
| # source: https://flx.ai/2019/bose-qc35ii-linux | |
| # GistID: 3045abbf25bef7742047835e6aaa4788 | |
| actions="toggle|prev|next|forw|back" | |
| # Check for correct usage | |
| if [[ $# -ne 1 || ! "$1" =~ ^($actions)$ ]]; then | |
| echo "Usage: " | |
| echo "${0##*/} [${actions[*]}]" |
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 | |
| # Simple route request with openstreetmap | |
| # depend on vimb, curl and jq | |
| # GistID: 46f34adbcf7f969d2c4b60daae644b60 | |
| vimb https://www.openstreetmap.org/directions\?engine\=fossgis_osrm_car\&route\=$(curl https://nominatim.openstreetmap.org/search\?q\=$1\&format\=json | jq -r '.[0].lat + "%2C" + .[0].lon')%3B$( curl https://nominatim.openstreetmap.org/search\?q\=$2\&format\=json | jq -r '.[0].lat + "%2C" + .[0].lon' ) |
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 | |
| # Popup i3 window to display a route on openstreetmap | |
| # dependency: curl, jq, webapp | |
| # GistID: e41f26f331bb75e9fb532135d984ca77 | |
| FROM=$1 | |
| DEST=$2 | |
| # set HOME_ADDR as glabal env var for your address |
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
| # custom remote command prompt | |
| [ ! -f "$ZSH/custom/themes/agnoster.zsh-theme" ] && curl -L -s --output "$ZSH/custom/themes/agnoster.zsh-theme" https://gist.github.com/tyjak/9f9569d9fc118c88ad3a758fc2b26502/raw/agnoster.zsh-theme |
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
| curl https://raw.githubusercontent.com/thestinger/termite/master/termite.terminfo | sudo tic -x - |
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 | |
| # Popup i3 window to display an adress to openstreetmap | |
| # dependency: curl, jq, webapp | |
| # GistID: 4869fafa858c3540f9471f384a0d79bb | |
| LOCATION=${@:-$(xsel -o)} | |
| URI="https://www.openstreetmap.org/#map=18/$(curl -G --data-urlencode "q=$LOCATION" --data "format=json" https://nominatim.openstreetmap.org/search | jq -r '.[0].lat + "/" + .[0].lon')" | |
| webapp \"$URI\" route 1000 800 |
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
| # install and configure oh-my-zsh | |
| # GistID: a575ab9f07e5e448ba9584061b3694ca | |
| # configure | |
| echo " | |
| #--move this block in begining-- | |
| ZSH_THEME=\"agnoster\" | |
| # custom prompt | |
| [ ! -f \"\$ZSH/custom/themes/agnoster.zsh-theme\" ] && curl -L -o \"\$ZSH/custom/themes/agnoster.zsh-theme\" https://gist.github.com/tyjak/9f9569d9fc118c88ad3a758fc2b26502/raw/agnoster.zsh-theme |
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"?> | |
| <opml version="2.0"> | |
| <head> | |
| <title>gPodder subscriptions</title> | |
| <dateCreated>Sat, 03 Dec 2022 10:37:23 +0100</dateCreated> | |
| </head> | |
| <body> | |
| <outline title="Les Cours du Collège de France" text="Les grandes voix du savoir pour tous. Rendez-vous sur l'application Radio France pour découvrir tous les autres épisodes." xmlUrl="http://radiofrance-podcast.net/podcast09/rss_11921.xml" type="rss"/> | |
| <outline title="Le Cours de l'histoire" text="Mieux comprendre quotidiennement le lien étrange qui nous unit au passé. | |
| Du lundi au vendredi de 9h à 10h. Rendez-vous sur l'application Radio France pour découvrir tous les autres épisodes." xmlUrl="http://radiofrance-podcast.net/podcast09/rss_10076.xml" type="rss"/> |