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 | |
| // contributed by supplify.com | |
| error_reporting(E_ALL); | |
| ini_set('display_errors', 1); | |
| require_once '../curl/Zebra_cURL.php'; | |
| require_once '../app/Mage.php'; | |
| Mage::app(); | |
| class action extends Zebra_cURL{ |
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
| #!/usr/bin/env bash | |
| # Names of latest versions of each package | |
| export VERSION_PCRE=pcre-8.39 | |
| export VERSION_ZLIB=zlib-1.2.8 | |
| export VERSION_LIBRESSL=libressl-2.4.2 | |
| export VERSION_NGINX=nginx-1.11.3 | |
| # URLs to the source directories | |
| export SOURCE_LIBRESSL=http://ftp.openbsd.org/pub/OpenBSD/LibreSSL/ |
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
| [mysqld] | |
| ## After edit config you have to remove log files and restart mysql server | |
| ## because after changing innodb-log-file-size you should recreate ib_logfiles | |
| ## Stop MySQL server | |
| ## rm /data/dir/ib_logfile* | |
| ## Run MySQL server | |
| ##Table open cache under MacOS and MySQL 5.6 should be 250. | |
| ##Otherwise you will get error MySQL server has gone away | |
| ##table-open-cache = 250 |
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
| $ cat mkefiboot | |
| #!/bin/bash | |
| macbootimg() { | |
| python /usr/lib/python3.3/site-packages/livedvd/mkefiboot -a -l "Gentoo Linux" -i gentoo.icns -p "Gentoo Linux" efi/boot macboot.img | |
| } | |
| efiimg() { | |
| local mountdir | |
| mountdir=$(mktemp -d) |
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
| # UPDATED 17 February 2019 | |
| # Redirect all HTTP traffic to HTTPS | |
| server { | |
| listen 80; | |
| listen [::]:80; | |
| server_name www.domain.com domain.com; | |
| return 301 https://$host$request_uri; | |
| } | |
| # SSL configuration |
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 datetime import datetime | |
| from time import sleep | |
| from dnslib import DNSLabel, QTYPE, RD, RR | |
| from dnslib import A, AAAA, CNAME, MX, NS, SOA, TXT | |
| from dnslib.server import DNSServer | |
| EPOCH = datetime(1970, 1, 1) | |
| SERIAL = int((datetime.utcnow() - EPOCH).total_seconds()) |
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
| const puppeteer = require('puppeteer'); | |
| // Streams the first webcam in the system to the specified Jitsi Meet room. Audio is currently | |
| // not sent, but it can be easily enabled by disabling the corresponding setting in `meetArgs`. | |
| // | |
| // TODO | |
| // - Detect if we are kicked from the room | |
| // - Support authenticated deployments | |
| // |
Rationale:
- I need a custom kernel (because sound won't work with vanilla)
- I want to use Fedora Atomic Host
- The only way to override the kernel with Fedora Atomic Host is to install a kernel package using
ostree-rpm - I have a metered network connection and want to avoid downloading the kernel sources too many times
- The powerful machine that can build the kernel is nor running Fedora or Red-hat based system with rpmbuild available
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 | |
| if (!isset($_GET['ILoveMautic'])) { | |
| echo 'The secret phrase is wrong.'; | |
| die; | |
| } | |
| $link = "https://$_SERVER[HTTP_HOST]$_SERVER[REQUEST_URI]"; | |
| $allowedTasks = array( | |
| 'cache:clear', |