Skip to content

Instantly share code, notes, and snippets.

Avatar

Zoltan Arvai azbesthu

  • Hungary, Szeged
View GitHub Profile
@azbesthu
azbesthu / totp.ps1
Created Jan 7, 2022 — forked from jonfriesen/totp.ps1
TOTP Client for PowerShell
View totp.ps1
#requires -version 2
<#
.SYNOPSIS
Time-base One-Time Password Algorithm (RFC 6238)
.DESCRIPTION
This is an implementation of the RFC 6238 Time-Based One-Time Password Algorithm draft based upon the HMAC-based One-Time Password (HOTP) algorithm (RFC 4226). This is a time based variant of the HOTP algorithm providing short-lived OTP values.
.NOTES
Version: 1.0
View kafka installation and systemd
cd /opt
wget http://apache-mirror.rbc.ru/pub/apache/kafka/0.10.1.0/kafka_2.11-0.10.1.0.tgz
tar xvzf kafka_2.11-0.10.1.0.tgz
ln -s kafka_2.11-0.10.1.0/ kafka
vi /etc/systemd/system/kafka-zookeeper.service
[Unit]
Description=Apache Zookeeper server (Kafka)
Documentation=http://zookeeper.apache.org
View gist:8283115
diff --git a/tools/buildscripts/repack_locales.py b/tools/buildscripts/repack_locales.py
index 51edb54..360ef37 100755
--- a/tools/buildscripts/repack_locales.py
+++ b/tools/buildscripts/repack_locales.py
@@ -162,6 +162,10 @@ def DoMain(argv):
help="Print the expected output file list, then exit.")
parser.add_option("-x", action="store", dest="int_dir",
help="Intermediate build files output directory.")
+ parser.add_option("-g", action="store", dest="grit_dir",
+ help="Placeholder for unused option.")
View coverage_result_processor.py
#!/usr/bin/env python
# sudo apt-get install python-mysqldb
import csv
import getopt
import glob
import MySQLdb as mdb
import os
import readline
View coverage_result_processor.py
#!/usr/bin/env python
import csv
import getopt
import glob
import MySQLdb as mdb
import os
import readline
import sys
import time
View coverage_result_processor.py
#!/usr/bin/env python
import csv
import getopt
import glob
import MySQLdb as mdb
import os
import readline
import sys
import time
View coverage_result_processor.py
#!/usr/bin/env python
import csv
import getopt
import glob
import MySQLdb as mdb
import os
import readline
import sys
import time