Tips and tricks

GIT Tutorial - How to squash without rebase hell

You can just apply this command git reset --soft mastergit add -A && git commit -m "commit message goes here" Then, if you are ready ( make sure you are on your branch by running git status ) to submit that commit, you can just call: git push -f
How to purchase hosting + domain from

1. create an account in 2. search for your required domain 3. click ADD TO CART / CHECKOUT 4. add a hosting in the top right 5. your cart should look like this: 6. add any COUPONS if you wish
Use Browserify Globally as Watcher in PhpStorm [ add import / export support ]

Use Browserify Globally as Watcher in PhpStorm [ add Babelify ] Use Browserify Globally as Watcher in PhpStorm external link: … You will need first the esmify and browser-resolve libraries sudo npm i -g esmify browser-resolve Then add -p /usr/local/lib/node_modules/esmify/esmify.js to the browserify command $FilePath$ -d -t [ /usr/local/lib/node_modules/babelify/index.js ] -p /usr/local/lib/node_modules/esmify/esmify.js -p [/usr/local/lib/node_modules/minifyify/lib/index.js

Continue reading

How to use tinypng cli to compress all pictures in a directory

First you need to install tinypng-cli and provide an api key sudo npm install -g tinypng-cli Use this code to compress in the same directory If it has been compressed before and has the compressed- prefix, then other files will not get compressed. Make a file named tinify.command and place it in your directory. declare

Continue reading

How to convert a javascript object with comments into a explanation table ? ( with RegEx )

This is the regex javascript [\s|\S](?:.)([a-z].*?):.*// --(.*?)\n php (.*?)=>.*,.*\/\/ --(.*?)(\n|$) replace with This makes this text: , enable_embed_button: 'off' // -- enable the embed button , embed_code: '' // -- embed code , skinwave_dynamicwaves: 'off' // -- dynamic scale based on volume for no spectrum wave , soundcloud_apikey: '' // -- set the sound cloud

Continue reading

How to Recursively Remove .DS_Store

Open up Terminal In the command line, cd to/your/directory Finally, in the command line, type:  find . -name '.DS_Store' -type f -delete
{"type":"main_options","images_arr":"'#ffffff'","enable_ajax":"off","soundcloud_apikey":"","bg_isparallax":"off","bg_slideshow_time":"0","bg_transition":"slidedown","site_url":"https:\/\/","theme_url":"https:\/\/\/wp-content\/themes\/qucreative\/","blur_ammount":"26","width_column":"50","width_section_bg":"","width_gap":"30","border_width":"0","border_color":"#ffffff","translate_cancel_comment":"Cancel reply","translate_leave_a_comment":"Leave a comment","translate_leave_a_comment_to":"Leave a comment to","is_customize_preview":"off","width_blur_margin":"30","gallery_w_thumbs_autoplay_videos":"off","content_enviroment_opacity":"30","menu_enviroment_opacity":"70","base_url":"https:\/\/"}