Skip to content

Instantly share code, notes, and snippets.

Andrea De Pirro akira28

Block or report user

Report or block akira28

Hide content and notifications from this user.

Learn more about blocking users

Contact Support about this user’s behavior.

Learn more about reporting abuse

Report abuse
View GitHub Profile
View genesis_public_key
046276c327bfbf96cb257eb7637dae4a62e09f53da3ed1baa7a21d6333872c394bad4ea2865f23888a14997f4e73efce1d415f6fa734f264217df45c660f48d6ed
View weeklyResult.sh
#!/bin/bash
i="0"
dateStart=$(date -d "last Tue" "+%Y-%-m-%-d")
dateEnd=$(date -d Sun "+%Y-%-m-%-d")
echo $dateStart
url="https://api.marvel.com/browse/comics?byType=date&isDigital=1&dateStart=${dateStart}&dateEnd=${dateEnd}&offset=0&limit=4000&orderBy=release_date+desc"
result=$(curl "$url")
echo "$url"
filename="${dateStart}.csv"
echo "https://marvel.com/comics/calendar/week/${dateStart}?byZone=marvel_site_zone&offset=0&tab=mu&isDigital=1&byType=date&dateStart=${dateStart}&dateEnd=${dateEnd}&type=&orderBy=release_date+desc&limit=300" > $filename
@akira28
akira28 / magento-nginx.conf
Created May 2, 2017 — forked from gwillem/magento-nginx.conf
Battle-tested Nginx configuration for Magento (source: www.hypernode.com)
View magento-nginx.conf
# This is an annotated subset of the Nginx configuration from our Magento production platform @ www.hypernode.com
# See https://www.byte.nl/blog/magento-cacheleak-issue
# !!!! If you are a Hypernode customer, do not use this config as it will result in duplicate statements. !!!!!
user app;
worker_processes 4;
pid /var/run/nginx.pid;
events {
View S3FixExistingMedia.php
<?php
/* ======================================================
This script is NOT FULLY TESTED (not tested on Windows Server either)
USE AT YOUR OWN RISK - development environment Ubuntu Linux 14.04.3 LTS
The purpose of this script is for small websites and blogs
to have their existing media to work through Amazon S3
There's a great plugin, WP Offload S3, that we'll be tapping
into...it works great for new media, but this is a quick
View macsetup.sh
#!/bin/bash
echo "Install brew"
/usr/bin/ruby -e "$(curl -fsSL https://raw.githubusercontent.com/Homebrew/install/master/install)"
echo ""
echo "Install apps"
brew cask install --appdir="/Applications" java google-chrome skype vagrant phpstorm firefox radiant-player mysqlworkbench sequel-pro textwrangler
brew cask install --appdir="/Applications" libreoffice slack dropbox imageoptim tunnelblick virtualbox virtualbox-extension-pack the-unarchiver whatsapp
brew cask install --appdir="/Applications" ccleaner android-studio purevpn cyberduck ccleaner calibre coconutbattery flash-player telegram-desktop
brew cask install --appdir="/Applications" spectacle vlc kodi xquartz inkscape launchrocket ngrok transmission gog-galaxy origin steam spotify atom spark
View .bash_profile
# ---------------------------------------------------------------------------
#
# Description: This file holds all my BASH configurations and aliases
#
# Sections:
# 1. Environment Configuration
# 2. Make Terminal Better (remapping defaults and adding functionality)
# 3. File and Folder Management
# 4. Searching
# 5. Process Management
You can’t perform that action at this time.