Skip to content

Instantly share code, notes, and snippets.

View pzhlkj6612's full-sized avatar

Mozi pzhlkj6612

View GitHub Profile
@bastman
bastman / docker-cleanup-resources.md
Created March 31, 2016 05:55
docker cleanup guide: containers, images, volumes, networks

Docker - How to cleanup (unused) resources

Once in a while, you may need to cleanup resources (containers, volumes, images, networks) ...

delete volumes

// see: https://github.com/chadoe/docker-cleanup-volumes

$ docker volume rm $(docker volume ls -qf dangling=true)

$ docker volume ls -qf dangling=true | xargs -r docker volume rm

@evanwill
evanwill / gitBash_windows.md
Last active June 19, 2025 07:30
how to add more utilities to git bash for windows, wget, make

How to add more to Git Bash on Windows

Git for Windows comes bundled with the "Git Bash" terminal which is incredibly handy for unix-like commands on a windows machine. It is missing a few standard linux utilities, but it is easy to add ones that have a windows binary available.

The basic idea is that C:\Program Files\Git\mingw64\ is your / directory according to Git Bash (note: depending on how you installed it, the directory might be different. from the start menu, right click on the Git Bash icon and open file location. It might be something like C:\Users\name\AppData\Local\Programs\Git, the mingw64 in this directory is your root. Find it by using pwd -W). If you go to that directory, you will find the typical linux root folder structure (bin, etc, lib and so on).

If you are missing a utility, such as wget, track down a binary for windows and copy the files to the corresponding directories. Sometimes the windows binary have funny prefixes, so

@wagenet
wagenet / glibc.md
Last active July 11, 2025 15:52
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.

@Darkhogg
Darkhogg / !RebootToOs.md
Last active May 9, 2025 20:40
"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.

@hygull
hygull / LICENSE KEY FOR SUBLIME TEXT 3 BUILD 3143.md
Last active March 28, 2025 22:48
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

@TolgaBagci
TolgaBagci / Cisco Packet Tracer 8.1.1 Download for Windows, Linux, and macOS.md
Last active July 14, 2025 09:34
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.

@shoogle
shoogle / qt-without-xcode.md
Last active May 30, 2025 02:19
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:

@bityob
bityob / Enable-OpenSSH-Client-Server-On-Windows.md
Last active March 11, 2025 22:23
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>dism /online /Add-Capability /CapabilityName:OpenSSH.Client~~~~0.0.1.0
@mohanpedala
mohanpedala / bash_strict_mode.md
Last active July 17, 2025 06:10
set -e, -u, -o, -x pipefail explanation