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", |
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
#!/bin/bash | |
# Script to traverse a list of files and attempt to download if not present, and request Glacier thaw if unavailable. | |
# Can be run again once you suspect that Glacier has thawed your files. | |
# Ensure your "awsuser" account has the AWS credentials in place. | |
# Recommend running in nohup, this can be a long standing process. | |
# as root: nohup ./s3pullorthaw.bash > recovery.log 2>&1 & | |
# Set your bucket name | |
BUCKET=bucket_name |
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
<div class="progress"> | |
<div id="dynamic" class="progress-bar progress-bar-success progress-bar-striped active" role="progressbar" aria-valuenow="0" aria-valuemin="0" aria-valuemax="100" style="width: 0%"> | |
<span id="current-progress"></span> | |
</div> | |
</div> | |
<script> | |
var current_progress = 0; | |
var interval = setInterval(function() { | |
var progressUrl = '{% url "detail_tasks" object.uuid %}'; | |
fetch(progressUrl, { |
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
## this seems not good, but it's a shortcut | |
## you really shouldn't use this, k? | |
## uses the django make_random_password function | |
def unique_rand(): | |
from django.contrib.auth.models import User | |
from .models import Whatever | |
#while True: | |
for _ in range(10): | |
code = User.objects.make_random_password(length=50) |
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
yum info xorg-x11-server-Xvfb | |
sudo yum group install "Development Tools" | |
yum install qt | |
yum install qt4-devel-tools | |
yum install subversion | |
yum install qtwebkit | |
yum install qt5-qtwebkit | |
yum install qt5-qtbase-devel |