This file contains 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/sh | |
# This script deletes an entire Django database, calls syncdb, and imports data tables | |
# Drop all tables in cascade | |
psql tablename << EOF | |
DROP SCHEMA public CASCADE; | |
CREATE SCHEMA "public" AUTHORIZATION "postgres"; | |
EOF | |
# Syncdb |
This file contains 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
"""Definition of the imageevent content type | |
""" | |
from zope.interface import implements | |
from Products.Archetypes import atapi | |
from Products.ATContentTypes.content import base | |
from Products.ATContentTypes.content import schemata | |
# -*- Message Factory Imported Here -*- |
This file contains 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
# -*- coding: utf-8 -*- | |
"""Definition of the minisite content type | |
""" | |
from zope.interface import implements | |
from Products.Archetypes import atapi | |
from Products.ATContentTypes.content import folder | |
from Products.ATContentTypes.content import schemata |
This file contains 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 | |
for file in /opt/web/streaming/*.mp4 | |
do | |
echo "Check if file ${file% STREAMING.mp4} STREAMING.mp4 exists" | |
if [ ! -f "${file% STREAMING.mp4} STREAMING.mp4" ]; then | |
echo "-- New afile detected:" | |
echo "-- Running: ffmpeg -i "$file" -c:a copy -c:v copy -movflags faststart "${file%.mp4} STREAMING".mp4" | |
ffmpeg -i "$file" -c:a copy -c:v copy -movflags faststart "${file%.mp4} STREAMING".mp4 | |
mv "$file" /opt/videos-originals |
This file contains 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
Traceback (innermost last): | |
• Module ZPublisher.Publish, line 60, in publish | |
• Module ZPublisher.mapply, line 77, in mapply | |
• Module ZPublisher.Publish, line 46, in call_object | |
• Module Products.CMFPlone.FactoryTool, line 458, in __call__ | |
• Module Products.CMFPlone.FactoryTool, line 207, in __getitem__ | |
• Module Products.CMFPlone.FactoryTool, line 68, in _createObjectByType | |
• Module Products.CMFCore.TypesTool, line 559, in _constructInstance | |
• Module zope.event, line 31, in notify | |
• Module zope.component.event, line 24, in dispatch |
This file contains 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
### Keybase proof | |
I hereby claim: | |
* I am mpampols on github. | |
* I am mpampols (https://keybase.io/mpampols) on keybase. | |
* I have a public key whose fingerprint is 6D34 CEC3 9A36 99B1 01D2 6784 6FE6 A8BF 35BD 10A7 | |
To claim this, I am signing this object: |
This file contains 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
<?xml version="1.0" encoding="UTF-8"?> | |
<!DOCTYPE plist PUBLIC "-//Apple//DTD PLIST 1.0//EN" "http://www.apple.com/DTDs/PropertyList-1.0.dtd"> | |
<plist version="1.0"> | |
<dict> | |
<key>PayloadContent</key> | |
<array> | |
<dict> | |
<key>APNs</key> | |
<array> | |
<dict> |
This file contains 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
server { | |
listen 80; | |
server_name www.marcpampols.com marcpampols.com; | |
return 301 https://www.marcpampols.com$request_uri; | |
} | |
server { | |
listen 443; | |
ssl on; |
This file contains 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
/** | |
* jQuery Slidify Menu Plugin by Marc Pampols <mpampols@gmail.com> | |
* | |
* Example usage: | |
* $(".portlet-pensando-en-ti .portletItem").slidify({ | |
* slideInSpeed: 200, | |
* slideOutSpeed: 400 | |
* }); | |
**/ |
OlderNewer