Skip to content

Instantly share code, notes, and snippets.

View sarkis's full-sized avatar

Sarkis Varozian sarkis

View GitHub Profile
sarkis /
Created January 28, 2023 06:24 — forked from fntlnz/
Self Signed Certificate with Custom Root CA

Create Root CA (Done once)

Create Root Key

Attention: this is the key used to sign the certificate requests, anyone holding this can sign certificates on your behalf. So keep it in a safe place!

openssl genrsa -des3 -out rootCA.key 4096
sarkis / upload.yaml
Created August 21, 2021 00:55 — forked from MoonTahoe/upload.yaml
Github Action to build iOS app with expo and upload to testflight
# Just place this file in your repo under the .github/workflows folder.
# You set all of the secrets in the setting of the repo
name: Deploy to Testflight
# When a pull request is closed...
# This is because this action commits back to the repository
# so setting this on a push would cause an infinite loop of commits
# unless you pragmatically check the contents of the repo or something
sarkis /
Created November 22, 2020 04:16 — forked from 4ndrej/
Test of java SSL / keystore / cert setup. Check the comment #1 for howto.
/** Establish a SSL connection to a host and port, writes a byte and
* prints the response. See
public class SSLPoke {
sarkis / tmux-cheatsheet.markdown
Created November 19, 2020 17:57 — forked from MohamedAlaa/tmux-cheatsheet.markdown
tmux shortcuts & cheatsheet

tmux shortcuts & cheatsheet

start new:


start new with session name:

tmux new -s myname
sarkis / dummy0.netdev
Created December 4, 2019 01:33 — forked from kquinsland/dummy0.netdev
How to get consul-agent and systemd.resolvd to co-exist peicefully and still be able to resolve *.consul hostsnames from within docker
# Creates a "dummy" network interface
# we'll configure this interface with a link-local address
# See:
sarkis /
Created October 17, 2019 18:36 — forked from ubergesundheit/
systemd traefik.service

systemd Service Unit for Traefik

Adapted from caddy systemd Service Unit

The provided file should work with systemd version 219 or later. It might work with earlier versions. The easiest way to check your systemd version is to run systemctl --version.


We will assume the following:

sarkis / UbuntuCFinit.yaml
Created October 8, 2019 15:50 — forked from mmasko/UbuntuCFinit.yaml
Configure cfn-hup, cloudformation tools on ubuntu 18. Based on a gist from Written in YAML.
#This script will install the cloudformation helper work on Ubuntu 18.
#Some values are hard coded. Make sure to update where needed, or add to the parameters section.
#This would probably work on other distros, but I have not tested yet. Try it out.
#Just make sure to change things like apt to yum if trying on another OS.
Type: String
Default: t3.nano
- t3.nano
sarkis /
Created July 3, 2019 15:31 — forked from devinrhode2/
How to Change Open Files Limit on OS X and macOS Sierra (10.8 - 10.12)

How to Change Open Files Limit on OS X and macOS

This text is the section about OS X Yosemite (which also works for macOS Sierra) from

The last time i visited this link it was dead (403), so I cloned it here from the latest snapshot in's Wayback Machine

Mac OS X

To check the current limits on your Mac OS X system, run:

sarkis / gist:82bf4f6c5907a3b3eedf903404a99cff
Created June 20, 2019 16:44 — forked from charlax/gist:38ecd925a8bcb8cadcf5
Fix Unable to find 'openssl/opensslconf.h'
SWIG/_m2crypto.i:30: Error: Unable to find 'openssl/opensslv.h'
SWIG/_m2crypto.i:33: Error: Unable to find 'openssl/safestack.h'
SWIG/_evp.i:12: Error: Unable to find 'openssl/opensslconf.h'
SWIG/_ec.i:7: Error: Unable to find 'openssl/opensslconf.h'
error: command 'swig' failed with exit status 1

Oh my zsh.

Install with curl

sh -c "$(curl -fsSL"

Enabling Plugins (zsh-autosuggestions & zsh-syntax-highlighting)

  • Download zsh-autosuggestions by