create different ssh key according the article Mac Set-Up Git
$ ssh-keygen -t rsa -C "[email protected]"
create different ssh key according the article Mac Set-Up Git
$ ssh-keygen -t rsa -C "[email protected]"
# www.fduran.com | |
# Create Java KeyStore from SSL certificate for domain example.com | |
# Change format from cert.crt PEM (----BEGIN CERTIFICATE----- ... -----END CERTIFICATE-----) to DER | |
openssl x509 -in cert.crt -inform PEM -out cert.der -outform DER | |
# create KeyStore cert.jks for your domain ("alias" in keytool, "common name" or CN in openssl req) | |
keytool -import -trustcacerts -alias example.com -file cert.der -keystore cert.jks |
sudo rm -rfv /Library/Caches/com.apple.iconservices.store; sudo find /private/var/folders/ \( -name com.apple.dock.iconcache -or -name com.apple.iconservices \) -exec rm -rfv {} \; ; sleep 3;sudo touch /Applications/* ; killall Dock; killall Finder |
To free up some space in your slack workspace and having to delete each file by hand
To run the app you first need a legacy token from slack for your workspace.
Then download the cleanSlack.js
file and run it via Node.js.
By default the script will delete files older than a year. You can change that in the TIMESTAMP
variable.
var https = require('https'); | |
// CONFIGURATION ####################################################################################################### | |
var token = ''; | |
var delay = 300; // delay between delete operations in millisecond | |
// GLOBALS ############################################################################################################# | |
var baseApiUrl = 'https://slack.com/api/'; |
"use strict"; | |
// Load plugins | |
const autoprefixer = require("autoprefixer"); | |
const browsersync = require("browser-sync").create(); | |
const cp = require("child_process"); | |
const cssnano = require("cssnano"); | |
const del = require("del"); | |
const eslint = require("gulp-eslint"); | |
const gulp = require("gulp"); |
# send logs for all traffic (including non-html) to google analytics | |
# | |
# in server block: | |
# set $google_analytics_id "UA-THECORRECT-ID"; | |
# include /srv/nginx/google_analytics; | |
# | |
# in location blocks: | |
# post_action @ga; | |
# | |
# notes: post_action has been referred to by nginx devs as a "dirty hack" and this approach may stop working one day. |
To add a SFTP-only user, you'll need to make sure your SSH config settings are correct, add a new user/group and set permissions for your new user. For step-by-step directions, see below. Omit sudo
if you're logged in as root.
Edit /etc/ssh/sshd_config
and make sure to add the following at the end of the file:
Match group filetransfer
ChrootDirectory %h