Updated 11/06/2017 07:32 AM
What are useful nvidia-smi queries for troubleshooting?
Query the VBIOS version of each device:
# -*- coding:utf-8 -*- | |
# | |
# Copyright (C) 2013 Carlos Jenkins <[email protected]> | |
# | |
# This program is free software: you can redistribute it and/or modify | |
# it under the terms of the GNU General Public License as published by | |
# the Free Software Foundation, either version 3 of the License, or | |
# (at your option) any later version. | |
# | |
# This program is distributed in the hope that it will be useful, |
Using MSYS2 with Visual Studio Code is extremely easy now thanks to the Shell Launcher extension by Tyriar.
First, install the extension and reload Visual Studio Code.
Then, open the settings.json
to edit your settings.
Add the field shellLauncher.shells.windows
. I recommend using autocompletion here so that all the default shells are added.
You should having something like this now:
#!/usr/bin/env python2 | |
from gi.repository import Gtk | |
class Grid(Gtk.Window): | |
widget_list = [] | |
WIDGET_SIZE = 140 | |
COLS = 1 | |
NUM = 100 | |
def calcule_columns(self, scroll, grid): |
#!/usr/bin/python3 | |
# -*- coding: utf-8 -*- | |
from PyQt5.QtCore import Qt | |
from PyQt5.QtGui import QImage, QPixmap, QPalette, QPainter | |
from PyQt5.QtPrintSupport import QPrintDialog, QPrinter | |
from PyQt5.QtWidgets import QLabel, QSizePolicy, QScrollArea, QMessageBox, QMainWindow, QMenu, QAction, \ | |
qApp, QFileDialog |
#!/bin/sh | |
BASEFOLDER=/home/vbox/backups | |
for VMNAME in $(VBoxManage list runningvms | cut -d ' ' -f1 | sed 's/"//g;') | |
do | |
echo "" | |
VBoxManage controlvm "$VMNAME" acpipowerbutton | |
echo "Waiting for VM "$VMNAME" to poweroff..." | |
until $(VBoxManage showvminfo --machinereadable "$VMNAME" | grep -q ^VMState=.poweroff.) |
# required: ffmpeg (e.g. from homebrew), terminal-notifier from https://github.com/alloy/terminal-notifier | |
# you can schedule this with launchd to run e.g. weekly | |
# Specify in seconds how long the script should record (default here is 1 hour). | |
seconds=3600 | |
# Date format for the recording file name | |
DATE=`date "+%d-%m-%y_%H-%M"` | |
# start ffmpeg recording |
<?php if(!isset($_COOKIE["comply_cookie"])) { ?> | |
<div id="cookies"> | |
<p>Our website uses cookies. By continuing we assume your permission to deploy cookies, as detailed in our <a href="yourPolicy">privacy policy</a>. | |
<span class="cookie-accept" title="Okay, close"><img src="img/close.png" alt="Close"/></span></p> | |
</div> | |
<?php } ?> |
<!DOCTYPE html> | |
<html> | |
<body> | |
<p>Clock start on page load and stop after 5 seconds:</p> | |
<p id="demo"></p> | |
<p>Clock start on page load and stop when you click button:</p> | |
<p id="demo1"></p> | |
<button onclick="myStartFunction()">Restart second clock</button> |
<!DOCTYPE html> | |
<html> | |
<head> | |
<meta charset="utf-8"> | |
<title>Chart.js Demo</title> | |
<style id="jsbin-css"> | |
img { | |
border: 1px dashed red; | |
margin-top: 20px; | |
} |