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 | |
| for dir in $(ls -d */ | grep -v cache | grep -v node_modules | cut -f1 -d'/'); do | |
| ( | |
| echo "checking $dir :"; | |
| pushd "$dir" &>/dev/null || { | |
| printf "error: failed to change to %s\n" "$dir" >&2 | |
| continue | |
| } | |
| echo "--------------------------------"; | |
| cat $(find app/styles/ -type f) | |
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
| (function ($) { | |
| const all_svg_logos = $('svg'); | |
| all_svg_logos.each(function (svg_idx, svg_item) { | |
| if ($(svg_item).children('linearGradient').length) { | |
| $(svg_item).children('linearGradient').each(function (linear_idx, linear_elm) { | |
| $(svg_item).children('g').children('path').each(function (path_idx, path_prop) { | |
| if (path_prop.getAttribute("fill").includes(linear_elm.getAttribute("id"))) { | |
| // Set unique identifier for fill attribute of <path> element based on SVG's occurrence index | |
| path_prop.setAttribute("fill", "url(#" + linear_elm.getAttribute("id") + "_" + svg_idx + ")"); | |
| } |
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
| tell application "System Events" | |
| tell application "Finder" to activate desktop | |
| tell process "Finder" | |
| click menu item "Clean Up" of menu "View" of menu bar item "View" of front menu bar | |
| end tell | |
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
| -- https://gist.github.com/mrienstra/8330528 | |
| -- Based on http://www.tuaw.com/2012/12/24/applescript-desktop-icon-race/ | |
| -- Inspired by http://namesakecomic.com/comic/happy-new-year-from-namesake/#comment-1182035013 | |
| -- Rearranges Desktop icons to flow from left to right, top to bottom. | |
| -- To have this run automatically every time files are added or removed from the Desktop, set this script to run as a Desktop "Folder Action". (See https://developer.apple.com/library/mac/documentation/applescript/conceptual/applescriptlangguide/reference/ASLR_folder_actions.html ) | |
| -- This is currently a rough proof-of-concept. It has only been tested with OS y 10.8.5 (Mountain Lion). |
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
| rm -rf node_modules && rm -rf **/node_modules && rm -rf package-lock.json && rm -rf yarn-error.log && rm -rf yarn.lock && npm cache clean --force && npm i |
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
| npm install -g dotenv-cli | |
| npx prisma generate | |
| dotenv -e .env.local -- npx prisma db push |
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
| Insert the following line in the client's config.ovpn file: | |
| tls-cipher "DEFAULT:@SECLEVEL=0" |
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
| #Flush the object cache using this WP-CLI command. | |
| wp cache flush | |
| #Beaver Builder plugin and Beaver Theme have these WP-CLI commands. | |
| wp beaver clearcache | |
| wp beaver theme clearcache | |
| wp beaver clearcache --all | |
| #Autoptimize plugin has this WP-CLI command. | |
| wp autoptimize clear |
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
| worker_processes 1; | |
| error_log stderr warn; | |
| pid /run/nginx.pid; | |
| events { | |
| worker_connections 1024; | |
| } | |
| http { | |
| include mime.types; |