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
| package = "lua-requests" | |
| version = "1.2-1" | |
| source = { | |
| url = "git://github.com/JakobGreen/lua-requests.git" | |
| } | |
| description = { | |
| summary = "HTTP requests made easy! Support for HTTPS, Basic Auth, Digest Auth. HTTP response parsing has never been easier!", | |
| detailed = [[Similar to Requests for python. | |
| The goal of lua-requests is to make HTTP simple and easy to use. | |
| Currently HTTPS, Basic Authentication, and Digest Authentication are supported. |
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 | |
| docker rmi $(docker images -a -q) | |
| docker system prune -a -f | |
| sudo /etc/init.d/docker stop | |
| sudo rm -rf /var/lib/docker | |
| sudo /etc/init.d/docker start |
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 | |
| docker images --format "{{.Repository}}:{{.Tag}}" | awk '!/none/' | xargs -I {} docker pull {} |
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
| local function tblmerge(t1, t2) | |
| local r = {} | |
| for k, v in next, t1 do | |
| r[k] = v | |
| end | |
| for k, v in next, t2 do | |
| r[k] = v | |
| end | |
| return r | |
| end |
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
| local function table_copy(t) | |
| local r = {} | |
| for k, v in next, t do | |
| r[k] = v | |
| end | |
| return r | |
| end |
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
| local function table_keys(t) | |
| local keys = {} | |
| for k in pairs(t) do | |
| table.insert(keys, k) | |
| end | |
| return keys | |
| end |
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
| local function split_with_comma(str) | |
| local fields = {} | |
| for field in str:gmatch('([^,]+)') do | |
| fields[#fields+1] = field | |
| end | |
| return fields | |
| end |