sudo apt-get install gnome-tweak-tool -y && gnome-tweak-tool
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
Intent openBrowserIntent = new Intent(Intent.ACTION_VIEW); | |
openBrowserIntent.setData(Uri.parse("http://google.com")); | |
startActivity(openBrowserIntent); |
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
AlertDialog.Builder builder = new AlertDialog.Builder(this); | |
builder.setMessage("Are you sure?"); | |
builder.setPositiveButton("Yes", new DialogInterface.OnClickListener() { | |
@Override | |
public void onClick(DialogInterface dialogInterface, int i) { | |
dialogInterface.dismiss(); | |
// Do something | |
// ... |
sudo add-apt-repository ppa:cwchien/gradle
sudo apt-get update
sudo apt-get install gradle
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
// Measure Elapsed Time in Nanoseconds | |
// #include <QElapsedTimer> | |
QElapsedTimer timer; | |
qint64 nanoSec; | |
timer.start(); | |
/* ... some activity ... */ |
#Install Java 8 (Oracle JDK)
sudo add-apt-repository ppa:webupd8team/java
sudo apt-get update
sudo apt-get install oracle-java8-installer
sudo apt-get install oracle-java8-set-default
# Check
java -version
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
# Your init script | |
# | |
# Atom will evaluate this file each time a new window is opened. It is run | |
# after packages are loaded/activated and after the previous editor state | |
# has been restored. | |
# | |
# An example hack to log to the console when each text editor is saved. | |
# | |
# atom.workspace.observeTextEditors (editor) -> | |
# editor.onDidSave -> |
Given: SnapshotPoint snapshotPoint
Get: ITextSnapshot which the snapshotPoint refers to
ITextSnapshot snapshot = snapshotPoint.Value.Snapshot;
Given: SnapshotPoint snapshotPoint
I still use docker.io which is now considered an old version, so you probably want to use the recommended Docker CE (Community Edition) instead. More info here:https://docs.docker.com/install/linux/docker-ce/ubuntu/#install-using-the-repository
At this point, most docker commands including docker ps
require sudo
permission, and this should be avoided. Next section addresses this.
Run these commands. Some are straight from Docker's docs: https://docs.docker.com/install/linux/linux-postinstall/
OlderNewer