Skip to content

Instantly share code, notes, and snippets.

Avatar

Nadjmou BOINA boina-n

View GitHub Profile
@boina-n
boina-n / attributes.rb
Created Apr 22, 2019 — forked from lizthegrey/attributes.rb
Hardening SSH with 2fa
View attributes.rb
default['sshd']['sshd_config']['AuthenticationMethods'] = 'publickey,keyboard-interactive:pam'
default['sshd']['sshd_config']['ChallengeResponseAuthentication'] = 'yes'
default['sshd']['sshd_config']['PasswordAuthentication'] = 'no'
@boina-n
boina-n / keybase+git-crypt.md
Last active Jun 1, 2020 — forked from 3noch/keybase+git-crypt.md
How to add a Keybase user to your repo using git-crypt
View keybase+git-crypt.md
keybase track <keybase.io user>
keybase pgp pull <keybase.io user>
gpg --edit-key <keybase.io user>
  > lsign
  > save
git-crypt add-gpg-user <keybase.io user>
@boina-n
boina-n / netpps.sh
Created Dec 19, 2017 — forked from joemiller/netpps.sh
shell: quick linux scripts for showing network bandwidth or packets-per-second
View netpps.sh
#!/bin/bash
if [ -z "$1" ]; then
echo
echo usage: $0 network-interface
echo
echo e.g. $0 eth0
echo
echo shows packets-per-second
@boina-n
boina-n / awk-one-liners.awk
Created Oct 22, 2017 — forked from xandkar/awk-one-liners.awk
HANDY ONE-LINE SCRIPTS FOR AWK
View awk-one-liners.awk
HANDY ONE-LINE SCRIPTS FOR AWK 30 April 2008
Compiled by Eric Pement - eric [at] pement.org version 0.27
Latest version of this file (in English) is usually at:
http://www.pement.org/awk/awk1line.txt
This file will also be available in other languages:
Chinese - http://ximix.org/translation/awk1line_zh-CN.txt
USAGE:
@boina-n
boina-n / auto-deploy.md
Created Sep 3, 2017 — forked from domenic/0-github-actions.md
Auto-deploying built products to gh-pages with Travis
View auto-deploy.md

Auto-deploying built products to gh-pages with Travis

This is a set up for projects which want to check in only their source files, but have their gh-pages branch automatically updated with some compiled output every time they push.

Create a compile script

You want a script that does a local compile to e.g. an out/ directory. Let's call this compile.sh for our purposes, but for your project it might be npm build or gulp make-docs or anything similar.

The out/ directory should contain everything you want deployed to gh-pages. That almost always includes an index.html.

You can’t perform that action at this time.