docker images -qf dangling=true | xargs docker rmi
docker volume ls -f dangling=true
docker volume rm $(docker volume ls -qf dangling=true)
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
var USER_BITBUCKET='XXX', | |
ORG_BITBUCKET='XXX', | |
PASS_BITBUCKET='XXX', | |
USER_GITHUB='XXX', | |
ORG_GITHUB='XXX', | |
PASS_GITHUB='XXX'; | |
var request = require('request'); | |
var listrepos = []; |
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 | |
USER=XXX | |
ORG=XXX | |
PASS=XXX | |
REPO=XXX | |
# Delete default labels | |
curl --user "$USER:$PASS" --include --request DELETE "https://api.github.com/repos/$ORG/$REPO/labels/bug" | |
# curl --user "$USER:$PASS" --include --request DELETE "https://api.github.com/repos/$ORG/$REPO/labels/duplicate" | |
# curl --user "$USER:$PASS" --include --request DELETE "https://api.github.com/repos/$ORG/$REPO/labels/enhancement" |
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
Users: | |
curl -u "XXXX" -s https://api.github.com/users/malkab/repos\?per_page\=1000 | perl -ne 'print "$1\n" if (/"ssh_url": "([^"]+)/)' | xargs -n 1 git clone | |
ORGS: | |
curl -u "XXXX" -s https://api.github.com/orgs/geographicags/repos\?per_page\=1000 | perl -ne 'print "$1\n" if (/"ssh_url": "([^"]+)/)' | xargs -n 1 git clone |
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
var request = require("request"); | |
var api_key = "XXXX"; | |
var url = "https://{{account}}.carto.com/api/v2/sql/job"; | |
var options = { | |
method: "POST", | |
url: url, | |
qs: { | |
"api_key": api_key |
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
<div class="cartodb-popup v2"> | |
<a href="#close" class="cartodb-popup-close-button close">x</a> | |
<div class="cartodb-popup-content-wrapper"> | |
<div class="cartodb-popup-content"> | |
<% if (data.terrunit!='no_unit') { %> | |
<h4><%= data.terrunit=='delegaciones' ? Utils.tr('Delegación') : Utils.tr('Colonia') %></h4> | |
<p><%= data.name %><p> | |
<% } %> | |
<h4><%= data.indicator %></h4> | |
<p class="big"><%= Utils.nbf(data.do_value,{decimals: 0}) %></p> |
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
--- | |
-- HOW TO access to a private tabled in CARTO and get rid of NAMED MAPS. | |
-- It uses SECURITY DEFINER | |
-- tesla_supercharger is a privated table . | |
--- | |
CREATE table user_tokens (token text, user_id integer, expiration timestamp); | |
INSERT INTO user_tokens VALUES ('eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJzdWIiOiIxMjM0NTY3ODkwIiwibmFtZSI6IkpvaG4gRG9lIiwiYWRtaW4iOnRydWV9.TJVA95OrM7E2cBab30RMHrHDcEfxjoYZgeFONFh7HgQ',1,now()+'10 years'::interval); | |
---------- |
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
<html> | |
<head> | |
<meta charset="UTF-8"> | |
<meta name="viewport" content="width=device-width, initial-scale=1.0"> | |
<meta http-equiv="X-UA-Compatible" content="ie=edge"> | |
<title>Document</title> | |
<script src="https://cartodb-libs.global.ssl.fastly.net/cartodb.js/v3/3.15/cartodb.js"></script> | |
<link rel="stylesheet" href="https://cartodb-libs.global.ssl.fastly.net/cartodb.js/v3/3.15/themes/css/cartodb.css" /> | |
<link rel="stylesheet" href="main.css" /> |
OlderNewer