./mage config-set preferred_state stable
./mage clear-cache
./mage sync
./mage download community Module_Name
This file contains 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 | |
# How to start: | |
# 1. Sign up for DigitalOcean with this link https://www.digitalocean.com/?refcode=7bf219507e61 | |
# -- it will be filled with $10 to start out (if you use the above link) | |
# 2. Go to https://cloud.digitalocean.com/settings/applications and find you API key | |
# 3. In your shell, run 'export DIGITALOCEAN_TOKEN="INSERT TOKEN HERE"', without the outer quotes. | |
# 4. `brew install jq` | |
# 5. `./digitalocean-proxy` | |
# 6. When you are done, press CTRL+C ONCE, and everything will be cleaned up. |
This file contains 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
# | |
# Utilities for working with svgs | |
# | |
# svg2png - Create png file from source svg using inkscape | |
# svg2pngr - Create png file from source svg using inkscape recursively | |
# svgz - Create svgz file from source svg | |
# svgzr - Create svgz file from source svg recursively | |
# | |
This file contains 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 | |
# Including this conditional code to the top of a script allows to display it's content | |
# (sourcecode), highlighted, adding query string "?showSource" to the file request. | |
# ex: http://example.com/scriptname.php?showSource | |
# fully modifiable, __FILE__ can be another local file, query can be changed.... | |
if ($_SERVER['REQUEST_METHOD'] != 'POST' && isset($_GET['showSource'])) { | |
highlight_file(__FILE__); | |
die(); | |
} | |
// start of script code |
This file contains 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 | |
// Author: https://gitlab.com/u/jordanbsanders | |
// Taken from https://gitlab.com/snippets/14460 | |
// Will want to determine protocol and domain dynamically. | |
$api_endpoint = 'http://my.domain.com/api/endpoint'; | |
$post_data = array( | |
'username' => urlencode('fake_username'), | |
'password' => urlencode('fake_password') | |
); |
This file contains 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 | |
function tinyUrl($url) { | |
$handle = curl_init(); | |
$timeout = 5; | |
curl_setopt($handle,CURLOPT_URL,'http://tinyurl.com/api-create.php?url='.$url); | |
curl_setopt($handle,CURLOPT_RETURNTRANSFER,1); | |
curl_setopt($handle,CURLOPT_CONNECTTIMEOUT,$timeout); | |
$data = curl_exec($handle); | |
curl_close($handle); |
This file contains 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
// src: takien (http://takien.com) mods: Mathieu Aubin ([email protected]) | |
function ytdID(url){var ID='';url = url.replace(/(>|<)/gi,'').split(/(vi\/|v=|\/v\/|youtu\.be\/|\/embed\/)/);if(url[2]!==undefined){ID = url[2].split(/[^0-9a-z_\-]/i);ID = ID[0];}else {ID = url;}return ID;} |
This file contains 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
#!/bin/bash -e | |
clear | |
echo "============================================" | |
echo "WordPress Install Script" | |
echo "============================================" | |
echo "Do you need to setup new MySQL database? (y/n)" | |
read -e setupmysql | |
if [ "$setupmysql" == y ] ; then | |
echo "MySQL Admin User: " | |
read -e mysqluser |
This file contains 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
#!/bin/bash | |
# This program is free software. It comes without any warranty, to | |
# the extent permitted by applicable law. You can redistribute it | |
# and/or modify it under the terms of the Do What The Fuck You Want | |
# To Public License, Version 2, as published by Sam Hocevar. See | |
# http://sam.zoy.org/wtfpl/COPYING for more details. | |
#Background | |
for clbg in {40..47} {100..107} 49 ; do |
This file contains 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
#!/bin/bash | |
# This program is free software. It comes without any warranty, to | |
# the extent permitted by applicable law. You can redistribute it | |
# and/or modify it under the terms of the Do What The Fuck You Want | |
# To Public License, Version 2, as published by Sam Hocevar. See | |
# http://sam.zoy.org/wtfpl/COPYING for more details. | |
for fgbg in 38 48 ; do #Foreground/Background | |
for color in {0..256} ; do #Colors |
OlderNewer