This file contains hidden or 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
/// <reference types="vitest" /> | |
import { defineConfig } from 'vite' | |
import react from '@vitejs/plugin-react' | |
import * as path from 'path' | |
import pkg from './package.json' | |
const isProduction = process.env.NODE_ENV === 'production'; | |
// https://vitejs.dev/config/ | |
export default defineConfig({ |
This file contains hidden or 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 | |
if (!defined('BASEPATH')) { | |
exit('No direct script access allowed'); | |
} | |
class Wp_api { | |
var $CI; | |
public function __construct() |
This file contains hidden or 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
// convienent scaling for icon sizes (put this in your _bootstrap_variables.scss or a global vars) | |
.#{$fa-css-prefix}-stack-3x { font-size: 4em; } | |
.#{$fa-css-prefix}-stack-4x { font-size: 6em; } | |
.#{$fa-css-prefix}-stack-5x { font-size: 8em; } | |
@mixin icon($icon, $size: default) { | |
@extend .fa; | |
@extend .fa-#{$icon} !optional; | |
@if ($size != default) { |
This file contains hidden or 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
diff --git a/package.json b/package.json | |
index 6c983e8..aff5d37 100644 | |
--- a/package.json | |
+++ b/package.json | |
@@ -13,10 +13,10 @@ | |
"atob": "1.1.2", | |
"autoprefixer": "4.0.0", | |
"autosize": "3.0.7", | |
- "babel": "5.8.12", | |
- "babel-core": "5.8.12", |
This file contains hidden or 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 | |
export THEDATE=`date +%d%m%y%H%M` | |
export THETHEME=`wp --allow-root theme list --status=active --field=name` | |
export THESITE=`wp --allow-root option get siteurl | awk -F/ '{print $3}'` | |
export THEBACKUPS="/usr/share/nginx/backups" | |
export THEBASEPATH="/usr/share/nginx/www" | |
export THEBUCKET="bucket-name-goes-here" | |
# backup the db | |
wp --allow-root db export - | gzip > ${THEBACKUPS}/dbbackup_${THEDATE}.sql.gz |
This file contains hidden or 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
asdf |