Skip to content

Instantly share code, notes, and snippets.

@buptczq
buptczq / detect.py
Last active January 30, 2022 06:39
QQ URL detect
import hashlib
import struct
import sqlite3
def md5hash(buf):
return hashlib.md5(buf.encode("utf-16")[2:]).digest()
def md5cmp(buf, postfix, a1, a2, a3, a4):
if len(buf) < postfix:
return False
Serial Keys:
FU512-2DG1H-M85QZ-U7Z5T-PY8ZD
CU3MA-2LG1N-48EGQ-9GNGZ-QG0UD
GV7N2-DQZ00-4897Y-27ZNX-NV0TD
YZ718-4REEQ-08DHQ-JNYQC-ZQRD0
GZ3N0-6CX0L-H80UP-FPM59-NKAD4
YY31H-6EYEJ-480VZ-VXXZC-QF2E0
ZG51K-25FE1-H81ZP-95XGT-WV2C0
VG30H-2AX11-H88FQ-CQXGZ-M6AY4
msys2 vs msys vs msysgit
MinGW doesn't provide a linux-like environment, that is MSYS(2) and/or Cygwin
Cygwin is an attempt to create a complete UNIX/POSIX environment on Windows.
MinGW is a C/C++ compiler suite which allows you to create Windows executables - you only
need the normal MSVC runtimes, which are part of any normal Microsoft Windows installation.
MinGW provides headers and libraries so that GCC (a compiler suite,
not just a "unix/linux compiler") can be built and used against the Windows C runtime.
@mohanpedala
mohanpedala / bash_strict_mode.md
Last active November 19, 2024 17:47
set -e, -u, -o, -x pipefail explanation
@bityob
bityob / Enable-OpenSSH-Client-Server-On-Windows.md
Last active November 4, 2024 18:50
Enable SSH Client/Server with OpenSSH on Windows

How to enable ssh on Windows?

Tested on Windows Version 10.0.17755.1

  • Run cmd as admin

  • Install OpenSSH.Client - dism /online /Add-Capability /CapabilityName:OpenSSH.Client~~~~0.0.1.0

C:\WINDOWS\system32&gt;dism /online /Add-Capability /CapabilityName:OpenSSH.Client~~~~0.0.1.0
@shoogle
shoogle / qt-without-xcode.md
Last active August 13, 2024 09:48
Qt without XCode - how to use Qt Creator for macOS software development without installing XCode

Qt without Xcode

How to use Qt Creator for software development on macOS without having to install Xcode

Justification

Qt refuses to install on macOS unless Apple's Xcode is installed beforehand. This is unfortunate because:

@TolgaBagci
TolgaBagci / Cisco Packet Tracer 8.1.1 Download for Windows, Linux, and macOS.md
Last active November 6, 2024 17:04
Cisco Packet Tracer 8.1.1 Download for Windows, Linux, and macOS

Cisco Packet Tracer 8.1.1 Download for Windows, Linux, and macOS

You can download the Packet Tracer 8.1 simulator program to your computer from the Downloads section after you create your Cisco Netacad account.

If you do not have a Cisco Netacad account, you can download Packet Tracer 8.1 for free by browsing the article below.

Read Article: Cisco Packet Tracer 8.1 Download

What’s new in Packet Tracer 8.1?

Cisco Packet Tracer 8.1 enables Packet Tracer Tutored Activities (PTTA), a new type of activity that provides hints to the learner along the way if they want them. Packet Tracer Tutored Activities (PTTA) are designed to provide a more personalized and equitable learning experience. In addition, Cisco Packet Tracer 8.1 includes bug fixes and improvements on accessibility, usability, and security.

@hygull
hygull / LICENSE KEY FOR SUBLIME TEXT 3 BUILD 3143.md
Last active December 16, 2023 19:30
LICENSE KEY FOR SUBLIME TEXT 3 BUILD 3143

STEPS

  • Click on Help menu

  • Select Enter License

  • Then paste given KEY given at bottom

  • Finally click on Use License

@Darkhogg
Darkhogg / !RebootToOs.md
Last active September 28, 2024 13:58
"Reboot to {OS}" scripts for rEFInd Next Boot selection

Reboot to {OS}

This a collection of notes and files used in my quest to create "Reboot to Windows" and "Reboot to Linux" scripts (and desktop shortcuts) for Linux and Windows respectively that automatically reboot my system and instruct rEFInd to auto-select the appropriate OS entry.

General Information

The key for achieving this is to modify the EFI Variable PreviousBoot with GUID 36d08fa7-cf0b-42f5-8f14-68df73ed3740, which rEFInd uses to store the last entry selected in the menu and, if using the + default entry, will be used to select the default OS. By doing this, we trick rEFInd into booting the OS we choose without having to be physically there to press the keyboard.

@wagenet
wagenet / glibc.md
Last active September 12, 2024 14:58
glibc Versions

glibc Versions

List of oldest supported version of top 10 Linux Distros and their glibc version according to distrowatch.com.

Summary

Out of all versions with published EOLs, 2.12 is the oldest glibc still active, found in CentOS 6.8.

If CentOS 6 and 7 are eliminated, the oldest glibc is 2.23 in Ubuntu and Slackware.