Skip to content

Instantly share code, notes, and snippets.

View echohack's full-sized avatar
🎥
twitch.tv/echohack

echohack echohack

🎥
twitch.tv/echohack
View GitHub Profile
@echohack
echohack / talgan_morzoth.txt
Created June 22, 2018 05:21
talgan morzoth character sheet (5th level warlock)
Talgan Morzoth
Character Concept
I'm Talgan Morzoth, warlock detective for hire. You can find my office in Terminus, merchant's row. If you've got something that's weird, or spooky, then it might be time to hire a private investigator that knows a thing or two about spooks and ghosts.
Background
Haunted One
You are haunted by something so terrible that you dare not speak of it. You've tried to bury it and flee from it, to no avail. This thing that haunts you can't be slain with a sword or banished with a spell. It might come to you as a shadow on the wall, a bloodcurdling nightmare, a memory that refuses to die, or a demonic whisper in the dark. The burden has taken its toll, isolating you from others and making you question your sanity. You must find a way to overcome it before it destroys you.
Harrowing Event
@echohack
echohack / youtube_table.csv
Last active May 30, 2018 17:56
A Table with some data on the youtube homepage
Title Channel Age Watched Already?
Dunk Souls Remastered videogamedunkey 1 day Watched
Cheap AliExpress Graphics Cards - SCAM??? Linus Tech Tips 5 days Watched
Cr1tikal Gets a $31000 Donation on Stream Otinashi 1 month Watched
lofi hip hop radio - beats to relax/study to ChilledCow Live Watched
Reverse emulating the NES to give it SUPER POWERS! suckerpinch 1 day Not Watched
Quick D: A fighter Jet Says Hi CaptainDisillusion 2 weeks Watched
36.5% Revenue DECLINE per product in Magic The Alpha Investments 1 month Not Watched
Bittergrounds: PUBG Properly Sues Epic Game For Jim Sterling 3 hours Not Watched
The Most Valuable Airspace in the World Wendover Productions 1 day Not Watched
@echohack
echohack / nuke_docker_cache.sh
Last active August 19, 2020 15:42
Nuke docker cache from orbit - Orbital Whale Nuke
alias docker_clean_images='docker rmi -f $(docker images -a)'
alias docker_clean_ps='docker rm $(docker ps --filter=status=exited --filter=status=created -q)'
docker kill $(docker ps -q)
docker_clean_ps
docker rmi $(docker images -a -q)
@echohack
echohack / convert_ogg_to_mp3.sh
Created May 4, 2017 07:10
Use ffmpeg to convert all ogg files in a folder to mp3
for name in *.ogg; do ffmpeg -i "$name" -ab 128k -map_metadata 0:s:0 "${name/.ogg/.mp3}"; done;
@echohack
echohack / git_status.sh
Created November 18, 2016 23:26
Recursive git status
find . -type d -name '.git' | while read dir ; do sh -c "cd $dir/../ && echo -e \"\nGIT STATUS IN ${dir//\.git/}\" && git status -s" ; done
@echohack
echohack / iis_web_config.ps1.erb
Created April 25, 2016 19:24
Example web config for iis using dsc + chef
configuration iis_web_config
{
Import-DscResource -Module xWebAdministration
xWebsite DefaultWebSite
{
Name = "<%= @site_name %>"
Ensure = "Present"
PhysicalPath = "<%= @site_path %>"
State = "Started"
@echohack
echohack / windows_features.ps1.erb
Created April 25, 2016 19:21
Install all the windows features from Chef
configuration windows_features
{
foreach ($feature in @(<% node['windows_base']['features'].each_with_index do |feature, index| %>
'<%= feature %>'<% if index != node['windows_base']['features'].size - 1 %>,<% end %><% end %>))
{
WindowsFeature $feature
{
Ensure = 'Present'
Name = $feature
}
@echohack
echohack / jenkins_plugins.rb
Last active February 12, 2016 20:26
A Chef Recipe that installs jenkins plugins
# Install these plugins
# Uses the Jenkins cookbook available from the Chef Supermarket
# All plugins from https://updates.jenkins-ci.org/download/plugins/
node.set['_jenkins']['plugins'] = [
{ name: 'active-directory', source: 'https://updates.jenkins-ci.org/download/plugins/active-directory/1.33/active-directory.hpi' },
{ name: 'artifactory', source: 'https://updates.jenkins-ci.org/download/plugins/artifactory/2.2.3/artifactory.hpi' },
{ name: 'build-monitor-plugin', source: 'https://updates.jenkins-ci.org/download/plugins/build-monitor-plugin/1.6+build.132/build-monitor-plugin.hpi' },
{ name: 'build-name-setter', source: 'https://updates.jenkins-ci.org/download/plugins/build-name-setter/1.3/build-name-setter.hpi' },
{ name: 'countjobs-viewstabbar', source: 'https://updates.jenkins-ci.org/download/plugins/countjobs-viewstabbar/1.0.0/countjobs-viewstabbar.hpi' },
{ name: 'downstream-ext', source: 'https://updates.jenkins-ci.org/download/plugins/downstream-ext/1.8/downstream-ext.hpi' },
@echohack
echohack / iis_ws_config.ps1.erb
Last active October 7, 2015 20:33
iis_ws_config
configuration iis_ws_config
{
Import-DscResource -Module xWebAdministration
xWebsite DefaultWebSite
{
Name = "<%= @site_name %>"
Ensure = "Present"
PhysicalPath = "<%= @site_path %>"
State = "Started"
@echohack
echohack / dsc_script.rb
Last active October 7, 2015 20:29
dsc_script example
iis_ws_config = "#{node['app']['file_cache_path']}\\iis_ws_config.ps1"
template iis_ws_config do
source 'iis_ws_config.ps1.erb'
variables(
ws_pool_user: env_credentials['ws_pool_user'],
ws_pool_pswd: env_credentials['ws_pool_pswd'],
site_name: ws['site_name'],
site_path: ws['site_path'],
formservice_path: ws['formservice_path'],
formsetservice_path: ws['formsetservice_path'],