Posts in snippets

🔢 Are Two N-Dimensional Real Subspaces Equal If They Have The Same Dimensions?

The topic of vector spaces and subspaces came up during a conversation with a dear friend and I could not resist reminiscing the past. They were studying for an upcoming test and I wanted to try and reinforce their intuition in some areas through a couple of examples and counter-examples.

Read more ...


📝 Emulating Semgrep SAST Pro Taint Mode with Join Mode

Semgrep’s Join Mode[1] is a seldom discussed yet interesting experimental feature of the Semgrep OSS SAST engine which can be used to achieve rudimentary taint interprocedural and interfile analyses. In this snippet I document how to combine one search mode and two join mode rules in order to identify intrafile, intraprocedural, interfile and interprocedural tainted sinks.

Read more ...


🥋 Codewars: Opposites Attract

Some members from http://guayahack.co came up with the idea for us to practise and discuss some code katas together and I couldn’t resist.

Read more ...


🧪 Snippet: General Publishing Test

In the best spirit of over-engineering for fun, this minimalistic post documents the way my snippets land over at jdsalaro/jdsalaro.com.

Read more ...


Kill (9-TERM) Processes with Expression(s) in Name or Call

I often find myself needing to terminate processes containing certain string literals or whose call matches a given regular expression. For that reason I probably re-write and tweak this one-liner several times a month; which is why I’m putting it out there.

Read more ...


🦊 Create GitLab Projects for Directory List via API

Read more ...