Skip to content

Instantly share code, notes, and snippets.

View information-security's full-sized avatar

Farzan information-security

  • YouTob Telecom
  • Iran
View GitHub Profile
@information-security
information-security / ci.yml
Created August 21, 2021 06:38
Prevent Github actions from running a workflow when commit message starts with WIP:
name: CI Workflow
on:
push:
branches: [ dev ]
pull_request:
branches: [ dev ]
jobs:
build:
runs-on: self-hosted
if: "! startsWith(github.event.head_commit.message, 'WIP:')"
@information-security
information-security / callee.yml
Created January 10, 2022 00:47
How to trigger a GitHub workflow/action of another repository
name: Dispatch receiver
on:
push:
branches: [ dev ]
pull_request:
branches: [ dev ]
# Allows you receive the dispatch
workflow_dispatch:
@information-security
information-security / install.md
Created November 4, 2022 03:37
Install sstp-client on ubuntu 22

Prerequisites

sudo apt-get install build-essential ppp-dev libevent-dev libssl-dev autoconf libtool

Clone the repo

git clone https://gitlab.com/eivnaes/sstp-client.git sstp-client-source
cd sstp-client-source
@information-security
information-security / Readme.md
Created November 4, 2022 08:18
Route traffic of multiple IPs through secondary gateway (e.g. ppp connections) on Ubuntu 22

Assumption

We assume that a VPN connection is already setup and a ppp0 interface is up and running.

Routing modifications

Run following commands as root user:

cd /etc/iproute2
cp rt_tables rt_tables.orig

echo "1 vpn" >> /etc/iproute2/rt_tables
@information-security
information-security / vscode-extension-offline.md
Created April 27, 2024 11:10 — forked from wanglf/vscode-extension-offline.md
Download VS Code extensions as VSIX

How to use?

  • Copy content of vsix-bookmarklet, create a bookmark in your browser.
  • Navigate to the web page of the VS Code extension you want to install.
  • Click the bookmark you just created, then click the download button.
    download
  • After download finished, rename the file extension to *.vsix.
  • In VS Code, select Install from VSIX... in the extension context menu.
    vsc
@information-security
information-security / README.md
Created February 8, 2025 20:33
HP Array Configuration Utility CLI for Linux (CentOS 6)

Prerequisites (CentOS 6.10 X86_64)

yum install libstdc++*.i686

Install HP Array Configuration Utility CLI for Linux

curl -fL -o "hpacucli-9.20-9.0.i386.rpm" https://downloads.hpe.com/pub/softlib2/software1/pubsw-linux/p414707558/v76503/hpacucli-9.20-9.0.i386.rpm
yum install libstdc++*.i686
rpm -i hpacucli-9.20-9.0.i386.rpm