This file contains 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
// Use Gists to store code you would like to remember later on | |
console.log(window); // log the "window" object to the console |
This file contains 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
sudo apt-add-repository ppa:ubuntu-mate-dev/ppa | |
sudo apt-add-repository ppa:x2go/stable | |
sudo apt-get update | |
sudo apt-get install mate-desktop-environment | |
sudo apt-get install x2goserver x2goserver-xsession | |
login with root or user credentials |
This file contains 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
<HTML> | |
<head> <title> My RSS Feed </title> </head> | |
<body> | |
<? | |
include 'rss_get.php'; | |
?> |
This file contains 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
.feed-button { | |
padding: 10px 0; | |
} | |
.feed-button a { | |
color: #666; | |
padding: 10px 15px 10px 36px; | |
background: #ccc url("../images/feed-icon-14x14.png") no-repeat 15px 50%; | |
border-top: 1px solid #e2e2e2; | |
border-right: 1px solid #818181; |
This file contains 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
.feed-list { | |
margin: 0 0 15px 15px; | |
padding: 0; | |
list-style-type: none; | |
} | |
.feed-list li { | |
margin: 0 0 10px 0; | |
padding: 0; | |
list-style-type: none; |
This file contains 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
.feed { | |
margin-left: 3px; | |
padding: 0 0 0 19px; | |
background: url("../images/feed-icon-14x14.png") no-repeat 0 50%; | |
} |
This file contains 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
#!/usr/bin/env bash | |
## Update | |
sudo apt-get update && sudo apt-get upgrade -y | |
## Update Hostname | |
echo "server" > /etc/hostname | |
hostname -F /etc/hostname | |
## Update hosts File |
This file contains 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
# Commands to backup a website from root access to ssh with mysql database | |
cd to directory of website | |
# Compress | |
tar czf filename.tar.gz * | |
mysqldump -u root -ppassword databasename | gzip -9 > filename.sql.gz | |
# Decompress | |
tar xzf filename.tar.gz | |
gunzip filename.sql.gz |
This file contains 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
# Run these three commands when moving your WordPress website from one domain to another | |
UPDATE wp_options SET option_value = replace(option_value, 'http://old-domain.com', 'http://new-domain.com') WHERE option_name = 'home' OR option_name = 'siteurl'; | |
UPDATE wp_posts SET guid = replace(guid, 'http://old-domain.com','http://new-domain.com'); | |
UPDATE wp_posts SET post_content = replace(post_content, 'http://old-domain.com', 'new-domain.com'); |
OlderNewer