ในใฏใทใงใๆฎๅฝฑใใฆใฟใคใใซใใผใจใใใใชใใณใฐใใฆใใใใใค
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 | |
| IFS=',' | |
| location="${1}" | |
| function getWeatherJson() { | |
| curl -s "http://weather.livedoor.com/forecast/webservice/json/v1?city=${1}" \ | |
| | jq -r '. | "\(.publicTime),\(.location.city),\(.forecasts[0].telop),\(.forecasts[0].temperature.max.celsius),\(.forecasts[0].image.url)"' \ | |
| >~/.weather_${1}.json | |
| } |
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 | |
| city="${1}" | |
| IFS=',' | |
| mkdir -p "/tmp/${0##*/}" \ | |
| && tmpdir="/tmp/${0##*/}" \ | |
| && tmpfile="${tmpdir}/weather_${args}" | |
| function getWeather() { |
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 | |
| inc=$(ifconfig | awk -F':' '!/^lo/ && /^[a-z]/{print $1}') | |
| for i in ${inc[*]} | |
| do | |
| ifconfig "${i}" 2>/dev/null | awk '$1=="inet"{print "โ "$2}' | |
| done |
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 | |
| # | |
| # @(#) ในใฏใทใงใๆฎๅฝฑใใฆใฟใคใใซใใผใจใใใใชใใณใฐใใฆใใใใใค | |
| # | |
| # Author: | |
| # 844196 (@84____) | |
| # | |
| # 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
| [3m [23m [3m [23m[3m [23m[3m [23m[3m [23m[3m [23m | |
| [3m [23m [3m [23m | |
| [3m [23m [3m [23m[3m [23m[3m [23m[3m [23m[3m [23m | |
| [3m [23m[3m [23m [3m [23m[3m [23m | |
| [3m [23m [3m [23m [3m [23m | |
| [3m [23m [3m [23m[3m [23m[3m [23m[3m [23m[3m [23m | |
| [3m [23m [3m [23m[3m [23m[3m [23m[3m [23m[3m [23m |
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
| [3m [23m[3m [23m[3m [23m [3m [23m[3m [23m[3m [23m [3m [23m [3m [23m | |
| [3m [23m [3m [23m [3m [23m[3m [23m[3m [23m [3m [23m[3m [23m[3m [23m | |
| [3m [23m[3m [23m[3m [23m [3m [23m[3m [23m[3m [23m [3m [23m [3m [23m [3m [23m [3m [23m | |
| [3m [23m [3m [23m [3m [23m [3m [23m [3m [23m [3m [23m | |
| [3m [23m [3m [23m [3m [23m [3m [23m [3m [23m [3m [23m | |
| [3m [23m [3m [23m [3m [23m [3m [23m [3m [23m [3m [23m | |
| [3m [23m[3m [23m[3m [23m[3m [23m[3m [23m[3m [23m[3m [23m [3m [23m[3m [23m[3m [23m[3m [23m[3m [23m[3m [23m[3m [23m | |
| [3m [23m [3m [23m [3m [23m [3m [23m [3m [23m [3m [23m [3m [23m | |
| [3m [23m [3m [23m [3m [23m [3m [23m [3m [23m[3m [23m [3m [23m [3m [23m[3m [23m |
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
| require "formula" | |
| class Clangsay < Formula | |
| homepage "https://github.com/sasairc/clangsay" | |
| url "https://github.com/sasairc/clangsay/archive/v0.0.5.tar.gz" | |
| sha256 "35bd8c0eb61be8b26482b682ddaa4fc51f56bf644222a996bccd74613b1330a3" | |
| version "0.0.5" | |
| option "zsh-completion", "Install zsh completion" |
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 | |
| # | |
| # @(#) ใปใใใใชใใฎใใใชใใใฑใฒใใใ | |
| # | |
| P_m="232m" | |
| P_o="196m" | |
| P_t="18m" | |
| P_h="180m"; | |
| P_e="m" |
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
| Plugin.create :post_nowplaying_quodlibet do | |
| command(:post_nowplaying_quodlibet, | |
| name: 'ๅ็ไธญใฎๆฒใๆ็จฟใใ', | |
| condition: lambda{ |opt| true }, | |
| visible: true, | |
| role: :postbox) do |opt| | |
| msg = 'โช ' + `quodlibet --print-playing` + '#NowPlaying' | |
| Service.primary.update :message => msg | |
| end | |
| end |
