Skip to content

Instantly share code, notes, and snippets.

View DamianSam's full-sized avatar

Damian Samolej DamianSam

  • HFC
  • Brooklyn, NY
View GitHub Profile
@DamianSam
DamianSam / .codeshipignore
Created May 3, 2020 05:08 — forked from ZachWatkins/.codeshipignore
Setup WordPress plugin or theme repository for continuous integration service's virtual machine environment
# RECOMMENDED BY WPENGINE
*~
.DS_Store
.svn
.cvs
*.bak
*.swp
Thumbs.db
# large/disallowed file types
@DamianSam
DamianSam / bitbucket-pipelines.yml
Created September 8, 2018 22:41 — forked from mcnamee/bitbucket-pipelines.yml
Bitbucket Pipelines - Deploy via FTP to shared hosting
# Installation ---
# 1. In Bitbucket, add $FTP_USERNAME $FTP_PASSWORD and $FTP_HOST as environment variables.
# 2. Commit this file to your repo
# 3. From Bitbucket Cloud > Commits > Commit Number > Run Pipeline > Custom:Init (this will
# push everything and initial GitFTP)
#
# Usage ---
# - On each commit to master branch, it'll push all files to the $FTP_HOST
# - You also have the option to 'init' (from Bitbucket Cloud) - pushes everything and initialises
# - Finally you can also 'deploy-all' (from Bitbucket Cloud) - if multiple deploys fail, you

Keybase proof

I hereby claim:

  • I am DamianSam on github.
  • I am damiansam (https://keybase.io/damiansam) on keybase.
  • I have a public key whose fingerprint is 4CBA 1FA8 CB18 091F 319D D79C 7EA8 8381 9E7B 8916

To claim this, I am signing this object:

@DamianSam
DamianSam / blah.php
Created February 6, 2013 16:48 — forked from gicolek/blah.php
<?php
function _foo_handle_ajax_request_for_db_data() {
$path = parse_url (site_url());
if ( parse_url($_SERVER['REQUEST_URI'], PHP_URL_PATH) === $path['path'] . '/sth' ) {
status_header(200);
// do sth
exit ;