Skip to content

Instantly share code, notes, and snippets.

View PawelGIX's full-sized avatar

Paweł Gruchociak PawelGIX

View GitHub Profile
@PawelGIX
PawelGIX / get.php
Last active December 28, 2023 16:40
Download ProcessWire
<?php
$ch = curl_init();
$source = "https://github.com/processwire/processwire/archive/master.zip"; // THE FILE URL
curl_setopt($ch, CURLOPT_URL, $source);
curl_setopt($ch, CURLOPT_FOLLOWLOCATION, true);
curl_setopt($ch, CURLOPT_RETURNTRANSFER, 1);
$data = curl_exec ($ch);
curl_close ($ch);
@PawelGIX
PawelGIX / jquery-validator.js
Created July 19, 2017 14:19
jquery validator
$('#form-send').validate({
ignore: ':hidden:not(:checkbox)',
rules: {
fullName: {
required: true,
fullName: true
},
client_email: {
required: true,
@PawelGIX
PawelGIX / git_export_from.sh
Last active August 29, 2015 14:23
GIT Export from changed files from INPUT commit to HEAD
#!/bin/bash
# Export from changed files from INPUT commit to HEAD
# INPUT : commit hash
INPUT=$1
echo "Export from commit $INPUT"
git archive -o ../update.zip HEAD $(git diff --name-only $INPUT)