sumnima sumnima sumnima sumnima sumnima sumnima sumnima
Categories
blog haiku poem

haiku

I’m boot
And I will eat your soul
#Google.

#haiku

 

Bird hatching,
Endless
Mist shower.

#haiku

 

Her voice
Getting soft –
Searching for blue sky.

#haiku #fog

 

Lost
Inside blanket.
Birdsong.

#haiku #sick #winter

 

Being ill –
Harder then ever
reCAPTCHA

#Haiku #google #bots #ill

 

Tiny bird
Enjoying backyard,
Glowing sunny day.

#haiku #bird #micropoetry

 

Sunshine –
I’m so happy
for you

#haiku #winter

 

 

Categories
blog ecommerce Storefront WooCommerce wordpress

WooCommerce Storefront Child Theme: Remove Sidebar @ Single Product Page

Hide the sidebar on product pages of Woocommerce Storefront child theme. The following snippet disables the sidebar with no additional CSS required, whilst still making the product page content area 100% wide.

/** * Disable sidebar on product pages in Storefront. * * @param bool $is_active_sidebar * @param int|string $index * * @return bool */ function product_remove_sidebar( $is_active_sidebar, $index ) { if( $index !== "sidebar-1" ) { return $is_active_sidebar; } if( ! is_product() ) { return $is_active_sidebar; } return false; } add_filter( 'is_active_sidebar', product_remove_sidebar', 10, 2 );

code to the functions.php file in your Storefront child theme.

Categories
blog mongo

mongo

#mongo #bookmark

To reset database. Go to server terminal, then type these commands by order:

sudo docker exec -it mongodb bash mongo show dbs use your-db-name db.dropDatabase()

After typing those, go back to your deployment folder then enter “mupx restart”

Categories
blog conf Meteor Nginx

nginx conf meteor

# this section is needed to proxy web-socket connections

map $http_upgrade $connection_upgrade {

        default upgrade;

        ''      close;

}

# HTTP

server {

        listen 80;

		server_name classified.officialstupid.com;

location = /favicon.ico {

access_log off;
}

# pass requests to Meteor
location / {
proxy_pass http://127.0.0.1:3001;
proxy_http_version 1.1;
proxy_set_header Upgrade $http_upgrade; #for websockets
proxy_set_header Connection $connection_upgrade;
proxy_set_header X-Forwarded-For $remote_addr;
proxy_set_header Host $host;
}
}
Categories
blog haiku poem

macbook overheating – winter

Blowing hot memories –
Macbooks,
Freezing finger.

#haiku #nahaiwrimo #macbook #overheating #winter #memories

Categories
blog haiku poem

Death haiku

Death –
Final Truth
Stop blaming other.

2016 – 2018 A D

#haiku #mouse #macOS #Logitech

Categories
blog haiku poem

cold moon wet firewood.

#haiku #micropoetry #1line

Categories
blog js

add body class based on the url using RegEx

/* add body class */
var loc = window.location.pathname.match(/^\/?(\w+)\b/);
if(loc) $(document.body).addClass(loc[1].toLowerCase());



https://gist.github.com/mware/4118884

Categories
blog shopify

shopify supply scss media

#bookmark #shopify #scss #supply
desktop only – @include at-query ($min, $medium)
tablet and mobile – @include at-query ($max, $medium)
mobile only – @include at-query($max, $small)

Categories
bigcommerce blog

node.js, npm, bigcommerce, Stencil CLI, cornerstone… bla bla bla !!!

 

pain free NODE.js https://gist.github.com/isaacs/579814

echo 'export PATH=$HOME/local/bin:$PATH' >> ~/.bashrc
. ~/.bashrc
mkdir ~/local
mkdir ~/node-latest-install
cd ~/node-latest-install
curl http://nodejs.org/dist/node-latest.tar.gz | tar xz --strip-components=1
./configure --prefix=~/local
make install # ok, fine, this step probably takes more than 30 seconds...
curl -O -L https://npmjs.org/install.sh

 

Installing the Command-Line Interface

The first step toward developing on Stencil is to install the Stencil CLI (command-line interface). You can do this via the following command:

npm install -g @bigcommerce/stencil-cli

Adding a Base Theme

git clone https://github.com/bigcommerce/cornerstone.git

after download complete cd cornerstone then run

npm install
stencil init

at the top level of your Stencil Theme. It will ask you a few questions to get your started.

stencil start

to run a local server so you can start developing your theme.

stencil bundle

to validate your code and create a zip bundle file that can be uploaded to BigCommerce.

 

 

https://github.com/bigcommerce/stencil-cli/issues/311

upgrade you cli

npm i -g @bigcommerce/stencil-cli

 

Categories
blog cms multisite Nginx wordpress

wordpress multisite too many server redirects nginx conf

too many server redirects.
 
#wordpress #multisite #wordpressmultisite .conf #nginx #bookmark
 
 
server {
server_name example.com *.example.com ;
 
access_log /var/log/nginx/example.com.access.log;
error_log /var/log/nginx/example.com.error.log;
 
root /var/www/example.com/htdocs;
index index.php;
 
if (!-e $request_filename) {
rewrite /wp-admin$ $scheme://$host$uri/ permanent;
rewrite ^(/[^/]+)?(/wp-.*) $2 last;
rewrite ^(/[^/]+)?(/.*\.php) $2 last;
}
 
location / {
try_files $uri $uri/ /index.php?$args ;
}
 
location ~ \.php$ {
try_files $uri /index.php;
include fastcgi_params;
fastcgi_pass unix:/var/run/php5-fpm.sock;
}
 
location ~* ^.+\.(ogg|ogv|svg|svgz|eot|otf|woff|mp4|ttf|rss|atom|jpg|jpeg|gif|png|ico|zip|tgz|gz|rar|bz2|doc|xls|exe|ppt|tar|mid|midi|wav|bmp|rtf)$ {
access_log off; log_not_found off; expires max;
}
 
location = /robots.txt { access_log off; log_not_found off; }
location ~ /\. { deny all; access_log off; log_not_found off; }
}