Skip to content

Instantly share code, notes, and snippets.

@miladev95
miladev95 / news-reader.sh
Created June 7, 2020 07:22
shell script news reader
#!/bin/sh
reader(){
if [ -z "$1" ];then
RSS_URL="https://www.khabaronline.ir/rss"
else
RSS_URL=$1
fi
curl --silent "$RSS_URL" | \
cal : show calendar
date : show current date
cal -y 1999 : show 1999 calendar
cd ./Desktop
cd - : forwarrd
ls ..
ls /home/milad
ls -i : ls with inode
@miladev95
miladev95 / httpserver.py
Created January 10, 2020 07:41
python HTTP Server with upload
#!/usr/bin/env python
"""Simple HTTP Server With Upload.
This module builds on BaseHTTPServer by implementing the standard GET
and HEAD requests in a fairly straightforward manner.
"""
__version__ = "0.1"
__all__ = ["SimpleHTTPRequestHandler"]