item0
next ------> item1
val=2 next -------> null
val=5
item0
This file contains hidden or 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
| #!/usr/bin/python | |
| ''' | |
| # ---------------------------- # | |
| # SYSTEM BACKUP RESTORE SCRIPT # | |
| # ---------------------------- # | |
| ''' | |
| import json | |
| import re |
This file contains hidden or 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
| #!/usr/bin/python | |
| ''' | |
| # ---------------------------- # | |
| # SYSTEM BACKUP RESTORE SCRIPT # | |
| # ---------------------------- # | |
| ''' | |
| import json | |
| import re |
This file contains hidden or 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 | |
| # -------------------- # | |
| # SYSTEM BACKUP SCRIPT # | |
| # -------------------- # | |
| # PURPOSE: Backup importang config files and program | |
| # installed dependency lists to a private gist | |
| # automatically. |
This file contains hidden or 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
| #!/usr/bin/env python | |
| ''' | |
| SHA FILE/TREE COMPARATOR | |
| takes two args: | |
| file/dir string 1 | |
| file/dir string 2 | |
| compares all files in both locations for SHA checksum matches. | |
| // Only verified working on Darwin Kernel Version 17.3.0 // |
This file contains hidden or 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/sh | |
| # shell command to install Atom packages | |
| install_packages="apm install linter linter-rubocop" | |
| if grep -q Microsoft /proc/version 1>/dev/null 2>/dev/null; then | |
| # -------------------- # | |
| # W I N D O W S 1 0 # | |
| # -------------------- # |
This file contains hidden or 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
| #!/usr/bin/env python | |
| import os | |
| import pandas as pd | |
| import sys | |
| from crayons import white, green, blue, red | |
| from datetime import datetime as dt | |
| from pandas.errors import EmptyDataError | |
| from tabulate import tabulate |
This file contains hidden or 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
| #!/usr/bin/python | |
| # -*- coding: utf-8 -*- | |
| import argparse | |
| import csv | |
| import json | |
| import os | |
| __author__ = "Arjun Ray" | |
| __license__ = "MIT" |
This file contains hidden or 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/sh | |
| print_header () { | |
| echo $1 | |
| echo "------------------------------------" | |
| } | |
| run_print_error () { | |
| print_header "$2" | |
| echo $1 | |
| # error_msg=$($1 2>&1 >/dev/null) |
This file contains hidden or 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/sh | |
| print_header () { | |
| echo $1 | |
| echo "------------------------------------" | |
| } | |
| run_print_error () { | |
| print_header "$2" | |
| echo $1 |