dig +short myip.opendns.com @resolver1.opendns.com
wget http://ipecho.net/plain -O - -q ; echo
// camelCase | |
// PascalCase | |
// snake_case | |
// kebab-case | |
function toCamel(string) { | |
return string.replace(/(^\w{1})|(\s{1}\w{1})/g, match => match.toUpperCase()).replace(/ /g, '').replace(/^\w/, c => c.toLowerCase()) | |
} | |
function toPascal(string) { |
#!/bin/sh | |
# use with libreelec addon - kodi-recalbox-launcher | |
# https://github.com/jasenmichael/kodi-recalbox-launcher | |
echo 9 > /sys/module/bcm2708/parameters/reboot_part | |
echo 9 > /sys/module/bcm2709/parameters/reboot_part | |
echo 9 > /sys/module/bcm2710/parameters/reboot_part | |
/sbin/reboot 9 || /sbin/reboot | |
sleep 5 |
#!/bin/bash | |
# usage | |
# ./make-berryboot-squashimage.sh /full/path/to/your-image-to-squash.img | |
# install dependencies | |
# sudo apt-get install kpartx | |
# sudo apt-get install squashfs-tools | |
img="${1##*/}" |
#!/bin/bash | |
# Get postman app | |
wget https://dl.pstmn.io/download/latest/linux64 -O postman.tar.gz | |
sudo tar -xzf postman.tar.gz -C /opt | |
sudo ln -s /opt/Postman/Postman /usr/bin/postman | |
#Create a Desktop Entry | |
cat > ~/.local/share/applications/postman.desktop <<EOL | |
[Desktop Entry] | |
Encoding=UTF-8 |
I had recently been setting up retropie on one of my raspberrypi3's. I found all the psx .iso's I had made years ago ran perfect on the pi3 with retropie. It had been years since I backed up some of my old playstation games, and recently found some more lying around, I decided to add them to my retropie. After searching the internet, I rememberd I used achohol in windoze xp years ago, but now strickly a linux user.
At the time of this writing I am running UbuntuGnome 16.10 on my desktop so I found this method using cdrdao, bchunk, and a bash script
add main universe repo, edit /etc/apt/sources.list and add this line save and exit: deb http://us.archive.ubuntu.com/ubuntu yakkety main universe
update repositories
var path = require('path') | |
let file = "path/to/file/file.ext" | |
let filePath = path.dirname(file) | |
let fileName = file.split('.').pop() | |
let fileNameWithExtention = file.split('/').pop() | |
console.log('file: ',file) |
const http = require('http'); | |
const url = require('url'); | |
const fs = require('fs'); | |
const path = require('path'); | |
const port = process.argv[2] || 9000; | |
http.createServer(function (req, res) { | |
console.log(`${req.method} ${req.url}`); | |
// parse URL |
<div id="app"> | |
<v-app id="inspire"> | |
<v-carousel | |
hide-controls | |
style="height:100%"> | |
<v-carousel-item | |
v-for="(item,i) in items" | |
v-bind:src="item.src" | |
:key="i"> | |
</v-carousel-item> |
<div id="app"> | |
<section class="hero is-primary is-medium"> | |
<router-view></router-view> | |
<div class="hero-foot"> | |
<div class="columns is-mobile"> | |
<div v-for="movieChoice in movieChoices" class="column"> | |
<router-link :to="`/${movieChoice.id}`" tag="li" class="movie-choice"> | |
<i :class="[{ 'fa fa-check-circle favorite-check': movieChoice.favorite }]" aria-hidden="true"></i> | |
<img :src="`${movieChoice.smallImgSrc}`" class="desktop"/> |