This file contains hidden or 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
# Maintainer: James Zhu <james.zhu.engineer at gmail.com> | |
pkgname=gog-mini-metro | |
pkgver=201712140945_gamma34 | |
pkgrel=1 | |
_gogrel=17216 | |
_gamename=${pkgname#gog-} | |
_gamename=${_gamename//-/_} |
This file contains hidden or 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
# apt install alien | |
# sudo mount LabVIEW2016.iso /media/iso | |
# Convert to debian packages | |
find /media/iso -name '*x86_64.rpm' -exec fakeroot alien -d -k --scripts {} + | |
find /media/iso -name '*noarch.rpm' -exec fakeroot alien -d -k --scripts {} + | |
# Install packages | |
find . -name '*.deb' -exec sudo alien -i --scripts {} + |
This file contains hidden or 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
def crc16(data: bytes, poly=0x8408): | |
''' | |
CRC-16-CCITT Algorithm | |
''' | |
data = bytearray(data) | |
crc = 0xFFFF | |
for b in data: | |
cur_byte = 0xFF & b | |
for _ in range(0, 8): | |
if (crc & 0x0001) ^ (cur_byte & 0x0001): |
This file contains hidden or 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
apt-get install alien | |
alien -d -k --scripts LABVIEW-2015-APPBUILD-1500.rpm | |
alien -d -k --scripts LABVIEW-2015-CORE-1500-1X8.rpm | |
alien -d -k --scripts LABVIEW-2015-DESKTOP-1500-.rpm | |
alien -d -k --scripts LABVIEW-2015-EXAMPLES-1500.rpm | |
alien -d -k --scripts LABVIEW-2015-EXE-1500-1X86.rpm | |
alien -d -k --scripts LABVIEW-2015-HELP-1500-1X8.rpm | |
alien -d -k --scripts LABVIEW-2015-PRO-1500-1X86.rpm | |
alien -d -k --scripts LABVIEW-2015-REF-1500-1X86.rpm |