Convert PDF into high quality images
https://serverfault.com/questions/167573/fast-pdf-to-jpg-conversion-on-linux-wanted
install
apt-get install ghostscript
#!/usr/bin/env bash | |
# ex: ./charles_convert_raw_hexdump_to_bin.sh hexdumpraw.txt hexformatted.txt data.bin | |
# hexdumpraw.txt ex: | |
## 00000510 0a 6d 6f 64 65 6c 5f 6e 61 6d 65 12 07 4e 65 78 model_name Nex | |
## 00000520 75 73 20 35 1a 20 0a 11 61 72 63 68 69 74 65 63 us 5 architec | |
## 00000530 74 75 72 65 5f 6e 61 6d 65 12 0b 61 72 6d 65 61 ture_name armea | |
## 00000540 62 69 2d 76 37 61 1a 19 0a 0b 64 65 76 69 63 65 bi-v7a device | |
## 00000550 5f 6e 61 6d 65 12 0a 68 61 6d 6d 65 72 68 65 61 _name hammerhea |
# Wii U / Cemu Xbox controller profile | |
# Located at: cemu\controllerProfiles | |
[General] | |
emulate = Wii U GamePad | |
api = XInput | |
controller = 0 | |
[Controller] | |
rumble = 0 |
# Dolphin Gamecube/Wii emulator / Xbox One Controller profile | |
# Gamecube Controller | |
# Location -> C:\User\<your user>\Documents\Dolphin Emulator\Config\Profiles\GCPad\Xbox Controller (GCPad).ini | |
[Profile] | |
Device = XInput/0/Gamepad | |
Buttons/A = `Button A` | |
Buttons/B = `Button B` | |
Buttons/X = `Button X` | |
Buttons/Y = `Button Y` |
# Elementary OS install nvidia graphics drivers | |
## remove old drivers | |
sudo apt autoremove nvidia* | |
## install new drivers | |
sudo ubuntu-drivers autoinstall |
apt-get install ghostscript
/** | |
* Calculate the center/average of multiple GeoLocation coordinates | |
* Expects an array of objects with .latitude and .longitude properties | |
* | |
* @url http://stackoverflow.com/a/14231286/538646 | |
*/ | |
function averageGeolocation(coords) { | |
if (coords.length === 1) { | |
return coords[0]; | |
} |
package main | |
import "fmt" | |
import "time" | |
import "math" | |
var exponentialBackoffCeilingSecs int64 = 14400 // 4 hours | |
func main() { | |
fmt.Println("Hello World") |
Update nodejs to latest version: | |
sudo npm install -g n | |
sudo n latest | |
Update npm to latest version: | |
sudo npm install -g npm | |
Do what @runcible suggested | |
hash -d npm |
echo "username ALL=(ALL) NOPASSWD:ALL" >> /etc/sudoers |
ffmpeg -ss 00:00:30 -i orginalfile -t 00:00:05 -vcodec copy -acodec copy newfile