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
Header add Content-Type "application/json" | |
Header add Access-Control-Allow-Methods "GET,HEAD,POST,PUT,DELETE,OPTIONS" | |
Header add Access-Control-Allow-Headers "Auth-Token,Content-Type" | |
Header add Access-Control-Allow-Origin "*" |
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
lclDBName="value" | |
lclDBUser="value" | |
lclDBPass="value" | |
RemoteDBName="value" | |
RemoteDBUser="value" | |
RemoteDBPass="value" | |
RemoteHost="localhost" | |
lclHost="localhost" |
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
/* | |
TODO: | |
X Maybe account for defaults: color: var(--header-color, blue); | |
- Verify cross domain working or not (it is working from dropbox) | |
- Option to wait to apply anything until all <link>s are parsed or inject what we have and update as each <link> returns | |
- Need to test on a more complex CSS file | |
- Option to save parsed file in local/session storage so there isn't a delay on additional page loads. Could only do it for links (with URLs to use as keys) and style blocks with IDs of some sort | |
- Need to test more complex values like rgba(255,0,0,0.5); and something with !important | |
- Try multiple links | |
- Local links |
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 | |
# based on https://gist.github.com/Siteograf/09c1e1c5655105362e754aa6640e6ffd | |
# use with ./migradeDB.sh | |
# or like ./migradeDB.sh 1 y | |
# | |
# required mysql or mysqldump at HOST1 & HOST2! | |
# solltet ihr "bad pattern: --password=" bekommen, funktioniert euer passwort wegen eines Sonderzeichen nicht | |
HOST1_isREMOTE=false | |
HOST1_SSH_USER="root" # required if host 1 is remote |
Install Webfontools from Homebrew:
brew tap bramstein/webfonttools
brew update
brew install sfnt2woff-zopfli
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
/** | |
* Download Craft Plugins | |
* | |
* @package generator-mh-boilerplate | |
* @author Martin Herweg <info@martinherweg.de> | |
*/ | |
const inquirer = require('inquirer'); | |
const download = require('download'); | |
const ProgressBar = require('progress'); |
I was looking for a SSR and scoped styles ready solution to implement inline SVG with Nuxt
You need svg-inline-loader
and xmldom
to be installed.
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
# MOJAVE: https://gist.github.com/kevmt/476716bfb0383d3fda699e4fcacc6470 | |
# install brew | |
/usr/bin/ruby -e "$(curl -fsSL https://raw.githubusercontent.com/Homebrew/install/master/install)" | |
# Terminal Aliases | |
echo "alias artisan='php $PWD/artisan'" >> ~/.bash_profile | |
echo "export NVM_DIR=~/.nvm" >> ~/.bash_profile | |
echo "source $(brew --prefix nvm)/nvm.sh" >> ~/.bash_profile |
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
(function (context, trackingId, options) { | |
const history = context.history; | |
const doc = document; | |
const nav = navigator || {}; | |
const storage = localStorage; | |
const encode = encodeURIComponent; | |
const pushState = history.pushState; | |
const typeException = 'exception'; | |
const generateId = () => Math.random().toString(36); | |
const getId = () => { |
OlderNewer