Skip to content

Instantly share code, notes, and snippets.

@TH1622EE
TH1622EE / cheatsheet.ps1
Created June 5, 2022 07:22 — forked from pcgeek86/cheatsheet.ps1
PowerShell Cheat Sheet / Quick Reference
Get-Command # Retrieves a list of all the commands available to PowerShell
# (native binaries in $env:PATH + cmdlets / functions from PowerShell modules)
Get-Command -Module Microsoft* # Retrieves a list of all the PowerShell commands exported from modules named Microsoft*
Get-Command -Name *item # Retrieves a list of all commands (native binaries + PowerShell commands) ending in "item"
Get-Help # Get all help topics
Get-Help -Name about_Variables # Get help for a specific about_* topic (aka. man page)
Get-Help -Name Get-Command # Get help for a specific PowerShell function
Get-Help -Name Get-Command -Parameter Module # Get help for a specific parameter on a specific command
@Tschucker
Tschucker / simple_topo_rf_propagation.m
Created August 15, 2021 18:24
Matlab Topographic RF Propagation Example
%% RF Propagation Simulation
%Tom Schucker
%% Set Custom Terrain
%terrain file (download from https://earthexplorer.usgs.gov/)
dtedfile = "n37_w122_1arc_v3.dt2";
%data attribution
attribution = "SRTM 3 arc-second resolution. Data available " + ...
"from the U.S. Geological Survey.";
@prray305
prray305 / nfl_teams.csv
Created December 30, 2019 20:14 — forked from cnizzardini/nfl_teams.csv
List of nfl teams as a CSV: name,abbreviation,conference,division for MySQL format see https://gist.github.com/cnizzdotcom/e9240505acb0865e0c25 please comment if you find any errors
ID Name Abbreviation Conference Division
1 Arizona Cardinals ARI NFC West
2 Atlanta Falcons ATL NFC South
3 Baltimore Ravens BAL AFC North
4 Buffalo Bills BUF AFC East
5 Carolina Panthers CAR NFC South
6 Chicago Bears CHI NFC North
7 Cincinnati Bengals CIN AFC North
8 Cleveland Browns CLE AFC North
9 Dallas Cowboys DAL NFC East
@MickeyPvX
MickeyPvX / espn_ffl.py
Last active September 12, 2021 19:35
Python class to pull ESPN Fantasy Football data into a pandas DataFrame
import pandas as pd
import re
from urllib.request import urlopen
from bs4 import BeautifulSoup as soup
from datetime import datetime as dt
class ESPN_FFL(object):
"""Helper class for pulling ESPN Fantasy Football stats for a given season.
@JBlond
JBlond / bash-colors.md
Last active May 22, 2024 09:36 — forked from iamnewton/bash-colors.md
The entire table of ANSI color codes.

Regular Colors

Value Color
\e[0;30m Black
\e[0;31m Red
\e[0;32m Green
\e[0;33m Yellow
\e[0;34m Blue
\e[0;35m Purple
@pratos
pratos / condaenv.txt
Created November 30, 2016 07:01
To package a conda environment (Requirement.txt and virtual environment)
# For Windows users# Note: <> denotes changes to be made
#Create a conda environment
conda create --name <environment-name> python=<version:2.7/3.5>
#To create a requirements.txt file:
conda list #Gives you list of packages used for the environment
conda list -e > requirements.txt #Save all the info about packages to your folder
@smykes
smykes / nfl.json
Last active November 16, 2023 14:23
A JSON string of all 32 NFL football teams including city, name, conference, division, and abbreviation.
[
{
"city": "Arizona",
"name": "Cardinals",
"abr": "ARI",
"conf": "NFC",
"div": "West"
},
{
"city": "Atlanta",
@vratiu
vratiu / .bash_aliases
Last active May 20, 2024 21:01
Git shell coloring
# Customize BASH PS1 prompt to show current GIT repository and branch.
# by Mike Stewart - http://MediaDoneRight.com
# SETUP CONSTANTS
# Bunch-o-predefined colors. Makes reading code easier than escape sequences.
# I don't remember where I found this. o_O
# Reset
Color_Off="\[\033[0m\]" # Text Reset
@iamnewton
iamnewton / bash-colors.md
Last active May 2, 2024 22:42
The entire table of ANSI color codes.

Regular Colors

Value Color
\e[0;30m Black
\e[0;31m Red
\e[0;32m Green
\e[0;33m Yellow
\e[0;34m Blue
\e[0;35m Purple
@justintv
justintv / .bashrc
Created August 17, 2009 00:53
Display git branch in bash prompt
# If you work with git, you've probably had that nagging sensation of not knowing what branch you are on. Worry no longer!
export PS1="\\w:\$(git branch 2>/dev/null | grep '^*' | colrm 1 2)\$ "
# This will change your prompt to display not only your working directory but also your current git branch, if you have one. Pretty nifty!
# ~/code/web:beta_directory$ git checkout master
# Switched to branch "master"
# ~/code/web:master$ git checkout beta_directory
# Switched to branch "beta_directory"