- using find and iconf commands on osx
- replaces original files!
- two-step process:
- first store all paths to text files in a separate file
- then do conversion based on each file path
- why? find -exec with iconv was too hard to figure out on macOS
1:
| <!DOCTYPE html> | |
| <html lang="en"> | |
| <head> | |
| <meta charset="utf-8" /> | |
| <meta name="viewport" content="width=device-width, initial-scale=1.0"> | |
| <title>Three Five</title> | |
| <link rel="stylesheet" type="text/css" href="style.css"> | |
| <!-- assume local copies of p5js and three --> |
| for ifname in `ipconfig getiflist`; do echo $ifname: `ipconfig getifaddr $ifname`; done |
| # Brennenstuhl Premium-Web-Line V3 is a socket strip with an embedded web server. | |
| # It can be switched via a web interface or using http get requests. The latter is a bit under-documented, | |
| # so here's what i found out: | |
| # The built-in server accepts only authenticated http get requests (using digest auth). | |
| # each command has its own url, like so: http://{IP-OF-THE-SOCKETSTRIP}/cgi/{commandname}?params | |
| # full list can be found in a PDF called "Premium-Web-Line V3 CGI specification.pdf" which is included in the download package of the official software: | |
| # download link -> https://www.brennenstuhl.com/index.php?module=explorer&index[explorer][action]=download&index[explorer][file]=firmware/premium-web-line-v3-software-3_3_6.zip | |
| # here's an example on how to toggle one of the two relais (nr. 0) | |
| # modified a general digest auth example from stackoverflow: https://stackoverflow.com/questions/23254013/http-digest-basic-auth-with-python-requests-module |
| # join audio and video input files -> video with audio channel using libav / avconv | |
| avconv -i in_video.mov -i in_audio.wav -vcodec copy -acodec mp3 -map 0:v:0 -map 1:0 out_audio_video.mov |
| git log --since 2021-01-01 --until 2021-12-31 --reverse --pretty=format:"%s;%as" --date=iso > ../export-history.csv |
1:
if you have a sketch called Test.pde
java -cp "*" Test-cp "*" makes all the jars in the directory available to javaTestist the main class name, in Processing usually the name of the Sketch / Main .pde| #!/bin/python | |
| # deckset_collect.py | |
| # by jens wunderling | |
| # this script collects all assets used in a deckset presentation into one folder and creates an updated .md file | |
| # useful if you wildly use image files all over your local file system | |
| # and for archiving (if online sources go offline) | |
| # i'd like this to be a feature of the main app though :D | |
| import os, argparse, shutil |
| /* | |
| crossfade-videos.js by github.com/sport4minus | |
| test based on omxplayer-controll example by github.com/winstonwp | |
| – crossfade two videos on raspberry pi using node.js, omxplayer-controll https://github.com/winstonwp/omxplayer-controll and omxplayer. | |
| – working based on omxplayer's capability to set a video render layer. | |
| – two instances of omxplayer are started on different layers, the upper ones' alpha is changed during runtime. |
| { | |
| "cmd": [ | |
| "/_path_/_to_/flex_sdk_4.6/bin/mxmlc", | |
| "${file}" | |
| ], | |
| "selector": "source.actionscript", | |
| "encoding": "cp1252" | |
| } |