create different ssh key according the article Mac Set-Up Git
$ ssh-keygen -t rsa -C "your_email@youremail.com"
# vim /etc/sysconfig/iptables | |
# | |
*filter | |
:INPUT ACCEPT [0:0] | |
:FORWARD ACCEPT [0:0] | |
:OUTPUT ACCEPT [0:0] | |
-A INPUT -m state --state ESTABLISHED,RELATED -j ACCEPT | |
-A INPUT -p icmp -j ACCEPT | |
-A INPUT -i lo -j ACCEPT | |
-A INPUT -m state --state NEW -m tcp -p tcp --dport 22 -j ACCEPT |
# Jeff Day - 2013 | |
# Sublime plugin that invokes Grunt whenever the user saves a file within the current project. | |
# call to RSYNC project to remote server via RSync | |
# | |
# October 27, 2013 - Updated this to work using Sublime Text 3 (Jeff) | |
# November 10, 2013 - Now compatible with OSX Mavericks (Jeff) | |
# January 2, 2014 - Switched over to Grunt (Tom) | |
import sublime, sublime_plugin | |
import json, os, subprocess, functools |
create different ssh key according the article Mac Set-Up Git
$ ssh-keygen -t rsa -C "your_email@youremail.com"
mysql -h 127.0.0.1 -u root -p"*******" database < applications.sql | |
mysql -h 127.0.0.1 -u root -p"******" database < publishers.sql |
Once in a while, you may need to cleanup resources (containers, volumes, images, networks) ...
// see: https://github.com/chadoe/docker-cleanup-volumes
$ docker volume rm $(docker volume ls -qf dangling=true)
$ docker volume ls -qf dangling=true | xargs -r docker volume rm
do { | |
let jsonEncoder = JSONEncoder() | |
jsonEncoder.outputFormatting = .prettyPrinted | |
let jsonData = try jsonEncoder.encode(palettes) | |
if let jsonString = String(data: jsonData, encoding: .utf8) { | |
print(jsonString) | |
} | |
} catch { | |
print("error") | |
} |
$ composer require itsgoingd/clockwork --dev
If you are running the latest Laravel version, congratulations you are done!
By default, Clockwork will only be available in debug mode, you can change this and other settings in the configuration file. Use the vendor:publish
Artisan command to publish the configuration file into your config directory.
#!/bin/bash | |
# Create a new user named morpheus | |
useradd -m -s /bin/bash morpheus | |
# Add users to sudo or wheel group | |
usermod -aG sudo morpheus #Debian/Ubuntu | |
usermod -aG wheel morpheus #CentOS/RHEL | |
# Create Home Directory + .ssh Directory |
Minimal example: transcode from MP3 to WMA:
ffmpeg -i input.mp3 output.wma
You can get the list of supported formats with:
ffmpeg -formats
Convert WAV to MP3, mix down to mono (use 1 audio channel), set bit rate to 64 kbps and sample rate to 22050 Hz: