Skip to content

Instantly share code, notes, and snippets.

@devdazed
devdazed / slack-pagerduty-oncall.py
Last active April 18, 2024 10:28
Updates a Slack User Group with People that are on call in PagerDuty
#!/usr/bin/env python
from __future__ import print_function
import json
import logging
from urllib2 import Request, urlopen, URLError, HTTPError
from base64 import b64decode
@yano3nora
yano3nora / aws.md
Last active April 18, 2024 10:24
[aws: Amazon Web Service] Cloud platform service like IaaS, PaaS SaaS by Amazon. #aws

Overview

aws.amazon.com
AWS ドキュメント - docs.aws.amazon.com
AWS サービス別資料 - aws.amazon.com

Amazon 様の提供するクラウドコンピューティングサービスの総称。従量課金制。基本 IaaS - Infrastructure as a Service だが PaaS - Platform as a Service ( Lamdba や Elastic Beanstalk ) や SaaS - Software as a Service ( S3 や CloudWatch ) などのサービスも展開している。

VM、DB / Storage / Network / 開発環境 / メディア / メール / AI / IoT / セキュリティ / AR / ゲーム開発 / マーケティング ... など幅広いサービスが存在する。基本設計・技術選定時に「まずは AWS サービスで近しいことができないか?」を考えて設計するとよき。

AWS CLI

vim.g.base46_cache = vim.fn.stdpath('data') .. '/base46_cache/'
  • Make sure nvconfig module is in your path ( remove last line's chadrc stuff )

Install plugin

  • Base46 just compiles your theme + settings into bytecode , so its not a startup plugin.
@thegreatestminer
thegreatestminer / encoded-20201212150102.txt
Created December 12, 2020 15:01
MobaXTerm Professional x64 License Key [READ COMMENTS]
UEsDBBQAAAAIABNQjFGCf/GfLgAAACwAAAAHAAAAUHJvLmtleTMqdncpCXQOKDAp9woMzEo1MTVOrHAzTjTLME7VNs1LK8owTjQpcU8tcuLlAgBQSwECFAAUAAAACAATUIxRgn/xny4AAAAsAAAABwAAAAAAAAAAAAAAAAAAAAAAUHJvLmtleVBLBQYAAAAAAQABADUAAABTAAAAAAA=
@Offirmo
Offirmo / intercept.js
Last active April 18, 2024 10:20
[Intercepting fetch and/or XHR in JavaScript] #JavaScript #browser #growth
/////// fetch ///////
const originalFetch = window.fetch;
window.fetch = async (...args) => {
const fetchee = await originalFetch(...args);
return new Proxy(fetchee, {});
};
new Proxy(target, {
@Masuzu
Masuzu / gaps.sql
Last active April 18, 2024 10:20
SQL Islands and Gap Recipe - Given a list of 1D segments which may overlap, the islands and gaps problem aim is to union together the overlapping segments and find gaps between non overlapping segments
WITH SegmentGroupings AS (
SELECT ROW_NUMBER () OVER (ORDER BY SegmentId, SegmentStart, SegmentEnd) AS Row,
SegmentId,
SegmentStart,
SegmentEnd,
MAX(SegmentEnd) OVER (
PARTITION BY SegmentId
ORDER BY SegmentStart, SegmentEnd
ROWS BETWEEN UNBOUNDED PRECEDING AND 1 PRECEDING
) AS PreviousSegmentEnd
@smx-smx
smx-smx / XZ Backdoor Analysis
Last active April 18, 2024 10:13
[WIP] XZ Backdoor Analysis and symbol mapping
XZ Backdoor symbol deobfuscation. Updated as i make progress
@helje5
helje5 / SwiftUIDataUnitTest.swift
Created August 17, 2023 16:19
Unit Testing a SwiftUI Query
//
// Created by Helge Heß.
// Copyright © 2023 ZeeZide GmbH.
//
import XCTest
import UIKit
import SwiftData
import SwiftUI

Project Design Document: Golf Range Simulator

  • Created at: mm/dd/yyyy
  • Author: Name

Project Concept

1. Player Control

You control a [PLAYER TYPE] in this [TOP DOWN / SIDE VIEW / ISOMETRIC] game where [USER INPUT TYPE] makes the player [DESCRIPTION OF PLAYER MOVEMENT].

@mmocny
mmocny / inp-devtools-watch.js
Created April 14, 2023 14:12
Add these snippets to DevTools (console) Watch expressions
// max-INP:
(()=>{let o=globalThis;return void 0===o.winp&&(o.winp=0,new PerformanceObserver(n=>{for(let e of n.getEntries()){if(!e.interactionId)continue;o.winp=Math.max(e.duration,o.winp);let r=o=>o<=200?"color: green":o<=500?"color: yellow":"color: red";console.log(`%c[Interaction: ${e.name.padEnd(12)}] %cDuration: %c${e.duration}`,"color: grey; font-family: Consolas,monospace","",r(e.duration))}}).observe({type:"event",durationThreshold:0,buffered:!0})),o.winp})();
// interactionCount
performance.interactionCount;