Skip to content

Instantly share code, notes, and snippets.

View j1g54w1337's full-sized avatar
🎲
Playing a game...

John Kramer j1g54w1337

🎲
Playing a game...
View GitHub Profile
@j1g54w1337
j1g54w1337 / disabling-photoanalysisd.md
Created February 7, 2023 20:26 — forked from huksley/disabling-photoanalysisd.md
Disabling photoanalysisd

For what it's worth (and with all the usual disclaimers about potentially making your mac unstable by disabling system services), here's some commands that will manipulate this service and services like it. Note the $UID in the command, that's just a bash shell variable that will resolve to some number. That's your numeric UID. You just run these commands from a Terminal command line. No special privileges needed.

If you want to disable it entirely, the first command stops it from respawning, and the second kills the one that is currently running:

launchctl disable gui/$UID/com.apple.photoanalysisd
launchctl kill -TERM gui/$UID/com.apple.photoanalysisd

(If you kill it without disabling it will die, but a new one will respawn and pick up where the old one left off)

@j1g54w1337
j1g54w1337 / compile-ffmpeg.md
Last active January 7, 2023 22:10
Compiling FFMpeg

Dependencies

apt install -y libunistring-dev

Broken & Skipped

--enable-libaom \

Compling ffmpeg

cd ~/ffmpeg_sources && \
wget -O ffmpeg-snapshot.tar.bz2 https://ffmpeg.org/releases/ffmpeg-snapshot.tar.bz2 && \
@j1g54w1337
j1g54w1337 / GoogleDorking.md
Created June 6, 2022 10:48 — forked from sundowndev/GoogleDorking.md
Google dork cheatsheet

Google dork cheatsheet

Search filters

Filter Description Example
allintext Searches for occurrences of all the keywords given. allintext:"keyword"
intext Searches for the occurrences of keywords all at once or one at a time. intext:"keyword"
inurl Searches for a URL matching one of the keywords. inurl:"keyword"
allinurl Searches for a URL matching all the keywords in the query. allinurl:"keyword"
intitle Searches for occurrences of keywords in title all or one. intitle:"keyword"
@j1g54w1337
j1g54w1337 / use-multiple-github-gitlab-accounts.md
Last active November 11, 2022 10:19
Use multiple SSH keys for multiple Github Accounts

Multiple SSH Keys settings for different github account

Create different public keys for each Github/Gitlab account

for example, 2 keys created at:

~/.ssh/id_rsa-j1g54w
~/.ssh/id_rsa-itmagix
@j1g54w1337
j1g54w1337 / handy-pentest-links.md
Created February 10, 2022 08:52
Handy Pentest Links
@j1g54w1337
j1g54w1337 / cheat-sheet-basic-linux-privilege-escalation.md
Created February 10, 2022 08:49
Cheat sheet basic Linux Privilege escalation

Cheat sheet basic Linux Privilege Escalation

Cheat sheet - Basic Linux Privilege Escalation

Enumeration is the key. (Linux) privilege escalation is all about:

Collect - Enumeration, more enumeration and some more enumeration.
@j1g54w1337
j1g54w1337 / pass-multi-line-to-file.md
Created February 10, 2022 08:48
Pass multi line to file in shell
cat <<EOF > print.sh
#!/bin/bash
echo \$PWD
echo $PWD
EOF
@j1g54w1337
j1g54w1337 / dotfiles.md
Last active February 2, 2022 10:27
setting up a dotfiles repo

Setting up a dotfiles repo

Initial setup

git init --bare $HOME/.myconfigs
echo 'alias config="/usr/bin/git --git-dir=$HOME/.myconfigs/ --work-tree=$HOME"' >> $HOME/.zshrc
source ~/.zshrc
config config --local status.showUntrackedFiles no

Adding first file to the repo

@j1g54w1337
j1g54w1337 / plesk.md
Last active February 2, 2022 09:35
plesk tips and tricks
@j1g54w1337
j1g54w1337 / vim.md
Last active February 6, 2022 17:20
vim tips and trick

Vim tips and tricks

Delete word

dw

Delete from cursor position to end of line

d$ or D

Delete all lines from current cursor position to below

:+,$d