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
| $ cd ~/Sites/wordpress/ to get you in your working folder | |
| $ wp core download - Downloads the latest wp to that folder | |
| $ wp core config --dbname="wp-experiment" --dbuser="whatevs" --dbpass="shhh" --dbhost="127.0.0.1" --skip-check - creates your wp-config.php file for you. | |
| $ wp db create - creates the db for you using the deets you entered into your wp-config.php file. | |
| $ wp core install --url=example.com --title=Example --admin_user=supervisor --admin_password=strongpassword [email protected] - does the wp install in seconds. | |
| You now have a running wordpress site! The cooler thing about the wp cli is that your average maintenance becomes a lot quicker. | |
| $ wp core update - updates your wordpress installation | |
| $ wp plugin update - updates all your plugins | |
| $ wp plugin install bbpress --activate - install & activate a plugin |
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 | |
| sudo rm -fr /opt/franz | |
| sudo rm -fr /usr/share/applications/franz.desktop | |
| # create installation dir | |
| sudo mkdir -p /opt/franz | |
| #install franz |
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
| messd-up-text-just-to-stress-test-our-little-clean-url-function | |
| pijamali-hasta-yagiz-sofore-cabucak-guvendi-saf-ve-haydut-kiz-cocugu-bin-plaj-gormus | |
| peux-tu-maider-sil-te-plait | |
| tank-efter-nu-forrn-vi-foser-dig-bort | |
| aaaaaaaeceeeeiiiidnooooouuuuyssaaaaaaaeceeeeiiiidnooooouuuuyy |
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
| echo "Updating" && | |
| sudo apt-get update | |
| echo "Upgrading" && | |
| sudo apt-get dist-upgrade | |
| echo "Cleaning Up" && | |
| sudo apt-get -f install && | |
| sudo apt-get autoremove && | |
| sudo apt-get -y autoclean && |
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
| .class { | |
| /* GENERAL */ | |
| display: #; | |
| content: ”; | |
| /* SIZING */ | |
| width: #; | |
| min-width: #; | |
| max-width: #; | |
| height: #; |
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
| jQuery(document).ready(function ($) { | |
| $(document).on("click", ".upload_image_button", function (e) { | |
| e.preventDefault(); | |
| var $button = $(this); | |
| // Create the media frame. | |
| var file_frame = wp.media.frames.file_frame = wp.media({ | |
| title: 'Resim seç veya yükle', | |
| library: { // remove these to show all | |
| type: 'image' // specific mime |
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
Show hidden characters
| { | |
| "color_scheme": "Packages/Predawn/predawn-markdown.tmTheme", | |
| "draw_centered": true, // Centers the column in the window | |
| "draw_indent_guides": false, | |
| "font_size": 15, | |
| "trim_trailing_white_space_on_save": false, | |
| "word_wrap": true, | |
| "wrap_width": 80 // Sets the # of characters per line | |
| } |
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
| jQuery(document).ready(function ($) { | |
| function stickymenu() { | |
| if($("body").hasClass("boxed")) | |
| return false; | |
| var headerHeight = $("body > header").height(); | |
| var logo = $("header .logo img"); | |
| var $this = this; | |
| var logoSmallHeight = 50; |
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
| ln -s /usr/bin/nodejs /usr/bin/node |
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
| // Load web-font | |
| .load-font(@family: Arial, @name: "font", @path: "../fonts/", @weight: normal, @style: normal) { | |
| @font-face { | |
| font-family: '@{family}'; | |
| src: url('@{path}@{name}.eot'); | |
| src: url('@{path}@{name}.eot?#iefix') format('embedded-opentype'), | |
| url('@{path}@{name}.woff2') format('woff2'), | |
| url('@{path}@{name}.woff') format('woff'), | |
| url('@{path}@{name}.ttf') format('truetype'), | |
| url('@{path}@{name}.svg#@{family}') format('svg'); |