Skip to content

Instantly share code, notes, and snippets.

@xpepper
xpepper / how.to.distill.core.domain.from.legacy.app.md
Last active April 26, 2024 08:33
Thomas Pierrain & Bruno Boucard - How To Distill The Core Domain From Your Legacy App (Live Coding)
@sbolel
sbolel / instagram-comment-activity-deleter.js
Created April 2, 2024 14:21
Automate the deletion of all your Instagram comments from the 'Your Activity' section. Perfect for quick digital clean-up.
/**
* Deletes all user's comments from a specific Instagram page.
* This function automates the process of selecting and deleting user comments
* from the "Your Activity" section on Instagram.
*
* How to use:
* 1. Navigate to the Instagram comments page by going to:
* https://www.instagram.com/your_activity/interactions/comments
* 2. Open the developer console in your web browser:
* - Chrome/Firefox: Press Ctrl+Shift+J (Windows/Linux) or Cmd+Option+J (Mac)
@Sh4yy
Sh4yy / clx.go
Created April 25, 2024 20:39
Generate CLI commands for common tasks.
package main
import (
"context"
"errors"
"fmt"
"io"
"log"
"os"
"runtime"
<!DOCTYPE html>
<!-- "20 line router" -->
<!-- http://joakim.beng.se/blog/posts/a-javascript-router-in-20-lines.html -->
<html>
<head>
<meta charset="utf-8">
<title>Building a router</title>
<script>
// Simple JavaScript Templating
// John Resig - https://johnresig.com/ - MIT Licensed
@runxel
runxel / apple-crap-destroyer.ps1
Last active April 26, 2024 08:31
Powershell script for deleting unwanted apple crap files
# powershell script for deleting unwanted apple crap files – mostly on "infected" USB-sticks
# like ._somecrap
$theSource = "E:\" # <<<<< insert drive here
Get-Childitem $theSource -Include @("._*", ".DS_Store", ".fseventsd", ".TemporaryItems", ".Trashes", ".Spotlight-V100") -Recurse -Force -ErrorAction SilentlyContinue | Remove-Item -Force -Recurse
0 is not stdin on windows
#7 started for future.
ability to kill sudo background process
a bit of refactoring, minor improvements
A breath of fresh air
accept arbitrary size tokens
accept arbitrary types as nested error
Account for DataCenter mode while looking for hook scripts
Activity reviewing is now avaiable
actually, clear status on exit
@Fusion
Fusion / README.md
Last active April 26, 2024 08:30
Use a SSH key stored, encrypted, on a USB stick

What does this do for me?

You will be able to keep your public/private key pairs on a USB stick with a reasonable level of security.

Using this script, you will create a local ssh keystore, use it to decrypt your key, and delete it when you are done.

Platforms?

  • OS X, Linux: fully supported
  • Windows: some manual intervention required
@marcingrzejszczak
marcingrzejszczak / sc-contract-polyglot.adoc
Last active April 26, 2024 08:30
Spring Cloud Contract Polyglot Support

Spring Cloud Contract Polyglot Support

Table of contents

  • What is Contract Testing

    • different types of tests - all about fast feedback

    • end to end testing as a potential solution to integration testing

    • brittlness and slowness as a source of frustration

    • contract testing as a potential solution to the problem

  • Introduction to the maven nomenclature

@warpfork
warpfork / warpforge-api-evolution-and-recursive-expanders-in-build-plans.md
Last active April 26, 2024 08:29
warpforge evolution directions (and recursive expanders for build plans)

This is a working document to snapshot some thoughts about the evolution of Warpforge and its APIs.

Observations (that lead to some desires for changes)

  • We should seriously consider moving the Catalogs to an even yet plainer format.
    • The Catalog format as it stands today is a pain to edit manually, due to its inclusion of hashes. (This has been remarked upon by essentially every user to date.)
    • We also derive very little value from the use of hashes in the middle of the Catalog data, because in practice, we find we're continuously embedding the Catalog data in other version control systems, which already contain their own checksums. While there is elegance to having our own hashing scheme provide our own bespoke incrementally verifiable trees, there is little strong demonstration of that providing direct value (and very many demonstrations of it creating problematic friction).
    • The Catalog format seems like it could become more generally usable (and thus more appealing for others to interact
@im-knots
im-knots / sre-rampup.md
Last active April 26, 2024 08:29
SRE Projects for Rampup

SRE Intro Projects

Basics of Web Development

  1. Create a Git repository on Github or elsewhere and clone it. All of your following work must be commited regularly to this repository
  2. Create a basic web application using a modern front-end framework (Hint: npx create-react-app). Familiarize yourself with the basics of front-end web development. Learn modern Typescript, props, imports. Create multiple pages, navigation, routers. Style it. Import material-ui components. Become fluent and at ease navigating a modern web app code.
  3. Create a REST API using modern backend frameworks (Hint: Flask-Python). Connect your API to an SQL database. Write handlers to CRUD store resources of your choice in a database table. Write a test suite for your API with >90% coverage and be able to quickly run your test suite to validate everything is still working at all times. Become fluent and at ease navigating a modern backend app code.
  4. Use your web client to pull your data from your API and display it nicely. Le