Skip to content

Instantly share code, notes, and snippets.

@dilipgurung
dilipgurung / 0_reuse_code.js
Created August 21, 2017 09:52
Here are some things you can do with Gists in GistBox.
// Use Gists to store code you would like to remember later on
console.log(window); // log the "window" object to the console
#!/bin/sh
echo "Hello world"
<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE plist PUBLIC "-//Apple//DTD PLIST 1.0//EN" "http://www.apple.com/DTDs/PropertyList-1.0.dtd">
<plist version="1.0">
<dict>
<key>Label</key>
<string>com.example.helloWorld</string>
<key>ProgramArguments</key>
<array>
<string>/Your/Home/Directory/Scripts/hello_world.sh</string>
</array>
@dilipgurung
dilipgurung / mariadb_server_installation_ubuntu.sh
Last active July 29, 2017 13:50
Installing MariaDB server on Ubuntu 16.04
sudo apt-get install software-properties-common
sudo apt-key adv --recv-keys --keyserver hkp://keyserver.ubuntu.com:80 0xF1656F24C74CD1D8
sudo add-apt-repository 'deb [arch=amd64,i386,ppc64el] http://mirrors.coreix.net/mariadb/repo/10.1/ubuntu xenial main'
sudo apt-get update
sudo apt-get install mariadb-server
sudo mysql_secure_installation
sudo systemctl status mariadb.service
sudo systemctl enable mariadb.service