Skip to content

Instantly share code, notes, and snippets.

View tiegz's full-sized avatar
👋
Working from home

Tieg Zaharia tiegz

👋
Working from home
View GitHub Profile
@rollwagen
rollwagen / my_own_cheat_sheet.md
Last active July 14, 2022 04:07
Useful windows command line commands for incident investigations. #windows #powershell #wmic

Unusual Processes, Services, Reg keys, Scheduled tasks, Accounts

Unusual Processes

cmd.exe

taskmgr.exe
tasklist
wmic process list full
@cainlevy
cainlevy / retries.md
Last active October 26, 2021 01:38
sidekiq retries reference

Sidekiq Retries

Want to use Sidekiq's exponential backoff, but give up sooner? This table will help you pick a retry number.

class MyWorker
  ...
  sidekiq_options retry: N
  ...
end
@willurd
willurd / web-servers.md
Last active September 19, 2024 12:43
Big list of http static server one-liners

Each of these commands will run an ad hoc http static server in your current (or specified) directory, available at http://localhost:8000. Use this power wisely.

Discussion on reddit.

Python 2.x

$ python -m SimpleHTTPServer 8000
@rgreenjr
rgreenjr / postgres_queries_and_commands.sql
Last active September 19, 2024 05:47
Useful PostgreSQL Queries and Commands
-- show running queries (pre 9.2)
SELECT procpid, age(clock_timestamp(), query_start), usename, current_query
FROM pg_stat_activity
WHERE current_query != '<IDLE>' AND current_query NOT ILIKE '%pg_stat_activity%'
ORDER BY query_start desc;
-- show running queries (9.2)
SELECT pid, age(clock_timestamp(), query_start), usename, query
FROM pg_stat_activity
WHERE query != '<IDLE>' AND query NOT ILIKE '%pg_stat_activity%'