Skip to content

Instantly share code, notes, and snippets.

View teocci's full-sized avatar

Teocci teocci

View GitHub Profile
teocci /
Created May 1, 2020 13:19 — forked from CHEF-KOCH/
How to activate Office 2019
  • Download the Retail Office 2019 images (or standalone) (MS currently does not provide VL images for Windows [only MAcOS])
  • Go to and download it
  • Install Office 2019 (Retail)
  • Use C2R-R2V (start the batch with admin rights)
  • Wait until all is finished
  • Activate Office with KMSAuto.Net, MSToolkit, batch scripts or manually like you would do with a normal KMS version
@echo off
Title Converter Office 2016 Retail to Volume
echo Press Enter to start VL-Conversion...
for /f "tokens=6 delims=[]. " %%G in ('ver') do set win=%%G
teocci / Activate Office 2019 for macOS
Created March 4, 2020 08:28 — forked from zthxxx/Activate Office 2019 for macOS
crack activate office on mac with license file

Activate MS Office 2019/2016 for macOS - Microsoft_Office_2019_VL_Serializer

Office 2019 above


Note that Office2019 DO NOT support activate via simple copy/paste plist license file which is the simplest way to activate Office 2016. Fortunately, you can also use the VL Serializer tool, just install Office 2019 and Serializer, then run Serializer to activate.


teocci /
Created June 7, 2019 05:47 — forked from yavor87/
Record, play and visualize raw audio data in Android
ShortBuffer mSamples; // the samples to play
int mNumSamples; // number of samples to play
void playAudio() {
new Thread(new Runnable() {
public void run() {
int bufferSize = AudioTrack.getMinBufferSize(SAMPLE_RATE, AudioFormat.CHANNEL_OUT_MONO,
if (bufferSize == AudioTrack.ERROR || bufferSize == AudioTrack.ERROR_BAD_VALUE) {
* Copyright (c) 2014 by Bart Kiers
* Permission is hereby granted, free of charge, to any person
* obtaining a copy of this software and associated documentation
* files (the "Software"), to deal in the Software without
* restriction, including without limitation the rights to use,
* copy, modify, merge, publish, distribute, sublicense, and/or sell
* copies of the Software, and to permit persons to whom the
* Software is furnished to do so, subject to the following
teocci /
Created August 1, 2017 08:24 — forked from mike-zhang/
a simple tcp client(python code)
#! /usr/bin/python
# a simple tcp client
import socket
sock = socket.socket(socket.AF_INET, socket.SOCK_STREAM)
sock.connect(('', 12345))
sock.send(raw_input("Please input : "))
print sock.recv(1024)
teocci /
Created August 1, 2017 08:24 — forked from mike-zhang/
a simple udp client (python code)
#! /usr/bin/python
# a simple udp client
import socket,time,traceback
client = socket.socket(socket.AF_INET, socket.SOCK_DGRAM)
dstHost = ('', 12345)
while True:
print time.time(),' : send success'
teocci /
Created August 1, 2017 08:20 — forked from mike-zhang/
a simple tcp server (python code)
#! /usr/bin/python
# a simple tcp server
import socket,os
sock = socket.socket(socket.AF_INET, socket.SOCK_STREAM)
sock.bind(('', 12345))
while True:
connection,address = sock.accept()
buf = connection.recv(1024)
print buf
teocci /
Created August 1, 2017 08:20 — forked from mike-zhang/
a simple udp server (python code)
#! /usr/bin/python
# a simple udp server
import socket, traceback
s = socket.socket(socket.AF_INET, socket.SOCK_DGRAM)
s.setsockopt(socket.SOL_SOCKET, socket.SO_REUSEADDR, 1)
while 1:
teocci /
Created August 1, 2017 08:19 — forked from mike-zhang/
#! /usr/bin/python
import nmap
# python-nmap url :
nm = nmap.PortScanner()
nm.scan(hosts='', arguments='-n -p 161 -sU ')
hosts_list = [(x, nm[x][u'udp'][161]['state']) for x in nm.all_hosts()]
#print nm.all_hosts()
#print nm[u''][u'udp'][161]['state']