Skip to content

Instantly share code, notes, and snippets.

@mikekudzin
mikekudzin / install-snx-checkpoint
Created September 8, 2021 21:54 — forked from ikurni/install-snx-checkpoint
How to install SNX Checkpoint VPN client in Fedora 33
### Install few required packages to run SNX
sudo dnf install -y java-1.8.0-openjdk.x86_64 icedtea-web.x86_64 libstdc++.i686 libX11.i686 libpamtest.i686 libnsl.i686
### Download compat-libstdc++ driver and install it
wget https://rpmfind.net/linux/centos/7.8.2003/os/x86_64/Packages/compat-libstdc++-33-3.2.3-72.el7.i686.rpm
sudo dnf -y install /home/users/Downloads/compat-libstdc++-33-3.2.3-72.el7.i686.rpm
### Install snx_linux.sh
### Download snx_linux_30.sh file from Checkpoint
### URL: https://dl3.checkpoint.com/paid/72/72c2c91791690927da0586ec873430cf/snx_install_linux30.sh?HashKey=1603971253_4c1ac35db21425fb73a79bccf775b006&xtn=.sh
@mikekudzin
mikekudzin / multiple_ssh_setting.md
Created August 13, 2020 08:42 — forked from jexchan/multiple_ssh_setting.md
Multiple SSH keys for different github accounts

Multiple SSH Keys settings for different github account

create different public key

create different ssh key according the article Mac Set-Up Git

$ ssh-keygen -t rsa -C "your_email@youremail.com"
@mikekudzin
mikekudzin / FilterableLoggingInterceptor.kt
Last active June 4, 2019 06:08
OkHttp logging interceptor wrapper gives an ability to exclude urls from being logged
import android.util.Log
import okhttp3.HttpUrl
import okhttp3.Interceptor
import okhttp3.Response
import java.io.IOException
import java.util.*
class FilterableLoggingInterceptor(private val interceptor: Interceptor) : Interceptor {
private val criterias = HashSet<Criteria>()
@mikekudzin
mikekudzin / app_level_build.gradle
Last active May 11, 2019 10:40
Gradle script for stub signing.properties
// Chooses production.properties file if exist
// otherwise uses stub.properties which is under git
def prodConfigProps = new Properties()
if (rootProject.file("production.properties").exists()) {
prodConfigProps.load(new FileInputStream(rootProject.file("production.properties")))
print("Project configured to use ${rootProject.file("production.properties").absolutePath} production config")
} else {
prodConfigProps.load(new FileInputStream(rootProject.file("stub.properties")))
print("Project configured to use ${rootProject.file("stub.properties").absolutePath} production config")
@mikekudzin
mikekudzin / howto_deb_repackage.txt
Created April 19, 2019 09:26 — forked from shamil/howto_deb_repackage.txt
Howto repackage deb packages
Use folowing steps to repackage dep package:
1: Extract deb package
# dpkg-deb -x <package.deb> <dir>
2: Extract control-information from a package
# dpkg-deb -e <package.deb> <dir/DEBIAN>
3. After completed to make changes to the package, repack the deb
# dpkg-deb -b <dir> <new-package.deb>
@mikekudzin
mikekudzin / svn or git to git.sh
Last active September 3, 2018 11:16
Migrate svn or git repo from one source to another
# Clone the repo using --mirror option
git clone --mirror http://old.host/Project
# Add new remote
cd Project
git remote add newremote git@new.remote/Project
# Push everything to newremote
git push newremote --mirror
@mikekudzin
mikekudzin / LintInspections.json
Created February 8, 2018 13:50
Android Studio Lint Inspection Names
{
"localInspection": [
{
"language": "JAVA",
"shortName": "UndesirableClassUsage",
"displayName": "Undesirable class usage",
"groupName": "IntelliJ IDEA Platform Inspections",
"enabledByDefault": "true",
"level": "WARNING",
"implementationClass": "com.intellij.codeInspection.internal.UndesirableClassUsageInspection"