These are a list of usages of shell commands I can't live without on UNIX-based systems.
Using Homebrew (yes, I am opinionated) you can install the following tools with the following packages:
| <?php session_start(); ?> | |
| <?php | |
| if (empty($_SESSION['path'])) { | |
| $_SESSION['user'] = shell_exec('whoami'); | |
| $_SESSION['host'] = shell_exec('hostname'); | |
| $_SESSION['path'] = dirname(__FILE__); | |
| } | |
| function showInfo($cmd) { | |
| $user = $_SESSION['user']; |
| #!/bin/sh | |
| # https://gist.github.com/christiangalsterer/5f55389b9c50c74c31b9 | |
| # Copyright 2015 Christian Galsterer | |
| # | |
| # Licensed under the Apache License, Version 2.0 (the "License"); | |
| # you may not use this file except in compliance with the License. | |
| # You may obtain a copy of the License at | |
| # |
| #!/usr/bin/env python3 | |
| import sys | |
| import requests | |
| import urllib3 | |
| import json | |
| import re | |
| from types import SimpleNamespace as Namespace | |
| from feedgen.feed import FeedGenerator | |
| output = '' |
| import logging | |
| import re | |
| import json | |
| import asyncio | |
| import requests | |
| # | |
| # including these methods as wrappers around requests method | |
| # |
| using System; | |
| using System.IO; | |
| using System.Security.Cryptography; | |
| using System.Runtime.Serialization.Formatters.Binary; | |
| namespace hawktracewsus | |
| { | |
| class Program | |
| { | |
| static void Main() |