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
accuracy | |
assists | |
bestAssists | |
bestCaptures | |
bestConfirmed | |
bestDamage | |
bestDeaths | |
bestDefends | |
bestDefuses | |
bestDenied |
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
@echo off | |
rem (c) 2019 M. Busche, elpatron@mailbox.org | |
echo " _ _ _ " | |
echo " | | | | | | " | |
echo " __ _ __| |_ _ _ __ __| | __ _| |_ ___ " | |
echo " / _` |/ _` | | | | '_ \ / _` |/ _` | __/ _ \" | |
echo "| (_| | (_| | |_| | |_) | (_| | (_| | || __/" | |
echo " \__,_|\__,_|\__,_| .__/ \__,_|\__,_|\__\___|" | |
echo " | | " |
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/sh | |
# export URL before launch: eg. `export URL=https://releases.mattermost.com/5.14.0/mattermost-5.14.0-linux-amd64.tar.gz` | |
# The script assumes, that Mattermost is installed in ~/mattermost | |
cd /tmp | |
wget $URL | |
tar -xf mattermost*.gz --transform='s,^[^/]\+,\0-upgrade,' | |
sudo systemctl stop mattermost | |
cd ~/ | |
cp -ra mattermost/ mattermost-back-$(date +'%F-%H-%M')/ | |
find mattermost/ mattermost/client/ -mindepth 1 -maxdepth 1 \! \( -type d \( -path mattermost/client -o -path mattermost/client/plugins -o -path mattermost/config -o -path mattermost/logs -o -path mattermost/plugins -o -path mattermost/data \) -prune \) | sort | sudo xargs rm -r |
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
import re | |
import os | |
import io | |
import requests | |
import subprocess | |
try: | |
os.remove('index.html') | |
except: | |
pass |
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
#!/platform/python/bin/python | |
import datetime | |
from dateutil.parser import parse as parse_date | |
import sys | |
import cachetclient.cachet as cachet | |
import json | |
ENDPOINT = 'http://status/api/v1' | |
API_TOKEN = '<%= @cachethq_key %>' |
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
# converts iso encoded text file to utf-8 | |
import codecs | |
def convertfromiso(iso_filename, uft8_filename): | |
data = codecs.open(iso_filename, 'r', 'iso-8859-1').read() | |
codecs.open(uft8_filename, 'w', 'utf-8').write(data) | |
def main(): | |
convertfromiso('isofile.txt', 'uft8file.txt') |
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
Imports System.IO | |
Imports Microsoft.VisualBasic.FileIO | |
Module csv2array | |
Public Function _csv2array(ByVal sFilename As String) As Object | |
Dim dest As List(Of String) = New List(Of String) | |
Dim src As List(Of String) = New List(Of String) | |
Using csvParser As TextFieldParser = New TextFieldParser(sFilename) | |
csvParser.CommentTokens = New String() {"#"} |
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
@echo off | |
SETLOCAL | |
set PLINK="C:\Program Files (x86)\PuTTY\plink.exe" | |
set LCMS_TARGET=root@X.Y.Z.A | |
set LCMS_TARGET_PASS= | |
set PAUSE_TIMEOUT=60 | |
:START | |
FOR /F "skip=1" %%D IN ('WMIC OS GET LocalDateTime') DO ( SET LDATE=%%D & GOTO GOT_LDATE ) |
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
# converts iso encoded text file to utf-8 | |
import codecs | |
def convertfromiso(iso_filename, uft8_filename): | |
data = codecs.open(iso_filename, 'r', 'iso-8859-1').read() | |
codecs.open(uft8_filename, 'w', 'utf-8').write(data) | |
def main(): | |
convertfromiso('isofile.txt', 'new-utf8-file.txt') |
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
; See https://gist.github.com/elpatron68/cb1f9f69577e33998df7b4fbf2e1f8c7 | |
#pragma compile(Out, ..\SaveConnectedDrivesList.exe) | |
#pragma compile(LegalCopyright, "© Markus Busche elpatron@mailbox.org") | |
#pragma compile(Icon, configure-2.ico) | |
#include <AutoItConstants.au3> | |
#include <MsgBoxConstants.au3> | |
#include <File.au3> | |
$mAnswer = MsgBox (4, "ReCoNe" ,"Are all network drives connected at this moment?") |