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 | |
# flag to see if compiling is required | |
should_precompile=0 | |
wp_directory="wp-content/themes/securepay" | |
# check if there are changes | |
# wp-content/themes/securepay/css/* | |
if git diff-index --name-only HEAD | egrep "$wp_directory/css" >/dev/null ; then | |
should_precompile=1 |
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
# Ubuntu 20 LTS Server Setup for Laravel | |
# Login as root user | |
sudo su - | |
# Update list of available packages | |
apt update |
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
shutdown /s /t 7200 | |
# shutdown /a - Aborts shutdown |
This guide assumes you are using Ubuntu and have some basic linux command-line know-how.
Download the server https://www.factorio.com/download-headless/stable:
A list of the most common functionalities in Jekyll (Liquid). You can use Jekyll with GitHub Pages, just make sure you are using the proper version.
Running a local server for testing purposes:
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
--- Stubs for entity.* callbacks defined in C++. | |
-- | |
-- DO NOT INCLUDE this file in your scripts, it is for documentation purposes only. | |
-- | |
-- Entity callbacks query and mutate the specific entity that is running the | |
-- lua script. They can be called from a _different_ entity using | |
-- world.callScriptedEntity(targetEntityId, "entity.*"), replacing "*" with the | |
-- name of a function defined below. | |
-- | |
-- Specific types of entities (e.g. NPCs, Objects) define different sets of |
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
{ | |
"back": { | |
"toxicwasteback": { | |
"iconPath": "items/armors/backitems/toxicwaste/toxicwastebackicon.png", | |
"itemPath": "items/armors/backitems/toxicwaste/toxicwaste.back" | |
}, | |
"ironarmoravianback": { | |
"iconPath": "items/armors/avian/ironarmoravian/icons.png:back", | |
"itemPath": "items/armors/avian/ironarmoravian/ironarmoravian.back" | |
}, |
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 script creates a new project (or site) under /var/sites and creates | |
# new virtual host for that site. With the options a site can also | |
# install the latest version of Laravel directly. | |
# This script was originally based on the following script by @Nek from | |
# Coderwall: https://coderwall.com/p/cqoplg | |
# Display the usage information of the command. | |
create-project-usage() { |
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 | |
/** | |
* Please be aware. This gist requires at least PHP 5.4 to run correctly. | |
* Otherwise consider downgrading the $opts array code to the classic "array" syntax. | |
*/ | |
function getMp3StreamTitle($streamingUrl, $interval, $offset = 0, $headers = true) | |
{ | |
$needle = 'StreamTitle='; | |
$ua = 'Mozilla/5.0 (X11; Linux x86_64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/27.0.1453.110 Safari/537.36'; |
NewerOlder