# Tarball and compress entire directory
📁 tar -zcvf archive-name.tar.gz directory-name
# Tarball and compress files individually
#!/bin/bash | |
# Setting up LAMP stack amazon linux | |
# Install all updates without asking permission | |
sudo yum update -y | |
# Install the Apache web server, MySQL, and PHP software packages | |
sudo yum install -y httpd24 php56 mysql55-server php56-mysqlnd |
// Create angular app | |
var app = angular.module('myApp'); | |
// Create custom filter for objects | |
app.filter('orderObjectByNestedProperties', function() { | |
return function(items, field, innerField, reverse) { | |
var filtered = []; | |
angular.forEach(items, function(item) { | |
filtered.push(item); | |
}); |
# Tarball and compress entire directory
📁 tar -zcvf archive-name.tar.gz directory-name
# Tarball and compress files individually
/* Create a JAR file from files */
jar cf jar-file.jar input-file(s)
Options ☕
💻 💻 💻 💻 💻 💻 💻 💻 💻 💻 💻 SublimeREPL for SML 💻 💻 💻 💻 💻 💻 💻 💻 💻 💻 💻
This tutorial assumes you already have Sublime text editor with Package Control installed as well as smlnj installed. Complete the installations with the links provided before continuing if you haven't already done so. 👌
byte[] emojiBytes = new byte[]{(byte)0xF0, (byte)0x9F, (byte)0x98, (byte)0x81}; | |
String emojiAsString = new String(emojiBytes, Charset.forName("UTF-8")); |