dd if=/dev/zero of=/home/user/luksvolume1 bs=1M count=512
| #!/bin/bash | |
| for i in *.webp; do ffmpeg -i "$i" "${i%.webp}.jpg" ; done | |
| for i in *.webm; do ffmpeg -i "$i" "${i%.webm}.mp4" ; done |
| import os | |
| # Try to connect to a socket | |
| def isOpen(ip,port): | |
| import socket | |
| s = socket.socket(socket.AF_INET, socket.SOCK_STREAM) | |
| s.settimeout(2) | |
| try: | |
| s.connect((ip, int(port))) | |
| s.shutdown(2) |
| paywall* | |
| *paywall | |
| ! Los Angeles Times (latimes.com) | |
| ||californiatimes.com^*/Bootstrap.js$script | |
| ||californiatimes.com/meter/$script | |
| ||californiatimes.com/meteringjs/$script | |
| ||californiatimes.com/newsletter-campaign-manager/$script | |
| ! The New York Times (nytimes.com) | |
| ||meter-svc.nytimes.com^ | |
| ||nytimes.com^*/metered_assets/ |
| #!/usr/bin/python3 | |
| import os | |
| import random | |
| import subprocess | |
| diretorio = "sinal/" | |
| arquivos = os.listdir(diretorio) | |
| arquivo_aleatorio = random.choice(arquivos) | |
| subprocess.run(["mpg123", os.path.join(diretorio, arquivo_aleatorio)]) |
| Ingredientes pudim de leite condensado: | |
| 2 latas de leite condensado | |
| 1 medida da lata de leite | |
| 2 ovos + 1 gema | |
| 1 xícara de açúcar cristal | |
| Levar o leite condensado, o leite e os ovos ao liquidificador. | |
| Bater por pelo menos 5 minutos. | |
| Deixar descansando por pelo menos outros 5 minutos, enquanto faz a calda. | |
| Esse processo é importante para que o pudim fique sem furinhos. |
| #!/bin/bash | |
| ping -c 1 1.1.1.1 | |
| received=$? | |
| echo $received | |
| if [[ $received -ne 0 ]] ; then | |
| service NetworkManager restart | |
| fi |
| #/etc/udev/rules.d/99-usb-sync.rules | |
| # rule to disable write cache for usb storage | |
| # requires hdparm to be installed | |
| ACTION=="add|change", KERNEL=="sd[a-z]", ENV{ID_USB_TYPE}=="disk", RUN+="/usr/bin/hdparm -W 0 /dev/%k" |
| #!/usr/bin/bash | |
| # Change to recording directory | |
| cd /samba/ipcam | |
| # Amount of time of the recording session | |
| # Adjust to match the cron schedule | |
| end=$((SECONDS+3599)) | |
| Dryer Drying | |
| Filament Temperature Time (Hours) | |
| PLA 55°C (131°F) > 6 | |
| ABS 65°C (149°F) > 6 | |
| PETG 65°C (149°F) > 6 | |
| Nylon 75°C (167°F) > 24 | |
| Desiccants 65°C (149°F) > 6 | |
| PVA 45°C (113°F) > 24 | |
| TPU/TPE 55°C (131°F) > 8 |