Skip to content

Instantly share code, notes, and snippets.

View alexandervantrijffel's full-sized avatar
💻

Alexander van Trijffel alexandervantrijffel

💻
View GitHub Profile
@alexandervantrijffel
alexandervantrijffel / PKGBUILD_f5epi
Created July 11, 2023 09:45
working PKGBUILD file for f5epi
# Maintainer: Lucas Declercq <lucas.declercq@hoohoot.org>
pkgname=f5epi
pkgver=7220.2022.308.1
pkgrel=1
pkgdesc='Endpoint inspection application. It provide capabilities to check machines software processes and files'
arch=('x86_64')
source=('LICENSE')
source_x86_64=("linux_${pkgname}-${pkgver}-${pkgrel}.x86_64.rpm::https://vpn.brown.edu/public/download/linux_${pkgname}.x86_64.rpm")
md5sums=('2508fc5e24d46163844dba9534fe7924')
md5sums_x86_64=('48c6d5ae2207693ea709b4900f0e4d1e')
module.exports = {
content: [
"./pages/**/*.{ts,tsx,js,jsx}",
"./src/**/*.{ts,tsx,js,jsx}",
"./components/**/*.{js,jsx,ts,tsx}",
"./anima/**/*.{js,jsx,ts,tsx}",
],
theme: {
screens: {
sm: "360px",
#!/bin/sh
CLUSTER_NAME=dev
k3d registry create "$CLUSTER_NAME-registry".localhost --port 55515
k3d cluster create $CLUSTER_NAME --registry-use "$CLUSTER_NAME-registry.localhost:55515" --port 8080:80@loadbalancer --port 8443:443@loadbalancer
k3d kubeconfig merge $CLUSTER_NAME --kubeconfig-switch-context
echo port of registry:
docker ps -f name="$CLUSTER_NAME"-registry
allow traffic from docker container to mysql on host
### docker-compose
wordpress:
image: wordpress
restart: always
ports:
- 39260:80
environment:
WORDPRESS_DB_HOST: host.url.com
query IntrospectionQuery {
__schema {
queryType { name }
mutationType { name }
subscriptionType { name }
types {
...FullType
}
directives {
name
https://medium.freecodecamp.org/jazz-up-your-zsh-terminal-in-seven-steps-a-visual-guide-e81a8fd59a38
https://github.com/robbyrussell/oh-my-zsh/wiki/Themes
# clear font cache
fc-cache -f -v
Query schema
{
__schema {
queryType {
name
},
types {
name
}
@alexandervantrijffel
alexandervantrijffel / pre-commit-for-go-projects
Last active March 18, 2024 05:10
git pre-commit hook script that runs go build, go test, goimports for all packages
#!/bin/bash
# How to use:
# Store this file as .git/hooks/pre-commit and make it executable
# Or, to share the hook with your team, store as .githooks/pre-commit,
# make this file executable and run:
# git config core.hooksPath .githooks
# A pre-commit hook for go projects. In addition to the standard
@alexandervantrijffel
alexandervantrijffel / go getting started.md
Last active August 31, 2021 14:56
Getting started with Go development with VS code

Development environment configuration

  • Install the latest version of Go
  • Setup VS code
  • Go with vscode overview
  • Install vscode-go plugin
  • Install go tools. Launch VS Code Quick Open (Ctrl+SHIFT+P), run the command go: install/update tools

Recommended guides:

#!/bin/bash
declare -i ID
ID=`xinput list | grep -Eo 'Generic Mouse\s*id\=[0-9]{1,2}' | grep -Eo '[0-9]{1,2}'`
echo id is $ID
declare -i STATE
STATE=`xinput list-props $ID|grep 'Device Enabled'|awk '{print $4}'`
if [ $STATE -eq 1 ]
then
xinput disable $ID