Skip to content

Instantly share code, notes, and snippets.

Avatar

Dave Vasilevsky vasi

View GitHub Profile
View NBImageInfo.plist
<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE plist PUBLIC "-//Apple Computer//DTD PLIST 1.0//EN" "http://www.apple.com/DTDs/PropertyList-1.0.dtd">
<plist version="1.0">
<dict>
<key>Architectures</key>
<array>
<string>ppc</string>
</array>
<key>BackwardCompatible</key>
<false/>
@vasi
vasi / rpi-bullseye-default.txt
Created Jan 19, 2022
Raspberry Pi OS bullseye Desktop default packages
View rpi-bullseye-default.txt
alacarte
apt-listchanges
arandr
binutils-arm-linux-gnueabihf
cifs-utils
console-setup
crda
debconf-utils
debian-reference-en
dillo
@vasi
vasi / mac106.xml
Created Jan 1, 2022
Mac OS X 10.6 Snow Leopard libvirt XML
View mac106.xml
<domain xmlns:qemu="http://libvirt.org/schemas/domain/qemu/1.0" type="kvm">
<name>mac106</name>
<uuid>138e6034-520e-40a4-bc1a-7cd45a894450</uuid>
<metadata>
<libosinfo:libosinfo xmlns:libosinfo="http://libosinfo.org/xmlns/libvirt/domain/1.0">
<libosinfo:os id="http://apple.com/macosx/10.6"/>
</libosinfo:libosinfo>
</metadata>
<memory unit="KiB">2097152</memory>
<currentMemory unit="KiB">2097152</currentMemory>
@vasi
vasi / pkg-reasons.py
Last active Dec 31, 2021
Show installation reason for each dnf package
View pkg-reasons.py
#!/usr/bin/env python
import dnf
import libdnf
base = dnf.Base()
base.fill_sack()
for pkg in base.sack.query().installed():
reason_enum = base.history.swdb.resolveRPMTransactionItemReason(pkg.name, pkg.arch, 0)
@vasi
vasi / touchegg.conf
Created Dec 12, 2021
KDE touchegg configuration
View touchegg.conf
<touchégg>
<settings>
<!--
Delay, in milliseconds, since the gesture starts before the animation is displayed.
Default: 150ms if this property is not set.
Example: Use the MAXIMIZE_RESTORE_WINDOW action. You will notice that no animation is
displayed if you complete the action quick enough. This property configures that time.
-->
<property name="animation_delay">150</property>
@vasi
vasi / rpi-default-keepers
Created Jul 17, 2021
Raspberry Pi OS 10 packages
View rpi-default-keepers
alacarte
apt-listchanges
arandr
binutils-arm-linux-gnueabihf
cifs-utils
console-setup
debconf-utils
debfoster
debian-reference-en
dillo
View winget.export
{
"$schema" : "https://aka.ms/winget-packages.schema.2.0.json",
"CreationDate" : "2021-07-03T03:10:30.869-00:00",
"Sources" :
[
{
"Packages" :
[
{
"PackageIdentifier" : "OpenWhisperSystems.Signal"
@vasi
vasi / keepers
Created Jul 2, 2021
NetBSD 9.2 keepers
View keepers
# Basic tools
zsh
sudo
nano
git
# pkgsrc
pkg_chk
lintpkgsrc
ruby # for orphans script
@vasi
vasi / .zshrc
Created Jul 2, 2021
zshrc local history with arrows
View .zshrc
up-line-or-local-history() {
zle set-local-history 1
zle up-line-or-history
zle set-local-history 0
}
zle -N up-line-or-local-history
down-line-or-local-history() {
zle set-local-history 1
zle down-line-or-history
zle set-local-history 0
@vasi
vasi / 1-current
Last active Jun 12, 2021
pkg_info -u
View 1-current
pkg_chk-2.0.11
lintpkgsrc-4.96nb1
zsh-5.8nb2
sudo-1.9.7
nano-5.7
git-2.31.1
ruby-2.6.7
the_silver_searcher-2.2.0
firefox-88.0.1nb1
pstree-2.39