Skip to content

Instantly share code, notes, and snippets.

View nbeny's full-sized avatar
🌪️
El Tornado

Nicolas BENY nbeny

🌪️
El Tornado
View GitHub Profile
Set-PSReadlineKeyHandler -Key Tab -Function MenuComplete
Set-PSReadlineKeyHandler -Key UpArrow -Function HistorySearchBackward
Set-PSReadlineKeyHandler -Key DownArrow -Function HistorySearchForward
Set-PSReadLineOption -HistorySearchCursorMovesToEnd
@nbeny
nbeny / golang_job_queue.md
Created June 6, 2020 06:35 — forked from harlow/golang_job_queue.md
Job queues in Golang
@nbeny
nbeny / main.go
Created June 6, 2020 06:35 — forked from enricofoltran/main.go
A simple golang web server with basic logging, tracing, health check, graceful shutdown and zero dependencies
package main
import (
"context"
"flag"
"fmt"
"log"
"net/http"
"os"
"os/signal"

Awesome Go

Build Status Awesome Slack Widget Netlify Status

patreon avelino financial support to Awesome Go

A curated list of awesome Go frameworks, libraries and software. Inspired by awesome-python.

Contributing

@nbeny
nbeny / python_scripting.rst
Created June 6, 2020 06:29 — forked from jasonkeene/python_scripting.rst
Get started with writing your own python scripts to automate system tasks.

Python for System Admins / Operators

Installing Python

Most Unix/Linux systems come with python pre-installed:

$ python -V
@nbeny
nbeny / .eslintrc.js
Created June 6, 2020 06:14 — forked from nkbt/.eslintrc.js
Strict ESLint config for React, ES6 (based on Airbnb Code style)
{
"env": {
"browser": true,
"node": true,
"es6": true
},
"plugins": ["react"],
"ecmaFeatures": {

Theming Ant Design with Sass and Webpack

This is a solution on how to theme/customize Ant Design (which is written in Less) with Sass and webpack. Ant itself offers two solutions and a related article on theming, but these are only applicable if you use Less, the antd-init boilerplate or dva-cli.

What this solution offers:

  • use a single sass-file to customize (no duplicate variables for your project and Ant)
  • hot reload compatibility
  • no dependencies on outdated npm modules
  • easy integration with your existing webpack setup (webpack 3+ tested)
@nbeny
nbeny / Redux
Created June 6, 2020 06:04 — forked from ChuckJonas/Redux
React React
[react-redux-typescript-guide](https://github.com/piotrwitek/react-redux-typescript-guide)
[FAQ](http://redux.js.org/docs/FAQ.html)
[Redux Actions in typescript](https://spin.atomicobject.com/2017/07/24/redux-action-pattern-typescript/)
```typescript
export enum TypeKeys {
INC = 'INC',
DEC = 'DEC',
OTHER_ACTION = '__any_other_action_type__'
}
import argparse
import sys
import os
from colorama import Fore, Style
class Kali_Setup():
def __init__(self):
self.kali_repo = "deb http://http.kali.org/kali kali-rolling main contrib non-free"
self.tool_list = ["metasploit-framework", "dmitry", "theharvester", "nmap", "sqlmap", "git", "dirb", "dirbuster", "wpscan", "python", "python3", "python-pip"]
@nbeny
nbeny / kali-linux-docker.md
Created June 6, 2020 05:55
Kali Linux & Docker - A match made in heaven.

Kali Linux & Docker - A match made in heaven.

Prerequisites: Some prior knowledge on Docker is required to understand this post.

Introduction

Kali Linux is a Debian-derived Linux distribution designed for digital forensics and penetration testing. It is maintained and funded by Offensive Security Ltd.

We all know what Kali Linux is. It is like a Swiss Army Knife for the infosec community. Technically it is a full fledged operating system (hereinafter OS) that is based on the testing branch of Debian. In addition to that, it comes with all the tools, scripts and configurations required for pentesting and forensics out of the box. One can already use any GNU/Linux distribution like Ubuntu or Arch Linux and install and configure all the tools required. Even if the tools are not present in the repositories of one's choice of distribution, the tools can be compiled from the sources as every single tool in Kali Linux is open source. But, why to waste time on creating something that i