Skip to content

Instantly share code, notes, and snippets.

View eabase's full-sized avatar

eabase

  • Between the radio ether and you.
View GitHub Profile
@eabase
eabase / Out-HostColored.ps1
Created November 24, 2020 11:01 — forked from mklement0/Out-HostColored.ps1
PowerShell function that colors portions of the default host output that match given patterns.
<#
Prerequisites: PowerShell version 2 or above.
License: MIT
Author: Michael Klement <mklement0@gmail.com>
DOWNLOAD, from PowerShell version 3 or above:
irm https://gist.github.com/mklement0/243ea8297e7db0e1c03a67ce4b1e765d/raw/Out-HostColored.ps1 | iex
@eabase
eabase / github_markdown_emojis.md
Last active January 24, 2022 21:33
Complete list of github markdown emojis

People

emo emo emo
:bowtie: :bowtie: 😄 :smile: 😆 :laughing:
😊 :blush: 😃 :smiley: ☺️ :relaxed:
😏 :smirk: 😍 :heart_eyes: 😘 :kissing_heart:
😚 :kissing_closed_eyes: 😳 :flushed: 😌 :relieved:
😆 :satisfied: 😁 :grin: 😉 :wink:
😀 :grinning:
@eabase
eabase / GitHub_Collapsible_Content.md
Created November 11, 2020 12:39
GitHub Collapsible Content

Examples of Collapsible Content

Style 1

Click to see more:
Given the following python code
from pychartjs import BaseChart

class myChart(BaseChart):
    pass
@eabase
eabase / MemoryAllocationHFT.cpp
Created October 23, 2020 18:54 — forked from silahian/MemoryAllocationHFT.cpp
Pre allocated vs dynamic arrays performance for low latency / high frequency trading systems
// Example program
#include <iostream>
#include <string>
#include <vector>
#include <algorithm>
#include <time.h>
// ***********************************
// This is for measuring CPU clocks
#if defined(__i386__)
static __inline__ unsigned long long rdtsc(void)
@eabase
eabase / typsetf.ps1
Created October 4, 2020 11:05
Trying to create a Powershell (pwsh.exe) equivalent to the Bash internal "typset -f"
#------------------------------------------------------------------------------
# Trying to create a PoSh equivalent to the Bash internal "typset -f"
# Trying to create a Powershell (pwsh.exe) equivalent to the Bash internal "typset -f"
#------------------------------------------------------------------------------
# From:
# https://stackoverflow.com/questions/40967449/get-list-of-functions-from-script
# https://stackoverflow.com/a/57635570/
# Usage:
# Write-Host [System.String[]]$FX_DEFS = Get-ScriptFunctionDefinitions -Path "$($PSCommandPath | Split-Path)/Functions.ps1"
# Write-Host [System.String[]]$FX_DEFS = Get-ScriptFunctionDefinitions -Path "$($PSCommandPath | Split-Path)/Microsoft.PowerShell_profile.ps1"
@eabase
eabase / investing.py
Created September 29, 2020 11:02 — forked from elibroftw/investing.py
A Python file to help me get quick statistics on the stock market. It's always evolving.
"""
Investing Quick Analytics
Author: Elijah Lopez
Version: 1.10.3
Created: April 3rd 2020
Updated: September 28th 2020
"""
import calendar
from contextlib import suppress
import csv
@eabase
eabase / Download-Cradles-Oneliners.md
Created September 25, 2020 21:54 — forked from mgeeky/Download-Cradles-Oneliners.md
Various Powershell Download Cradles purposed as one-liners

Download Cradles

0) Extra goodies

  • Obfuscated FromBase64String with -bxor nice for dynamic strings deobfuscation:
$t=([type]('{1}{0}'-f'vert','Con'));($t::(($t.GetMethods()|?{$_.Name-clike'F*g'}).Name).Invoke('Yk9CA05CA0hMV0I=')|%{$_-bxor35}|%{[char]$_})-join''
  • The same as above but for UTF-16 base64 encoded strings: