The url has changed: https://odan.github.io/2017/03/21/xampp-oracle-driver-setup-v12.html
ElementaryOS - Loki is an amazing ubuntu based distribution, I've just felt in love on it BUT they've removed what's required to install easily the nVidia Proprietary drivers. So here is the reason of this gist, to store the install instructions in one place inside a crystal clear documentation.
Open your favorite terminal application then type sudo ubuntu-drivers devices
, you should get something like this:
Please see the original article for a full explanation. Please feel free to comment, question and criticize there as well!
Requires https://www.npmjs.com/package/simple-free-encryption-tool
- compiled from multiple sources and much trial and error, feel free to use and pass on
- this is not exhaustive, it's meant only as a guide
This file contains hidden or 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
# ! install xdotool first - it is needed to check if the terminal is in foreground (or disable that if you don't want) | |
# then append this to ~/.config/fish/config.fish (create it if not existent) | |
function alert_cmd_done --on-event fish_postexec | |
set status_code $status # save for later | |
set active_window (ps -p (xdotool getwindowpid (xdotool getactivewindow)) -o comm=) # get the process name of the currently active window | |
if status --is-interactive # Check for interactive session (keyboard attached) | |
if [ $active_window != "pantheon-termin" -a \ | |
$CMD_DURATION -a \ | |
$CMD_DURATION -gt (math "1000 * 5") ] # in background, after a job longer than 5 seconds |
This file contains hidden or 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
#!/bin/bash | |
sudo apt-get install apt-transport-https ca-certificates -y | |
sudo apt-key adv --keyserver hkp://p80.pool.sks-keyservers.net:80 --recv-keys 58118E89F3A912897C070ADBF76221572C52609D | |
sudo rm -f /etc/apt/sources.list.d/docker.list | |
sudo add-apt-repository \ | |
"deb [arch=amd64] https://download.docker.com/linux/ubuntu \ | |
$(lsb_release -u -cs) \ | |
stable" | |
sudo apt-get update | |
sudo apt-get purge lxc-docker |
This file contains hidden or 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
<?php | |
#path routes/console.php | |
Artisan::command('entity:generate', function () { | |
$modelName = $this->ask('Model Name'); | |
$tableName = $this->ask('Table Name'); | |
$fs = new Illuminate\Filesystem\Filesystem(); | |
$pdo = DB::getPdo(); | |
$ds = DIRECTORY_SEPARATOR; |
This file contains hidden or 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
# MAKEFILE | |
# | |
# Autor: Vitor Britto | |
# Versão: 0.1.0 | |
# | |
# | |
# Descrição: | |
# Arquivo para gerar um estrutura inicial para | |
# novos projetos e realizar tarefas de automação | |
# |
- Download Franz for your distribution from MeetFranz.com
- change into the same directory as the downloaded file, then
sudo tar -xf Franz-linux-x64-0.9.10.tgz -C /opt/franz
- (optional)
wget "https://cdn-images-1.medium.com/max/360/1*v86tTomtFZIdqzMNpvwIZw.png" -O franz-icon.png
thensudo cp franz-icon.png /opt/franz
- (optional)
sudo touch /usr/share/applications/franz.desktop
thensudo vim /usr/share/applications/franz.desktop
paste the following lines into the file, then save the file:
[Desktop Entry]
Name=Franz
Comment=
This file contains hidden or 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
<!DOCTYPE html> | |
<html data-ng-app="TestApp"> | |
<head> | |
<script src="http://code.angularjs.org/1.2.9/angular.js"></script> | |
<script> | |
angular.module('TestApp', []) | |
.factory('beforeUnload', function ($rootScope, $window) { | |
// Events are broadcast outside the Scope Lifecycle |