Skip to content

Instantly share code, notes, and snippets.

Avatar
😃

FLEISCHMANN György, _flex, Gyurci, FleXoft FleXoft

😃
View GitHub Profile
@FleXoft
FleXoft / webkit2png
Last active May 23, 2018
webkit2png python "App Transport Security has blocked a cleartext HTTP (http://) resource load since it is insecure. Temporary exceptions can be configured via your app's Info.plist file."
View webkit2png
webkit2png --ignore-ssl-check [options] [http://example/]
@FleXoft
FleXoft / dns-sd
Last active May 25, 2018
Reach your home iTunes library via VPN running on your MAC
View dns-sd
#!/bin/bash
dns-sd -P "Music on server" _daap._tcp local 3689 BLACKHOLE.fleischmann.local. 192.168.1.2 "Password=false" "Version=196610" "iTSh Version=131073" "mtd-version=0.2.4.1" "Machine Name=MUZAX" "Machine ID=" "Database ID=" "txtvers=1"
@FleXoft
FleXoft / recursive rename
Last active Jun 11, 2018
Recursively change filename part
View recursive rename
find . -type f -name "*copy.jpg" -exec sh -c 'mv "{}" "$( echo {} | sed 's/ copy/_ORIGINAL/' )"' \;
@FleXoft
FleXoft / imagemagick
Created Jun 11, 2018
Create blank image in Imagemagick
View imagemagick
convert -size 800x800 xc:white white.png
@FleXoft
FleXoft / regexp
Created Jun 22, 2018
Exclude lines where the first 3 columns are all the same number
View regexp
grep -v -P "^(\d+) \1 \1 "
@FleXoft
FleXoft / git
Created Jun 27, 2018
Remove .DS_Store files from git repo
View git
find . -name .DS_Store -print0 | xargs -0 git rm -f --ignore-unmatch
echo .DS_Store >> .gitignore
@FleXoft
FleXoft / ffmpeg
Last active Jul 25, 2018
Synology NAS vs. EAC3, EAC-3, Enhanced AC-3, Dolby Digital Plus
View ffmpeg
/volume1/\@appstore/ffmpeg/bin/ffmpeg -i "originalmovie.mkv" -c:v copy -c:a ac3 -q:a 448 "originalmovie.ac3.mkv"
@FleXoft
FleXoft / PhotoSwipeGenerator
Created Sep 9, 2018
photo generation workflow for andras.fleischmann.hu
View PhotoSwipeGenerator
cd ~/gith/andras.fleischmann.hu/
PhotoSwipeGenerator.pl -verb
jekyll b
cp _site/ii.html index.html
open index.html
View jekyll
sudo gem update jekyll
@FleXoft
FleXoft / java
Created Oct 24, 2018
macOS Oracle java environment setting
View java
export JAVA_HOME=/Library/Internet\ Plug-Ins/JavaAppletPlugin.plugin/Contents/Home
You can’t perform that action at this time.