Skip to content

Instantly share code, notes, and snippets.

View Fahl-Design's full-sized avatar

Ben Fahl-Design

View GitHub Profile
@Fahl-Design
Fahl-Design / snx_install.sh
Last active February 4, 2024 15:46 — forked from rkueny/snx_install.sh
Checkpoint SNX VPN client installation shell script
echo "goto https://support.checkpoint.com/results/download/22824 and download installer"
# sudo ldd /usr/bin/snx
# prepare i386 (runtime..)
sudo dpkg --add-architecture i386
cat /var/lib/dpkg/arch
sudo apt update
sudo apt install libpam0g:i386 libx11-6:i386 libstdc++6:i386 libstdc++5:i386 libnss3-tools
@Fahl-Design
Fahl-Design / server.conf
Created March 9, 2022 09:26 — forked from marcw/server.conf
Nginx configuration to serve a Symfony app under a subdirectory of a PHP application
# With this nginx configuration, you will be able to serve a Symfony app in a subdirectory
# of a wordpress (or any other PHP application).
server {
listen 80;
listen [::]:80;
server_name mysite.com;
root /var/www/wordpress;
index index.php app.php index.html;
@Fahl-Design
Fahl-Design / tunnelPlumber.sh
Last active May 2, 2023 11:04
fix tunsnx interfaces created with linux kernel 5.9 or later Usage: [dry_run=1] [debug=1] [interface=tunsnx] tunnelPlumber.sh
#!/usr/bin/env bash
#
# Usage: [dry_run=1] [debug=1] [interface=tunsnx] docker-fix-snx
#
# Credits to: https://github.com/docker/for-linwux/issues/288#issuecomment-825580160
#
# Env Variables:
# interface - Defaults to tunsnx
# dry_run - Set to 1 to have a dry run, just printing out the iptables command
# debug - Set to 1 to see bash substitutions
@Fahl-Design
Fahl-Design / tmux-cheatsheet.markdown
Created January 8, 2020 22:30 — forked from MohamedAlaa/tmux-cheatsheet.markdown
tmux shortcuts & cheatsheet

tmux shortcuts & cheatsheet

start new:

tmux

start new with session name:

tmux new -s myname
@Fahl-Design
Fahl-Design / pr.md
Created October 4, 2016 18:59 — forked from piscisaureus/pr.md
Checkout github pull requests locally

Locate the section for your github remote in the .git/config file. It looks like this:

[remote "origin"]
	fetch = +refs/heads/*:refs/remotes/origin/*
	url = git@github.com:joyent/node.git

Now add the line fetch = +refs/pull/*/head:refs/remotes/origin/pr/* to this section. Obviously, change the github url to match your project's URL. It ends up looking like this: