-
Websites like techmint.com are really good resource to mostly OS like CentOS or RHEL
-
User Creation
adduser <username>
- add new userpasswd <username>
- change/set password for the user
-
A small intro to IDS and IPS
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
""" | |
Reading and Writing file in queue using asyncio | |
To run: python3 task.py <input_file> <output_file> | |
It was a task for my GSoC'18 selection under Honeynet(I failed!!) | |
""" | |
import asyncio | |
import sys |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
""" | |
requirements: | |
- tabulate | |
- argparse | |
""" | |
import os | |
import argparse | |
from tabulate import tabulate |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import os | |
import sys | |
from guessit import guessit | |
def main(path): | |
for folder in os.listdir(path): | |
movie_info = guessit(folder) | |
movie_name = movie_info['title'] | |
old_path = os.path.join(path, folder) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
""" | |
A simple webserver that sends colors to curl & HTML to browsers. | |
Inspired by @chubin's work on curl compatible webservices. | |
""" | |
from flask import Flask | |
from flask import request | |
app = Flask(__name__) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import os | |
import json | |
import pygsheets | |
import pandas as pd | |
from pandas.io.json import json_normalize | |
OAUTHFILE = "" # path to the credential file | |
def read_json_files(path): | |
"""Reads multiple JSON files from the given path |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
{ | |
"di-dah": "A", | |
"dah-di-di-dit": "B", | |
"dah-di-dah-dit": "C", | |
"dah-di-dit": "D", | |
"dit": "E", | |
"di-di-dah-dit": "F", | |
"dah-dah-dit": "G", | |
"di-di-di-dit": "H", | |
"di-dit": "I", |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/python3 | |
from textwrap import wrap | |
mapping = {"AAA": "a", | |
"AAC": "b", | |
"AAG": "c", | |
"AAT": "d", | |
"ACA": "e", | |
"ACC": "f", |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/bash | |
C_RESET='\033[0m' | |
C_RED='\033[1;31m' | |
C_GREEN='\033[1;32m' | |
C_YELLOW='\033[1;33m' | |
C_WHITE='\033[1;37m' | |
C_RESET_SED='\\033[0m' | |
C_RED_SED='\\033[1;31m' |
I hereby claim:
- I am mzfr on github.
- I am mzfr (https://keybase.io/mzfr) on keybase.
- I have a public key ASDbyCVrijNl1miESe2L3_i8FQRSqwFMvxglO6HDjOHntAo
To claim this, I am signing this object:
OlderNewer