Skip to content

Instantly share code, notes, and snippets.

@zoellner
zoellner / cognito_oidc_thumbprint.js
Last active April 25, 2024 10:09
node.js script to obtain the thumbprint for a Cognito User Pool to use as OpenID Connect Identity Provider
const openssl = require('openssl-wrapper');
const axios = require('axios');
const config = {
region: 'us-east-1',
userPoolId: 'your-user-pool-id'
};
getThumbprint()
.then(console.log)
@mm0202
mm0202 / docker-compose.yml
Last active April 25, 2024 10:09
logstash+elasticsearch+kibanaの設定。elasticsearchの永続化用パスの設定部分の書き換えと`docker network create`でelastic-stackを追加すれば、動くはず。
version: '3.0'
services:
logstash:
image: docker.elastic.co/logstash/logstash:6.3.2
restart: always
container_name: logstash
networks:
- elastic-stack
elasticsearch:
@loleg
loleg / generate.py
Last active April 25, 2024 10:06
A small Python script to generate certificates using an SVG template
#!/usr/bin/python
from xml.dom import minidom
import csv, os, re, string, subprocess
from argparse import ArgumentParser
import tempfile
# Create a SVG file with nodes having at least one of:
# name_black
# name_white
@kensleDev
kensleDev / Download.ps1
Last active April 25, 2024 10:02
Dev terminal setup for Powershell
$powershellDir = "~\.config\powershell"
New-Item -ItemType Directory -Force -Path $powershellDir
cd $powershellDir
Invoke-WebRequest -Uri 'https://gist.githubusercontent.com/kensleDev/13f9290876e782b2e67aab8b463e55f7/raw/66cdc60aa61da8a88a480c14b5fe817beba7dab9/profile.ps1' -OutFile 'profile.ps1'
Invoke-WebRequest -Uri 'https://gist.githubusercontent.com/kensleDev/13f9290876e782b2e67aab8b463e55f7/raw/cda7a409a315bf767f830897b0b8f53611e11f1e/Install.ps1' -OutFile 'Install.ps1'
Invoke-WebRequest -Uri 'https://gist.githubusercontent.com/kensleDev/13f9290876e782b2e67aab8b463e55f7/raw/13c1f7eb8ffa50e385c3b960c76ded9389bdaf3e/takuya.omp.json' -OutFile 'takuya.omp.json'
@Klerith
Klerith / flutter-instalaciones.md
Last active April 25, 2024 10:02
Instalaciones del curso de Flutter - Móvil de cero a experto
@asgaut
asgaut / Microsoft.PowerShell_profile.ps1
Last active April 25, 2024 10:02
My powershell startup script + Oh-my-posh config
# Chocolatey profile
$ChocolateyProfile = "$env:ChocolateyInstall\helpers\chocolateyProfile.psm1"
if (Test-Path($ChocolateyProfile)) {
Import-Module "$ChocolateyProfile"
}
# Set Conda enviroment variables (same as done for Anaconda Powershell Prompt (Miniconda3))
$CondaHook = "$HOME\Miniconda3\shell\condabin\conda-hook.ps1"
if (Test-Path($CondaHook)) {
@tobyselway
tobyselway / laravel_setup.md
Last active April 25, 2024 10:01
Initial Setup for Laravel Projects

Initial Setup

1. Clone the repository

Find a location on your computer where you want to store the project. A directory made for projects is generally a good choice.

Launch a bash console there and clone the project.

git clone https://github.com/organization/project.git

2. cd into the project

<!DOCTYPE html>
<html>
<head>
<style>
#map {
height: 400px;
width: 100%;
}
#searchTextField {
@QNimbus
QNimbus / gitclean.sh
Created January 10, 2024 11:31
Git scripts & tools #git #scripts
#!/bin/bash
#
# By Zibri (2019)
# Modified by @rokibhasansagar
# Modified by @qnimbus
#
# Bash script to remove all revisions from github or gist repository.
#
# Usage: gitclean git-repo-url
#
@eneserdo
eneserdo / understanding_mha.ipynb
Last active April 25, 2024 09:55
Understanding torch.nn.MultiheadAttention
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.