Skip to content

Instantly share code, notes, and snippets.

View fhdk's full-sized avatar
💭
I may be slow to respond.

Frede H fhdk

💭
I may be slow to respond.
View GitHub Profile
@fhdk
fhdk / vb6_enums.txt
Created August 12, 2021 08:25
vb6 enums
//Visual Basic runtime objects and procedures
//Version: 6.0
VBRUN;
GUID = {EA544A21-C82D-11D1-A3E4-00A0C90AEA82};
//Constants for the PaletteMode property (Form, UserControl, UserDocument, PropertyPage, ActiveX Designer).
Enum PaletteModeConstants;
GUID = {531AFF40-D9E9-11CF-B307-00A0C90AEA82};
//Use system halftone palette.
@fhdk
fhdk / tmux-cheat-sheet.md
Created August 11, 2021 10:13 — forked from michaellihs/tmux-cheat-sheet.md
tmux Cheat Sheet
@fhdk
fhdk / undef.md
Created March 2, 2021 07:07 — forked from hmemcpy/undef.md
Disabling Visual Studio Git Provider

Here's how to disable the package that is responsible for loading the Git source control support in Visual Studio. Use at your own risk!

  • Create a file called devenv.pkgundef and place it next to devenv.exe in you Visual Studio's Common7\IDE (you'll need elevation for this)
  • Add the following entries to the file:
[$RootKey$\Packages\{7fe30a77-37f9-4cf2-83dd-96b207028e1b}]
[$RootKey$\SourceControlProviders\{11b8e6d7-c08b-4385-b321-321078cdd1f8}]
  • Close VS if open, open a Developer command prompt, and type devenv /updateconfiguration
@fhdk
fhdk / mdJson.bas
Created December 17, 2020 15:31 — forked from wqweto/mdJson.bas
JSON parsing/dumping/accessing functions for VB6 and VBA
'=========================================================================
'
' https://github.com/wqweto/UcsFiscalPrinters/blob/master/src/Shared/mdJson.bas
' JSON parsing and dumping functions
'
'=========================================================================
Option Explicit
DefObj A-Z
Private Const MODULE_NAME As String = "mdJson"
@fhdk
fhdk / 99-sysctl.conf
Created June 20, 2017 09:33
swappiness
# /etc/sysctl.d/99-sysctl.conf
vm.swappiness=10
# /etc/sysctl.d/50-inotify.conf
fs.inotify.max_user_watches=524288

Keybase proof

I hereby claim:

  • I am fhdk on github.
  • I am fhundewadt (https://keybase.io/fhundewadt) on keybase.
  • I have a public key whose fingerprint is 635A 4C8D F996 95C0 1EAD EE68 FBC4 9626 0E75 D30A

To claim this, I am signing this object:

@fhdk
fhdk / check_network.py
Last active May 1, 2017 12:06
Python network connections test
#!/usr/bin/env python3
"""Network check
https://forum.manjaro.org/t/pacman-mirrors-v-4-0-3/18961/102
https://forum.manjaro.org/t/pacman-mirrors-v-4-0-3/18961/104
"""
import sys
from urllib.request import urlopen