Skip to content

Instantly share code, notes, and snippets.

View ph00lt0's full-sized avatar
🌟
Stella navigatio

Mare Polaris ph00lt0

🌟
Stella navigatio
  • Operaciones Cibernéticas
  • α Ursae Minoris
View GitHub Profile
@ph00lt0
ph00lt0 / Orthogonal-Connectors.md
Last active March 11, 2024 16:14 — forked from jose-mdz/README.md
Orthogonal Diagram Connector

Orthogonal Connectors

This algorithm returns the points that form an orthogonal path between two rectangles.

How to Use

// Define shapes
const shapeA = {left: 50,  top: 50, width: 100, height: 100};
const shapeB = {left: 200, top: 200, width: 50, height: 100};
@ph00lt0
ph00lt0 / languagetool.sh
Created January 7, 2024 20:32 — forked from eliocapelati/languagetool.sh
Grammarly replacement
#!/usr/bin/env bash
echo "Installing Language Tool server using brew" &&
brew install languagetool &&
echo "Starting Language Tool Service" &&
brew services start languagetool
# install the browser extension from: https://languagetool.org/#firefox_chrome
# Go to extension options > advanced > LanguageTool server > Select "Local server (localhost) - requires LanguageTool server running locally"
# Copyright by ph00lt0
# Managed by ph00lt0 at https://github.com/ph00lt0
# License: available in repo
facebook.com
instagram.com
@ph00lt0
ph00lt0 / vm-shrink.sh
Created September 28, 2022 21:05
Shrink size vm
dd if=/dev/zero of=zerofillfile bs=1M
rm zerofillfile
(shut down VM)
Host: VBoxManage modifyhd --compact (insert path to VDI file)
@ph00lt0
ph00lt0 / robots.txt
Last active September 29, 2022 15:42
Robots disallow
User-agent: archive.org_bot
Disallow: /
User-agent: ia_archiver
Disallow: /
User-agent: web collector
Disallow: /
User-agent: Sniper
@ph00lt0
ph00lt0 / macos-ffsend-shortcut.sh
Last active September 11, 2022 11:18
Code for the shortcut to share files to ffsend
#!/bin/sh
ffsend upload --no-interact --downloads 3 --expiry-time 5d --copy "$@";
terminal-notifier -message "Files have been uploaded" -title "⬆ Send" -open 'Clipboard' -contentImage https://user-images.githubusercontent.com/15004290/189523837-9caa68b6-cb84-49e0-a52d-25c6feae3bf0.png;
@ph00lt0
ph00lt0 / macos-hide-app-from-dock.plist
Last active August 24, 2022 11:55
Add this to the app' Info.plist within the <dict> element
...
<dict>
<key>LSUIElement</key>
<string>1</string>
...
@ph00lt0
ph00lt0 / nginx-redirect-rule
Created July 14, 2022 23:44
Nginx Redirect Rule
server {
...
location / {
rewrite ^/app/uploads/armember/(.*)$ /vault.php?listing=$1 last;
}
...
}
@ph00lt0
ph00lt0 / nginx-redirect
Created July 14, 2022 23:13
NGINX redirect folder
location ~ ^/images/(.*) {
return 301 /assets/images/$1;
}
@ph00lt0
ph00lt0 / macos-hidden-apps-transparant-dock.sh
Created July 13, 2022 00:34
MacOS make hidden apps transparent in Dock
defaults write com.apple.Dock showhidden -bool TRUE && killall Dock