- Download Arduino IDE from https://www.arduino.cc/download_handler.php
- Extract arduino-1.8.5-linux64.tar.xz
- Copy arduino-1.8.5 into /opt/arduino
- Go into /usr/local/bin, e.g. cd /us r/local/bin
- Make a symlink from /usr/local/bin/arduino to /opt/arduino/arduino-1.8.5/arduino, e.g. ln -s /opt/arduino/arduino-1.8.5/arduino arduino
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
Type this into the terminal: | |
gsettings set org.gnome.nautilus.preferences default-folder-viewer 'list-view' |
hier
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
if (!-e $request_filename) { | |
rewrite /wp-admin$ $scheme://$host$uri/ permanent; | |
rewrite ^(/[^/]+)?(/wp-.*) $2 last; | |
rewrite ^(/[^/]+)?(/.*\.php) $2 last; | |
} | |
## See also: | |
## https://easyengine.io/wordpress-nginx/tutorials/multisite/subdirectories/minimal/ |
After a bit of poking around svgo:
- in
/usr/bin
is a commandline node apps installed, which is more like a shell script calling node. E.g svgo - libs used are installed in
/usr/lib/node_modules
, which are referenced from the svgo shell script
I'm installing the current LTS release of nodejs and npm, which is v8.9.1 and 5.5.1 on Ubuntu 16.04 LTS
- Download the setup script: https://deb.nodesource.com/setup_8.x and make sure you understand what it does before continuing...
- Chmod +x the setup script to make it an executable. Mine is called setup_8.x and I have renamed it setup_8.x.sh
- Run the script with sudo, it will add another repository to your sources.list.d and update apt's cache.
- Install the nodejs packages as the script states using:
sudo apt-get install nodejs
- Type nodejs --version to get your nodejs version and type npm -v to get your npm version.
If all went well it should be similar to mine.
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
grep -irl 'sudo' . | xargs sed -i 's/sudo: yes/become: true/g' |
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
require "rubygems" | |
require "twitter" | |
require "json" | |
# things you must configure | |
TWITTER_USER = "your_username" | |
MAX_AGE_IN_DAYS = 1 # anything older than this is deleted | |
# get these from dev.twitter.com | |
CONSUMER_KEY = "your_consumer_key" |
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
<?php | |
// Weird things can happen with an array having both strings and integers as | |
// keys... | |
// First we create a test array with only strings as keys | |
$strings_array = array( 'foo' => 1, 'bar' => 2); | |
// Second, using the strings array we create a new array and add a key with an integer zero | |
$strings_and_int_array = $strings_array; | |
$strings_and_int_array[0] = 666; |
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
find $DIR -name ".DS_Store" -print0 | xargs -0 rm -r |