Some notes and tools for reverse engineering / deobfuscating / unminifying obfuscated web app code.
| import base64 | |
| import tempfile | |
| from typing import Optional | |
| from pydantic import BaseModel | |
| from modal import Image, Secret, Stub, build, enter, gpu, web_endpoint | |
| whisper_image = ( | |
| Image.micromamba() |
| FROM debian:11 AS build | |
| RUN apt-get update \ | |
| && apt-get install -y libsdl2-dev alsa-utils g++ make wget | |
| RUN mkdir /whisper && \ | |
| wget -q https://github.com/ggerganov/whisper.cpp/tarball/master -O - | \ | |
| tar -xz -C /whisper --strip-components 1 | |
| WORKDIR /whisper |
| const MY_DOMAIN = "agodrich.com" | |
| const START_PAGE = "https://www.notion.so/gatsby-starter-notion-2c5e3d685aa341088d4cd8daca52fcc2" | |
| const DISQUS_SHORTNAME = "agodrich" | |
| addEventListener('fetch', event => { | |
| event.respondWith(fetchAndApply(event.request)) | |
| }) | |
| const corsHeaders = { | |
| "Access-Control-Allow-Origin": "*", |
| @echo off | |
| REM Make sure that the path to the script is correct! | |
| @bash -l -c "~/bin/gitkraken-wsl-bash.sh %*" |
| <!DOCTYPE html> | |
| <div style="display:flex;justify-content:center;align-items:center;"> | |
| <div style="width:400px;height:300px;"> | |
| <div data-video="I_2D8Eo15wE" data-autoplay="0" data-loop="1" id="youtube-audio"></div> | |
| <div style="clear:both;margin:10px;text-align:center"> | |
| </div> | |
| </div> | |
| </div> |
This was created years ago; at the time I'd been a Shibboleth admin for nearly a decade but we needed something that could handle OIDC/OAuth and that explicitly supported OpenJDK. After a lot of investigation, I really liked Keycloak/Red Hat Single Sign-On. More details here: Gluu vs keycloack vs wso2 identity management
(Items in bold indicate possible concerns)
You have to do 2 things in order to allow your container to access your host's postgresql database
- Make your postgresql listen to an external ip address
- Let this client ip (your docker container) access your postgresql database with a given user
Obs: By "Host" here I mean "the server where docker is running on".
Find your postgresql.conf (in case you don't know where it is)
$ sudo find / -type f -name postgresql.conf
If you are an Oh-my-zsh user, see the Laravel 5 plugin
For the rest of us Bash users, all of the Laravel Artisan autocomplete solutions out there require installing a composer package to get a list of artisan commands. Turns out this isn't really necessary. Simply add the provided code in ~/.bash_profile ( or similarly sourced file ) and you'll get artisan command tab completes on any project on your system.
_artisan()
{
COMP_WORDBREAKS=${COMP_WORDBREAKS//:}
COMMANDS=`php artisan --raw --no-ansi list | sed "s/[[:space:]].*//g"`
COMPREPLY=(`compgen -W "$COMMANDS" -- "${COMP_WORDS[COMP_CWORD]}"`)