- Clean pkg cache
- Remove unused packages (orphans)
- Clean cache in /home
- remove old config files
- Find and Remove
- duplicates
- empty files
- empty directories
- broken symlinks
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
var gulp = require('gulp'); | |
var sass = require('gulp-sass'); | |
var sassGlob = require('gulp-sass-glob'); | |
var browserSync = require('browser-sync'); | |
var postcss = require('gulp-postcss'); | |
var autoprefixer = require('autoprefixer'); | |
var cssvariables = require('postcss-css-variables'); | |
var calc = require('postcss-calc'); | |
var concat = require('gulp-concat'); | |
var rename = require('gulp-rename'); |
This tutorial is about setting up a Github account to commit (via SSH) to an existing/new repository and common commands to handle that repository.
- globally (recommended for one github account / OS user)
git config --global user.email "[email protected]"
git config --global user.name "Your Name"
- locally (recommended for multiple github accounts / OS user)
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
var request = require("request"); | |
var fs = require("fs"); | |
var output = "#cloudfront ip ranges\n"; | |
request("https://ip-ranges.amazonaws.com/ip-ranges.json", function(err, res, body) { | |
if (err) { | |
console.error("error", err); | |
} | |
var j = JSON.parse(body); | |
j.prefixes.forEach(function(item) { | |
if (item.service ==='CLOUDFRONT') { |
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
[Unit] | |
After=network.target | |
Description=Hello World App | |
[Service] | |
Environment="NODE_ENV=production" | |
ExecStart=/usr/bin/node /home/foo/test/index.js | |
Restart=on-failure | |
User=foo |
Table: url_alias
+----+-----------------+-------------------------------------------+-----------------+-----------+------------+
| id | slug | map_to | params | http_verb | middleware |
+----+-----------------+-------------------------------------------+-----------------+-----------+------------+
| 1 | page/about-us | Frontend\HomeController@showPage | a:1:{i:0;i:4;} | GET | web |
| 2 | page/contact-us | Backend\DashboardController@getContactUs | a:1:{i:0;i:4;} | GET | web |
| 3 | page/contact-us | Backend\DashboardController@postContactUs | | POST | web |
$ uname -r
Examples of getting certificates from Let's Encrypt working on Apache, NGINX and Node.js servers.
I chose to use the manual method, you have to make a file available to verify you own the domain. Follow the commands from running
git clone https://github.com/letsencrypt/letsencrypt
cd letsencrypt
NewerOlder