Skip to content

Instantly share code, notes, and snippets.

@CelsoSantos
CelsoSantos / docker-compose.yaml
Last active April 30, 2024 11:02
Docker_Utils.md
services:
netshoot:
image: nicolaka/netshoot
command: tcpdump -i eth0 -w /data/target_service_name.pcap
network_mode: service:target_service_name
volumes:
- $PWD/data:/data
# https://github.com/murar8/local-jwks-server
jwks-server:
{
"design": {
"name": "p:814:794",
"version": "50.0.0"
},
"layout": "storyidea",
"content": [
{
"identifier": "p:814:794.header",
"id": "doc-1f73vrdo40",
@CelsoSantos
CelsoSantos / sample.ts
Last active January 16, 2021 16:13
IG oAuth Sample #typescript #instagram
private instagramLink(): Promise < any > {
return new Promise(() => {
// If this is the desktop open a new window... we have to see how to close it later though
let BASE_URL = this.globals.get("base_url");
let browser = new InAppBrowser(BASE_URL + this.INST_GET_TOKEN, "_blank", "EnableViewPortScale=yes,closebuttoncaption=Done");
let credentials: any;
browser.show();
return browser.on("loadstop").subscribe(
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
@CelsoSantos
CelsoSantos / Dockerfile
Created June 25, 2020 17:36
devcontainer compose
#-------------------------------------------------------------------------------------------------------------
# Copyright (c) Microsoft Corporation. All rights reserved.
# Licensed under the MIT License. See https://go.microsoft.com/fwlink/?linkid=2090316 for license information.
#-------------------------------------------------------------------------------------------------------------
FROM openjdk:11-jdk
# This Dockerfile adds a non-root user with sudo access. Use the "remoteUser"
# property in devcontainer.json to use it. On Linux, the container user's GID/UIDs
# will be updated to match your local UID/GID (when using the dockerFile property).
@CelsoSantos
CelsoSantos / Dockerfile
Created June 25, 2020 17:24
devcontainer-old
#-------------------------------------------------------------------------------------------------------------
# Copyright (c) Microsoft Corporation. All rights reserved.
# Licensed under the MIT License. See https://go.microsoft.com/fwlink/?linkid=2090316 for license information.
#-------------------------------------------------------------------------------------------------------------
FROM openjdk:11-jdk
# This Dockerfile adds a non-root user with sudo access. Use the "remoteUser"
# property in devcontainer.json to use it. On Linux, the container user's GID/UIDs
# will be updated to match your local UID/GID (when using the dockerFile property).
@CelsoSantos
CelsoSantos / K8s: List Storage Space Available
Created April 30, 2020 17:59
K8s: List Storage Space Available #k8s
#If there's a running pod with mounted PV from the PVC,
kubectl -n <namespace> exec <pod-name> df
#...will list all file systems, including the mounted volumes, and their free disk space.
@CelsoSantos
CelsoSantos / keybase.md
Last active February 26, 2020 10:12
keybase.md

Keybase proof

I hereby claim:

  • I am celsosantos on github.
  • I am zed_blade (https://keybase.io/zed_blade) on keybase.
  • I have a public key ASDYGKx9lQyV7p-uMHfx2SSjW4Z7yTqFqFARk4LLS6qzlgo

To claim this, I am signing this object:

@CelsoSantos
CelsoSantos / keybase.md
Created February 26, 2020 10:09
keybase.md
@CelsoSantos
CelsoSantos / K8s: list all resource types
Created December 20, 2019 15:52
K8s: list all resource types
kubectl api-resources --verbs=list -o name | xargs -n 1 kubectl get -o name