– Open Automator
– File -> New -> Service
– Change „Service Receives“ to „files or folders“ in „Finder“
– Add a „Run Shell Script“ action
– Change „Pass input“ to „as arguments“
– Paste the following in the shell script box: open -n -b „com.microsoft.VSCode“ –args „$*“
– Save it as something like „Open in Visual Studio Code“
Autor: amoerke
Mac Excel PDF als ganze Seite exportieren
VSCode Dateimaske
In VSCode z.B. nach PHP-Dateien im Unterverzeichnis webroot rekursiv suchen.
./webroot/**/*.php
ShrewVPN auf Mac installieren
Das Problem ist einen Client der für macOS > Catalina geeignet ist ohne Homebrew zu installieren
Download: https://www.amft-it.de/dist/macos/ShrewSoftVPNClient-2.1.1_macOS_Oct2017.pkg
Wichtig! Den Shrew Soft Access Manager nutzen, nicht den Shrew Soft VPN Client Connect!
Source: kb.amft-it.de/doku.php?id=kb-macos:shrewvpnclient-download
Unix Prozess mit spez. Port beenden
- lsof -i :<PORT>
- PID raussuchen
- kill -9 <PID>
Quelle: http://code2care.org/2015/how-to-kill-service-running-on-port-using-terminal-command/
Cordova Build fehlgeschlagen (kann Zip nicht entpacken)
Failed with exit code 1 Error In cordova
Failed with exit code 1 Error In cordova
![]()
- Delete „gradle-2.13-all.zip“ folder and everything in this directory: C:\Users\Somnath Sarkar.gradle\wrapper\dists\gradle-2.13all\7hsc6vr6mi3i6i5m7q9hj4ci1q\
- Download the gradle zip manually
- Paste the gradle zip folder in C:\Users\Somnath Sarkar.gradle\wrapper\dists\gradle-2.13-all\7hsc6vr6mi3i6i5m7q9hj4ci1q\
- Run cordova build android
PHP Strings über mehrere Zeilen ausgeben (Heredoc)
Heredoc-Syntax
echo <<<CONTENT
<p>The content to be output comes
here and must be closed by following </p>
CONTENT;
Quelle: https://www.php.net/
MongoDB Intro
How to Install and Configure MongoDB on Ubuntu 14.04
How to Install and Configure MongoDB on Ubuntu 14.04
MongoDB is a NoSQL database that offers a high performance, high availability, and automatic scaling enterprise database. Data is stored in a documen…
Source: www.howtoforge.com/tutorial/install-mongodb-on-ubuntu-14.04/
Mongo-DB Server über externe IP verfügbar machen
- vi /etc/mongod.conf
- net: port: 27017
bindIp: 0.0.0.0
Quelle: https://stackoverflow.com/questions/24899849/connection-refused-to-mongodb-errno-111#24941698
Node Module inkompatibel nach NodeJS Update
Wenn nach eine NodeJS-Update Node-Module nicht mehr laufen (inkompatibel), dann hilft meist:
- Schließen der IDE
- Entfernen von
node_modulesundpackage--lock.json - Ausführen von
npm clean cache --forceals Administrator - Ausführen von
npm install
Quelle: https://github.com/gulpjs/gulp/issues/2280#issuecomment-493701211