Software required:
After installation and putting the youtube-dl
in PATH
youtube-dl \
<?php | |
require_once('includes/config.php'); | |
require_once('app/Mage.php'); | |
$storeID = 1; | |
$websiteIDs = array(1); | |
$cats = array(5); | |
Mage::app()->setCurrentStore(Mage_Core_Model_App::ADMIN_STORE_ID); |
function wpex_minify_css( $css ) { | |
// Normalize whitespace | |
$css = preg_replace( '/\s+/', ' ', $css ); | |
// Remove ; before } | |
$css = preg_replace( '/;(?=\s*})/', '', $css ); | |
// Remove space after , : ; { } */ > | |
$css = preg_replace( '/(,|:|;|\{|}|\*\/|>) /', '$1', $css ); |
<html> | |
<body> | |
<canvas width="800" height="800" id="c" /> | |
<script type="text/javascript"> | |
function doit(){ |
package main | |
import "golang.org/x/tour/pic" | |
func Pic(dx, dy int) [][]uint8 { | |
ret := make([][]uint8, dy) | |
for y := 0; y < dy; y++ { | |
row := make([]uint8, dx) | |
for x := 0; x < dx; x++ { | |
row[x] = uint8(y) |
package main | |
// @lizrice, mostly copied from @doctor_julz: https://gist.github.com/julz/c0017fa7a40de0543001 | |
import ( | |
"fmt" | |
"os" | |
"os/exec" | |
"syscall" | |
) |
<?php | |
/** | |
* deploy.php by Hayden Schiff (oxguy3) | |
* Available at https://gist.github.com/oxguy3/70ea582d951d4b0f78edec282a2bebf9 | |
* | |
* No rights reserved. Dedicated to public domain via CC0 1.0 Universal. | |
* See https://creativecommons.org/publicdomain/zero/1.0/ for terms. | |
*/ | |
// random string of characters; must match the "Secret" defined in your GitHub webhook |
Software required:
After installation and putting the youtube-dl
in PATH
youtube-dl \
FROM alpine:latest | |
RUN apk add --update php python py-pip mysql-client \ | |
&& pip install awscli \ | |
&& rm -rf /var/cache/apk/* | |
RUN touch crontab.tmp \ | |
&& echo '* */6 * * * /usr/bin/php /var/www/partkeepr/app/console partkeepr:cron:run' > crontab.tmp \ | |
&& echo '0 2 * * * /usr/bin/sql_backup' >> crontab.tmp \ | |
&& crontab crontab.tmp \ |
Picking the right architecture = Picking the right battles + Managing trade-offs
package main | |
import ( | |
"fmt" | |
"os" | |
"os/exec" | |
"syscall" | |
) | |
func main() { |