sudo add-apt-repository ppa:graphics-drivers/ppa
sudo apt update
sudo ubuntu-drivers autoinstall
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/sh | |
chromium-browser --app=http://wm.etsmtl.ca:5000 --start-fullscreen |
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
/****************************************************** | |
Course: LOG121 | |
Session: E18 | |
Group: 7 | |
Project: ${PROJECT_NAME} | |
Students: Lucas Maurice; Raphael Duchaine; Jimmy Kong | |
Professor: Francis Cardinal | |
Purpose: TODO: Add Purpose | |
File Name: ${NAME} | |
Creation: ${DATE} |
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 | |
echo "<p>Hello World</p>"; | |
$param = "123"; | |
$command = escapeshellcmd("python3 ./test.py ".$param); | |
$output = shell_exec($command); | |
echo $output; |
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
function FindProxyForURL(url, host) { | |
// If the hostname matches, use proxy. | |
if ( | |
shExpMatch(host, "*.home") || | |
shExpMatch(host, "192.168.1.*") | |
) { | |
return "SOCKS localhost:8080"; | |
} |
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
#cloud-config | |
# | |
# This is an example file to automatically configure resolv.conf when the | |
# instance boots for the first time. | |
# | |
# Ensure that your yaml is valid and pass this as user-data when starting | |
# the instance. Also be sure that your cloud.cfg file includes this | |
# configuration module in the appropriate section. | |
# | |
manage_resolv_conf: true |
Run this:
bash <(curl -s https://gist.github.com/lucasmaurice/ba2b0e72963683a5e395ff2ed20a8825/raw/987bb7f87749ffe1d05e7e0db4f6d4910c2d8a65/disable-ipv6.sh)
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
# Get the root filesystem | |
FS_TYPE=$(df -T / | grep -v Filesystem | awk '{print $2}') | |
FS_DEVICE=$(df -T / | grep -v Filesystem | awk '{print $1}') | |
# Get VG and LV from the root filesystem | |
VG=$(lvdisplay $FS_DEVICE | grep "VG Name" | awk '{print $3}') | |
# Get the disk and partition number | |
DISK=$(pvs | grep $VG | awk '{print $1}' | rev | cut -d/ -f1 | rev | sed 's/[0-9]*//g') | |
PART=$(pvs | grep $VG | awk '{print $1}' | rev | cut -d/ -f1 | rev | sed 's/^[^0-9]*//') |
This script allow you to send from keyboard the content of the clipboard.
The current config will type the content of the clipboard when CTRL+K is pressed.
OlderNewer