This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/bash | |
hugo | |
sleep 2 | |
rm -rf ../minim-www/* | |
mv public/{*,.[^.]*} ../minim-www | |
cd ../minim-www | |
git add . | |
git commit -m "deploy for $(date +%Y%m%d-%T)" | |
git push origin master |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
find . -name "*.mp4" -exec sh -c 'mkdir "${1%.*}" ; mv "$1" "${1%.*}" ' _ {} \; |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
version: '2' | |
services: | |
plex: | |
image: plexinc/pms-docker | |
container_name: plex | |
volumes: | |
- /srv/appdata/plex/config:/config | |
- /srv/appdata/plex/transcode:/transcode | |
- /media/wdusb/movies:/movies |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
version: '2' | |
services: | |
emby: | |
image: binhex/arch-emby | |
container_name: emby | |
restart: always | |
networks: | |
- media |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
git config credential.https://gitlab.customs.govt.nz <user> | |
git config credential.helper "$helper $options" | |
git config credential.helper store | |
// Once typed you should only have to enter password once more and then it will be stored |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
version: '2' | |
services: | |
plex: | |
image: plexinc/pms-docker | |
container_name: plex | |
volumes: | |
- /opt/appdata/plex:/config | |
- /mnt/storage:/data | |
network_mode: host |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// catch 404 and forward to error handler | |
app.use((req, res, next) => { | |
res.status(404).json({ message: 'API not found' }); | |
next(); | |
}); | |
// error handler, send stacktrace only during development | |
app.use((err, req, res, next) => { | |
if (res.headersSent) { | |
return next(err); |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
version: "2" | |
services: | |
plex: | |
image: linuxserver/plex:latest | |
network_mode: host | |
volumes: | |
- ./plex_config:/config | |
- ./plex_transcode:/transcode | |
- /media/wdusb/movies:/movies |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// set in Tests portion of request settings | |
let jsonData = pm.response.json(); | |
pm.environment.set('token', jsonData.auth_token); |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
FROM node:10-alpine | |
EXPOSE 1337 | |
RUN mkdir -p /usr/src/app | |
WORKDIR /usr/src/app | |
COPY package.json . | |
RUN npm install -g sails |