rune / Folder notes
0 лайк(-ов)
0 форк(-ов)
1 файл(-ов)
Последняя активность
A small zsh/bash/terminal function that shows a note on top of your folder
Place this bulk in your .bashrc or .zshrc file (or any other file that is sourced at terminal start.
For this to work you need [eza](https://github.com/eza-community/eza) installed.
Create a file named `.note` in any folder! Whatever you write will show on the top when your using the `ln` command.
Remember to `source .zshrc` to make the function active.
`ln() {[ -f .note ] && echo -e "📌 Note: $(cat .note)\n"; command eza -a -lOo "$@";}`
rune / Allow App to start (Mac OS)
0 лайк(-ов)
0 форк(-ов)
1 файл(-ов)
Последняя активность
If MacOS Gatekeeper stops you un-signed app to start, you can try this!
| 1 | sudo xattr -rd com.apple.quarantine /Applications/<name of app> |
rune / random_numbers
0 лайк(-ов)
0 форк(-ов)
1 файл(-ов)
Последняя активность
Forumal for random numbers in Excel
| 1 | =ROUND(RAND()*10000+1,0) |
rune / hide-version
0 лайк(-ов)
0 форк(-ов)
1 файл(-ов)
Последняя активность
Hide version in Yourls instance
| 1 | <?php |
| 2 | /* |
| 3 | Plugin Name: Hide Version String |
| 4 | Plugin URI: https://gist.gitlab.pm/rune/848db1196f6e4b5d9002fae1cccaf6f3 |
| 5 | Description: Plugin to hide the version string in the footer. |
| 6 | Version: 0.1 |
| 7 | Author: Rune |
| 8 | Author URI: https://blog.rune.pm |
| 9 | */ |
| 10 |
rune / AI.robots.txt
0 лайк(-ов)
0 форк(-ов)
1 файл(-ов)
Последняя активность
A robots.txt file disallowing indexing by AI scrapers
| 1 | User-agent: AI2Bot |
| 2 | User-agent: Ai2Bot-Dolma |
| 3 | User-agent: Amazonbot |
| 4 | User-agent: Applebot |
| 5 | User-agent: Applebot-Extended |
| 6 | User-agent: Bytespider |
| 7 | User-agent: CCBot |
| 8 | User-agent: ChatGPT-User |
| 9 | User-agent: Claude-Web |
| 10 | User-agent: ClaudeBot |
rune / Default .gitignore
0 лайк(-ов)
0 форк(-ов)
1 файл(-ов)
Последняя активность
A default .gitignore for python projects
| 1 | # Byte-compiled / optimized / DLL files |
| 2 | __pycache__/ |
| 3 | *.py[cod] |
| 4 | *$py.class |
| 5 | |
| 6 | # C extensions |
| 7 | *.so |
| 8 | |
| 9 | # Distribution / packaging |
| 10 | .Python |
rune / Mail validator
0 лайк(-ов)
0 форк(-ов)
1 файл(-ов)
Последняя активность
JS email address validator
| 1 | import { regex } from '../common' |
| 2 | |
| 3 | const emailRegex = /^(?:[A-z0-9!#$%&'*+/=?^_`{|}~-]+(?:\.[A-z0-9!#$%&'*+/=?^_`{|}~-]+)*|"(?:[\x01-\x08\x0b\x0c\x0e-\x1f\x21\x23-\x5b\x5d-\x7f]|[\x01-\x09\x0b\x0c\x0e-\x7f])*")@(?:(?:[a-z0-9](?:[a-z0-9-]*[a-z0-9])?\.)+[a-z0-9]{2,}(?:[a-z0-9-]*[a-z0-9])?|\[(?:(?:25[0-5]|2[0-4][0-9]|[01]?[0-9][0-9]?)\.){3}(?:25[0-5]|2[0-4][0-9]|[01]?[0-9][0-9]?|[a-z0-9-]*[a-z0-9]:(?:[\x01-\x08\x0b\x0c\x0e-\x1f\x21-\x5a\x53-\x7f]|\\[\x01-\x09\x0b\x0c\x0e-\x7f])+)\])$/i; |
| 4 | |
| 5 | export default regex(emailRegex) |
rune / Disable M$ Defender Mac
0 лайк(-ов)
0 форк(-ов)
1 файл(-ов)
Последняя активность
| 1 | launchctl unload /Library/LaunchAgents/com.microsoft.wdav.tray.plist |
| 2 | sudo launchctl unload /Library/LaunchDaemons/com.microsoft.fresno.plist |
| 3 | |
| 4 | sudo launchctl unload /Library/LaunchDaemons/com.tanium.taniumclient.plist |
rune / expand URL
0 лайк(-ов)
0 форк(-ов)
1 файл(-ов)
Последняя активность
| 1 | expandurl () |
| 2 | { |
| 3 | [[ -z "$1" ]] && echo "Usage: expandurl <short url>" && return 1; |
| 4 | curl -s -IL "$1" | awk '/[Ll]ocation/ { print $2 }' |
| 5 | } |
rune / Find .NET version
0 лайк(-ов)
0 форк(-ов)
1 файл(-ов)
Последняя активность
| 1 | reg query "HKLM\SOFTWARE\Microsoft\Net Framework Setup\NDP\v4" /s | find "Version" |
Новее
Позже