Skip to content

Instantly share code, notes, and snippets.

Configure CheckPoint VPN ArchLinux

First install this packages:

Yes they have to be 32bits, this is important.

sudo pacman -Sy lib32-pam lib32-libx11 lib32-gcc-libs lib32-nss nss

Then install this package from AUR:

@Krowemoh
Krowemoh / 1BRC
Last active January 17, 2024 03:16
*
EQU TRUE TO 1
EQU FALSE TO 0
*
EQU ENV.SIZE TO 10000
DIM ENV(ENV.SIZE)
*
MAT ENV = ''
*
MAP.CACHE = ''
@Krowemoh
Krowemoh / zpl-quick-reference.md
Created December 28, 2023 15:45 — forked from metafloor/zpl-quick-reference.md
ZPL Quick Reference

ZPL Commands

Command Format Description
^A ^Afo,h,w,d:f.x Use Scalable/Bitmapped Font
^A@ ^A@o,h,w,d:f.x Use Font Name to Call Font
^B0 ^B0a,b,c,d,e,f,g Aztec Bar Code Parameters
^B1 ^B1o,e,h,f,g Code 11 Bar Code
^B2 ^B2o,h,f,g,e,j Interleaved 2 of 5 Bar Code
^B3 ^B3o,e,h,f,g Code 39 Bar Code
@Krowemoh
Krowemoh / codec
Last active September 25, 2022 20:09
Get the video and audio codec information for a file
#!/usr/bin/env python3
import os
import subprocess
import sys
if len(sys.argv) < 2:
print("Incorrect number of arguments.")
sys.exit(1)
@Krowemoh
Krowemoh / Multivalue Delimiters.md
Last active August 3, 2022 13:55 — forked from jbratu/openinsight system delimiters.md
Multivalue Delimiters
Delim Ascii Dec Hex Desc
@RM ÿ 255 FF Row mark. Separates rows.
@FM þ 254 FE Field mark. Separates columns within a row.
@VM ý 253 FD Value mark. Separates values within a column.
@SVM ü 252 FC Sub-value mark. Separates sub-values within a multi-valued column.
@TM û 251 FB Text mark. Separates lines in a text column.
@STM ú 250 FA Subtext mark. Separates sub-lines of text.
@Krowemoh
Krowemoh / undef
Created July 27, 2022 18:49
Remove ifdefs dependng on which defines are set
#!/usr/bin/env python3
import sys
f = open(sys.argv[1], "r")
lines = f.readlines()
symbolTable = { }
{
"ABORT": {
"prefix": "ABORT",
"body": ["ABORT $1"],
"description": "Use the ABORT statement to terminate execution of a BASIC program and return to the UniVerse prompt."
},
"ABS": {
"prefix": "ABS",
"body": ["ABS($1)"],
"description": "Use the ABS function to return the absolute value of any numeric expression."
@Krowemoh
Krowemoh / unibasic.snippets
Created March 28, 2022 04:58
Snippets for functions in Universe and Unidata
snippet ABORT "Use the ABORT statement to terminate execution of a BASIC program and return to the UniVerse prompt." b
ABORT [expression …]
endsnippet
snippet ABS "Use the ABS function to return the absolute value of any numeric expression." b
ABS(expression)
endsnippet
snippet ABSS "Use the ABSS function to return the absolute values of all the elements in a dynamic array." b
ABSS(dynamic.array)
endsnippet
snippet ACOS "Use the ACOS function to return the trigonometric arc-cosine of expression." b