Skip to content

Instantly share code, notes, and snippets.

View ptahdunbar's full-sized avatar
I may be slow to respond.

(afro)TekGod ptahdunbar

I may be slow to respond.
View GitHub Profile
import React, { useRef } from 'react';
import { View, Button, StyleSheet } from 'react-native';
import ConfettiCannon from 'react-native-confetti-cannon';
const ConfettiButton = () => {
const confettiRef = useRef(null);
const handleButtonPress = () => {
if (confettiRef.current) {
confettiRef.current.startConfetti();

Remote Working at Amce Corp

Remote Working at Amce Corp

Amce Corp began offering remote work in 2020. This policy serves as a guide to help all remote employees understand the regulations and expectations of working remotely at Amce Corp. Since implementing our remote work policy, feedback from employees has been integral in creating this document. Review the information below to be fully prepared for your remote work journey at Amce Corp and be sure to send any questions or comments to [email protected].

Who’s Eligible and Remote Work Frequency

At Amce Corp, all departments have the option of working remotely with monthly and yearly meetings required on-site, or with a combination of remote work/on-site work after 90 days of employment. Each department manager has the autonomy to discuss with each team member their specific flexibility needs to determine what will work best. Regardless of the amount of remote work chosen, all full-time employees are required to work 40 hours per week.

How to Request

A

wp core config --dbname=wordpress --dbuser=root --dbpass=root --dbhost=localhost:/Applications/MAMP/tmp/mysql/mysql.sock
mysql -proot -uroot -Bse "CREATE DATABASE \`wordpress\`;" 2>&1 &
wp core install --url=avast.dev --title=avast --admin_user=yarrr --admin_password=foobar [email protected]
wp core version
--
SELECT * FROM core_config_data WHERE scope = 'default' AND path LIKE '%secure/base_url%';
SET @DOMAIN = 'magento.dev';
UPDATE core_config_data SET `value` = CONCAT('https://', @DOMAIN, '/') WHERE path = 'web/secure/base_url';
UPDATE core_config_data SET `value` = CONCAT('http://', @DOMAIN, '/') WHERE path = 'web/unsecure/base_url';
SELECT * FROM core_config_data WHERE scope = 'default' AND path LIKE '%secure/base_url%';
# V2
## Install
- [Install Docker Toolbox](https://github.com/docker/toolbox)
> You should have `docker`, `docker-machine`, and `docker-compose` in your $PATH by this point.
### Show a list of available machines
`docker-machine ls`
<html>
<head>
<script src="https://code.jquery.com/jquery-2.1.4.js" charset="utf-8"></script>
<script>
function showHint(str) {
console.log(str)
jQuery.get("gethint.php?q=" + str, function(data){
document.querySelector('#txtHint').innerHTML = data;
});
<html>
<head>
<script src="https://code.jquery.com/jquery-2.1.4.js" charset="utf-8"></script>
<script>
function showHint(str) {
jQuery.get("gethint.php?q=" + str, function(data){
document.querySelector('#txtHint').innerHTML = data;
});
return false;
echo "DevOps provisioning made easy"
pwd
@ptahdunbar
ptahdunbar / yellow-widgets-tutorial
Created March 20, 2013 08:56
Widgets and Widget Areas
<?php
// functions.php
register_sidebar(array(
'id' => 'custom',
'name' => 'Custom Widget Area',
));
<div class="widget-area widget-area-custom">
if (!dynamic_sidebar('custom')) {
@ptahdunbar
ptahdunbar / Update WordPress urls in DB from old domain to new domain.
Created December 19, 2012 09:42
Please note: 1) this gists does not take into account serialized data that plugins may have added. 2) also does not support WordPress multisite.
UPDATE wp_posts SET post_content = REPLACE(post_content, 'http://wp.old', 'http://wp.new');
UPDATE wp_posts SET guid = REPLACE(guid, 'http://wp.old', 'http://wp.new');
UPDATE wp_postmeta SET meta_value = REPLACE(meta_value, 'http://wp.old', 'http://wp.new');
UPDATE wp_options SET option_value = REPLACE(option_value, 'http://wp.old', 'http://wp.new')
WHERE option_name = 'home' OR option_name = 'siteurl';
-- Optional, uncomment the following lines if you left comments on your site.
-- UPDATE wp_postsmeta SET comment_author_email = REPLACE(comment_author_email, '@wp.old', '@wp.new');