Skip to main content
Advanced Search
Search Terms
Content Type

Exact Matches
Tag Searches
Date Options
Updated after
Updated before
Created after
Created before

Search Results

97 total results found

How to do Everything in AngularJS

Development, Programming & DevOps PHP, Javascript & HTML

Prevent Route Change Add target="_self" to all elements Create new directive to prevent the defaults: app.directive('a', function() { return { restrict: 'E', link: function(scope, elem, attrs) { if (attrs.ngClick || attrs.href === '' || attrs...

Apache Option FollowSymLinks not allowed here Error

Linux Server Software

Apache htaccess Option FollowSymLinks not allowed here error: find /home -name ".htaccess" -type f -exec sed -i '/FollowSymLinks/SymLinksIfOwnerMatch/g' {} ";"

How to do Mac/iOS Stuff in Linux

Linux General

Converting Apple Developer Certificate to .p12 with OpenSSL Convert the developer certificate file you receive from Apple into a PEM certificate file. Run the following command-line statement from the OpenSSL bin directory: openssl x509 -in developer_identit...

CSS Utilities

Development, Programming & DevOps CSS

Media Queries min-width and max-width @media only screen and (min-width: 330px) {...}: If [device width] is greater than or equal to 330px, then do {...} @media only screen and (max-width: 330px) {...}: If [device width] is less than or equal to 330px, ...

Facebook APIs

Development, Programming & DevOps Everything About APIs

Generating Graph Access Token that Never Expire Make sure you are the admin of the FB page you wish to pull info from Create a FB App using the Page admin's account Head over to the Facebook Graph API Explorer Select the FB App you created from the "Appl...

How to do Everything in Javascript (Pure JS)

Development, Programming & DevOps PHP, Javascript & HTML

Mobile user-agent detection var isMobile = { Android: function() { return navigator.userAgent.match(/Android/i); }, BlackBerry: function() { return navigator.userAgent.match(/BlackBerry/i); }, iOS: function() { return navigator.userAgent.match(/...

How to do Everything in Joomla!

Development, Programming & DevOps CMS/E-Commerce

Changing Read More Text In your Joomla admin go to Extensions > Language Manager > Overrides > New. In the Language Constant inputbox put: READ_MORE Then place your desired text in the Text box. Then select Save and Close. Reference: http://www...

How to do Everything in Metro UI CSS

Development, Programming & DevOps PHP, Javascript & HTML

Metro UI CSS with isLoading jQuery plugin IsLoading jQuery plugin: /* jQuery Plugin */$.isLoading({ class: 'spin', text: 'Loading', position: 'overlay', tpl: '<span class="bg-darker isloading-wrapper %wrapper%">%text%<i class="%class% icon-sp...

Basic MongoDB Operations

Development, Programming & DevOps MySQL / MariaDB & MongoDB

Queries and Indexes Display query stats db.<collection>.find({<query conditions>}).explain('executionStats') Basic Document Operations Find all documents in a collection db.<collection>.find({}) Sorting documents db.<collection>....

ReactJS REDUX Summary

Development, Programming & DevOps PHP, Javascript & HTML

Using stores and reducers A simple example import {createStore} from 'redux'var reducer_1 = (state, action) => { console.log('reducer_0 was called with state', state, 'and action', action);};var store_1 = createStore(reducer_1);  Real world example imp...

Standard ReactJS Procedures

Development, Programming & DevOps PHP, Javascript & HTML

Initialize ReactJS Project Enter npm init Enter npm install --save-dev babel-core babel-loader babel-preset-react babel-preset-es2015 webpack webpack-dev-server Enter npm install --save react react-dom jquery Append "scripts": {"start": "node_modules/.bin...

Solving Cryptic SVN Errors

Development, Programming & DevOps Git and SVN

SVN File already exists error svn update path/ --accept=mine-full

Common Parse API Operations

Development, Programming & DevOps Everything About APIs

Get schema curl -X GET \ -H "X-Parse-Application-Id: ${APPLICATION_ID}" \ -H "X-Parse-Master-Key: ${MASTER_KEY}" \ -H "Content-Type: application/json" \ https://wiki.twcloud.tech:1337/parse/schemas  Drop schema curl -X DELETE\ -H "X-Parse-Application-I...

RHEL VLAN and Bonding Configuration

Linux Networking

Check list: Check whether the 8021q module has been loaded. lsmod | grep 8021q If the 8021q module is not loaded, run the following command to load it: modprobe 8021q Configuration Add the following lines to /etc/modprobe.conf : alias bond0 bondingopti...

SEO

Checklists & Cheatsheets

General Only use either 2 of H1 tag, URL and page title for keywords, anything more than that will be penalized On-page SEO Title Tag Use a phrase containing relevant words (say, 8–11 words) with at most 55–65 characters because extremely long phrases will...

CentOS 7 - Configuring Cacti

Linux Networking

Install Required Dependencies yum -y install mariadb-server php php-cli php-mysql net-snmp-utils rrdtool php-snmp gcc mariadb-devel net-snmp-devel autoconf automake libtool dos2unix Enable Required Services for Cacti chkconfig httpd onchkconfig mariadb onch...

IPTables - Forwarding Between LAN and WLAN

Linux Networking

Add the following to /etc/udev/rules.d/10-network.rules, substitute LAN_MAC_ADDR and WLAN_MAC_ADDR with your Ethernet device and WLAN device MAC addresses for persistent network names: SUBSYSTEM=="net", ACTION=="add", ATTR{address}=="LAN_MAC_ADDR", NAME="ethe...

FirewallD - Opening a Port

Linux Networking

Use this command to find your active zone(s): firewall-cmd --get-active-zones It will say either public, dmz, or something else. You should only apply to the zones required. In the case of dmz try: firewall-cmd --zone=dmz --add-port=<port>/tcp --perm...

Connecting to OpenVPN Using NetworkManager

Linux Networking

Install the required packages sudo apt-get install network-manager network-manager-openvpn network-manager-openvpn-gnome Creating individual files from client.ovpn file These files must be kept safe and private at all times Make a directory called openvp...

OpenVPN - Firewall Configuration

Linux Networking

FirewallD Use the following commands to open all ports required by OpenVPN: firewall-cmd --list-servicesfirewall-cmd --permanent --add-service openvpnfirewall-cmd --permanent --add-masqueradefirewall-cmd --query-masqueradefirewall-cmd --reload IPTables My ...