A Pen by CODEARMADA on CodePen.
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
| package wine | |
| interpreter /usr/bin/winerun | |
| magic MZ |
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 | |
| IPTABLES=/sbin/iptables | |
| WANIF='<zerotier interface>' | |
| LANIF='<interface which has access to internet>' | |
| ZTIP='<zerotier ip>' | |
| LIP='<ip of $LANIF>' | |
| a_PORTRANGE='<startport>-<endport>' | |
| b_PORTRANGE='<startport>:<endport>' |
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
| # I copied this from another person. I have not been able to find the link. once i do i will link it here. | |
| # i made some modifications - mainly adding variables | |
| # this script causes the zerotier interface to not be accessible by other applications which is why it didn't | |
| # cut it for me | |
| #!/bin/bash | |
| #create netns | |
| sudo service zerotier-one restart | |
| INF='<zerotier interface name>' | |
| IP='<zerotier ip>/24' | |
| # could be wrong here. need more info |
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
| /* | |
| Illustrator CS4+ script for resizing objects | |
| proportionally so that they fit inside artboard | |
| Based on: https://forums.adobe.com/message/4164590 | |
| Usage: | |
| 1. Create new document with desired artboard size | |
| 2. Paste object into document, select it and run this script |
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
| #target Illustrator | |
| var requiredABsize = 1700; //px | |
| var activeDoc = app.activeDocument; | |
| var abActive = activeDoc.artboards[ activeDoc.artboards.getActiveArtboardIndex() ]; | |
| var abProps = getArtboardBounds(abActive); | |
| var scale = findRequiredScale(abProps); | |
| if (scale > 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
| function parseVideo (url) { | |
| // - Supported YouTube URL formats: | |
| // - http://www.youtube.com/watch?v=My2FRPA3Gf8 | |
| // - http://youtu.be/My2FRPA3Gf8 | |
| // - https://youtube.googleapis.com/v/My2FRPA3Gf8 | |
| // - Supported Vimeo URL formats: | |
| // - http://vimeo.com/25451551 | |
| // - http://player.vimeo.com/video/25451551 | |
| // - Also supports relative URLs: | |
| // - //player.vimeo.com/video/25451551 |
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
| http://www.youtube.com/watch?v=-wtIMTCHWuI | |
| http://www.youtube.com/v/-wtIMTCHWuI?version=3&autohide=1 | |
| http://youtu.be/-wtIMTCHWuI | |
| http://www.youtube.com/oembed?url=http%3A//www.youtube.com/watch?v%3D-wtIMTCHWuI&format=json | |
| http://s.ytimg.com/yt/favicon-wtIMTCHWuI.ico |
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
| <?php namespace GM\WWWPostThumbnail; | |
| /** | |
| * Plugin Name: WWW Post Thumbnail | |
| * Description: Allow to use an external image url as featured image. | |
| * Plugin URI: https://gist.github.com/Giuseppe-Mazzapica/928bc22e5f49a654cf7c | |
| * Author: Giuseppe Mazzapica | |
| * Author URI: https://github.com/Giuseppe-Mazzapica | |
| * License: MIT | |
| * Version: 0.1.0 | |
| * |
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
| db.currentOp().inprog.forEach( | |
| function(op) { | |
| if(op.secs_running > 5) printjson(op); | |
| } | |
| ) |