- The
bitbucketserver.exclude
setting in Bitbucket Server external service config additionally allows you to exclude repositories matched by a regular expression (so that they won't be synced).
This file contains 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
// +build ignore | |
package main | |
import ( | |
"bytes" | |
"encoding/json" | |
"fmt" | |
"io/ioutil" | |
"log" |
This file contains 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
"facebook/create-react-app", | |
"reduxjs/redux", | |
"GoogleChrome/puppeteer", | |
"trekhleb/javascript-algorithms", | |
"30-seconds/30-seconds-of-code", | |
"zeit/next.js", | |
"yarnpkg/yarn", | |
"storybooks/storybook", | |
"thedaviddias/Front-End-Checklist", | |
"NARKOZ/hacker-scripts", |
This file contains 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
[ec2-user@ip-10-0-0-145 zoekt-shared-disk]$ pwd | |
/data/zoekt-shared-disk | |
[ec2-user@ip-10-0-0-145 zoekt-shared-disk]$ du -m -a | sort -n | |
0 ./.trash | |
1 ./50.112.230.151%2FTEST%2F00benallen--gui_core_00_v15.00000.zoekt | |
1 ./50.112.230.151%2FTEST%2F057a3dd61f99517a3afea0051a49cb27994f94d--rslinux_v15.00000.zoekt | |
1 ./50.112.230.151%2FTEST%2F0ang3el--hibernate-injection-study_v15.00000.zoekt | |
1 ./50.112.230.151%2FTEST%2F0ovicero0--serverspeeder_install_v15.00000.zoekt | |
1 ./50.112.230.151%2FTEST%2F0ovicero0--serverspeeder_install_v15.00001.zoekt | |
1 ./50.112.230.151%2FTEST%2F0rkgrrr1--hello-world_v15.00000.zoekt |
This file has been truncated, but you can view the full file.
This file contains 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
[ec2-user@ip-10-0-0-145 zoekt-shared-disk]$ pwd | |
/data/zoekt-shared-disk | |
[ec2-user@ip-10-0-0-145 zoekt-shared-disk]$ du -m -a | sort -n | |
0 ./.trash | |
1 ./50.112.230.151%2FTEST%2F00benallen--gui_core_00_v15.00000.zoekt | |
1 ./50.112.230.151%2FTEST%2F00benallen--gui_core_00_v16.00000.zoekt | |
1 ./50.112.230.151%2FTEST%2F057a3dd61f99517a3afea0051a49cb27994f94d--rslinux_v15.00000.zoekt | |
1 ./50.112.230.151%2FTEST%2F057a3dd61f99517a3afea0051a49cb27994f94d--rslinux_v16.00000.zoekt | |
1 ./50.112.230.151%2FTEST%2F0ang3el--hibernate-injection-study_v15.00000.zoekt | |
1 ./50.112.230.151%2FTEST%2F0ang3el--hibernate-injection-study_v16.00000.zoekt |
This file contains 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
CREATE EXTENSION IF NOT EXISTS dblink; | |
CREATE OR REPLACE FUNCTION remote_exec(suffix text, query text) RETURNS void AS $$ | |
BEGIN | |
PERFORM dblink_exec('dbname=' || current_database() || suffix || ' password=MYPASSWORD user=' || current_user, query); | |
END; | |
$$ | |
LANGUAGE plpgsql; | |
CREATE OR REPLACE FUNCTION create_lsif_db() RETURNS void AS $$ |
This file contains 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 main | |
import ( | |
"fmt" | |
"time" | |
"golang.org/x/crypto/bcrypt" | |
) | |
func main() { |
This file contains 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
// replaceAllSubmatchFunc is the missing regexp.ReplaceAllSubmatchFunc; to use it: | |
// | |
// pattern := regexp.MustCompile(...) | |
// data = replaceAllSubmatchFunc(pattern, data, func(groups [][]byte) [][]byte { | |
// // mutate groups here | |
// return groups | |
// }) | |
// | |
// This snippet is MIT licensed. Please cite by leaving this comment in place. Find | |
// the latest version at: |
This file contains 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
{ | |
"annotations": { | |
"list": [ | |
{ | |
"builtIn": 1, | |
"datasource": "-- Grafana --", | |
"enable": true, | |
"hide": true, | |
"iconColor": "rgba(0, 211, 255, 1)", | |
"name": "Annotations & Alerts", |
cAdvisor doesn't monitor container restarts, but it does pass through / expose the Docker label container_restart_count
to you.
Unfortunately, being a label, you cannot really monitor it. And it looks like this isn't something cAdvisor plans to support soon, as the issue has been closed.
I am not proud of this and hope cAdvisor will support this more easily in the future, but, it does work well. Here is a Prometheus rule you can use to define this metric.