Install MacPorts
sudo port install clamav
You have to locate ClamAV config files, type this, it will fail and print the config folder:
freshclam
#!/bin/sh | |
sudo xattr -lr /Applications/Google\ Chrome.app | |
sudo xattr -cr /Applications/Google\ Chrome.app | |
sudo codesign -f -s - /Applications/Google\ Chrome.app |
#!/bin/bash | |
####################### | |
# Usage: | |
# ./upload.sh <foldername> <filename> | |
# | |
# Foldername must be globally unique. | |
# Fill in the USER and PASS variable below. | |
# | |
# Known issues: filename with spaces or filename with full or relative path |
# 3D rotating cube in Python - only 15 lines of code https://imgur.com/87vnopo.gif | |
import tkinter, math, time | |
c = tkinter.Canvas(tkinter.Tk(), width=600, height=600) | |
c.pack() | |
while t := int(time.time()*60) : | |
c.update() | |
c.delete("all"); n = [] | |
javascript:(function(){document.querySelector("video").style.filter = "brightness(0.5)";})() |
<HTML> | |
<HEAD> | |
<HTA:APPLICATION ID="HelloExample" | |
BORDER="thin" | |
SCROLL="no" | |
BORDERSTYLE="complex"/> | |
<TITLE>HTA - Hello World</TITLE> | |
<script> | |
function fv(){ | |
alert("hello"); |
<?php | |
header('Content-type: application/xml'); | |
echo "<rss version='2.0' xmlns:atom='http://www.w3.org/2005/Atom'>\n"; | |
echo "<channel>\n"; | |
echo "<title>YouTube Channels RSS Feed</title>\n"; | |
echo "<description>YouTube Channels RSS Feed</description>\n"; | |
echo "<link>http://{$_SERVER[HTTP_HOST]}</link>\n"; | |
echo "<atom:link href='http://{$_SERVER[HTTP_HOST]}' rel='self' type='application/rss+xml' />\n"; | |
// Feed URLs - https://commentpicker.com/youtube-channel-id.php |
#!/bin/bash | |
# Creates an index.html file from every mp3,mp4 embedded, and every pdf linked in the html. | |
echo -e "<meta charset='utf-8'>\n<h1> Archivum</h1>\n" >>index.html | |
SAVEIFS=$IFS | |
IFS=$(echo -en "\n\b") | |
if [ $(ls -1 *.mp4 | wc -l) -eq 1 ] |
<!-- | |
Pomodoro timer | |
-------------- | |
The counter works unreliably when the tab is inactive (the browser slows down the counter). | |
TODO: Rewrite to date + time based solution instead of setInterval. | |
--> | |
<!DOCTYPE html> |
Install MacPorts
sudo port install clamav
You have to locate ClamAV config files, type this, it will fail and print the config folder:
freshclam
# The 500 biggest folders except Google Drive, Trash etc... | |
sudo du -hx / 2>/dev/null | sort -rh | grep -v "Google Drive" | grep -v "REPOS" | grep -v "Fotókönyvtár" | grep -v ".Trash" | grep -v "CameraUploads" | head -500 | |
# The 500 biggest file that is older than 1 year | |
sudo find / -type f -mtime +365 -exec ls -laT {} \; 2>/dev/null | awk '{print $5,$9,$10}' | sort -rh | head -500 |