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
class Database(object): | |
db = None | |
def __init__(self): | |
self.db = MySQLdb.connect(host=os.environ.get('OPENSHIFT_MYSQL_DB_HOST'), | |
port=os.environ.get('OPENSHIFT_MYSQL_DB_PORT'), | |
user=os.environ.get('OPENSHIFT_MYSQL_DB_USERNAME'), | |
passwd=os.environ.get('OPENSHIFT_MYSQL_DB_PASSWORD'), | |
db="alexander", | |
charset='utf8') |
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
dism.exe /Online /Cleanup-Image /StartComponentCleanup /ResetBase/ |
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
Ryzen Blender Test | |
X5450 + GTX 750 ... 02:48.98 time | |
7700K + HD 630 ... 01:06.87 time | |
7700K + GTX 750 ... 00:52.59 time | |
Cinebench OpenGL | |
X5450 + GTX 750 ... 59.77 fps ... Ref. Match 99.6 % | |
7700K + HD 630 ... 43.38 fps ... Ref. Match 97.7 % | |
7700K + GTX 750 ... 103.71 fps ... Ref. Match 99.6 % | |
7700K@4.8 + GTX 750 ... 100.09 fps ... Ref. Match 99.6 % |
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
resetQueue(); | |
var PAUSE_INTERVAL = 500; //Wait for this many milliseconds between each request | |
function resetQueue() { | |
//Perform initial request | |
jQuery.get("https://store.steampowered.com/dynamicstore/userdata/", {t: new Date().getTime()}, function(data) { | |
// @xorbis: The data.rgIgnoredApps is now an object, should use Object.keys(data.rgIgnoredApps) instead. | |
var totalItems = data.rgIgnoredApps.length; | |
if (totalItems == 0) { | |
alert("There are no items in your Not Interested list."); |
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 +x | |
# Source: http://www.gabsoftware.com/tips/automatically-reconnect-to-your-vpn-on-linux/ | |
# Description: | |
# Make the script executable "chmod +x /path/to/the/script.sh | |
# Put the script in .profile or .bashrc so it can be run on user login: | |
# Example: echo "/path/to/the/script.sh start &" >> .bashrc | |
# The script can be bound to shortcut keys with these commands: | |
# /path/to/the/script.sh start # starts and monitors VPN connection |
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 | |
function cpufreq() { | |
cat /proc/cpuinfo | grep MHz | awk -F ': ' '{print $2}' | sort -u | |
} | |
function temperature() { | |
sensors | awk -F ':' '{print $2}' | awk '{print $1}' | grep "°C" | sed "s/+\|°C//g" | sort -u | |
} |
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
#!/usr/bin/python3 | |
# -*- coding: utf-8 -*- | |
import sys | |
import os | |
import logging | |
import git | |
logger = logging.getLogger('scratch') | |
logger.setLevel(logging.INFO) |
Link: https://github.com/itzg/docker-minecraft-server
Start:
cd ./MinecraftJavaServer/
docker compose up -d
File ./MinecraftJavaServer/data/eula.txt
contains eula=true