Archives
Trending
Support
Login
Get distance from Google Maps
Show paste
#get distance from Google Mapes
wget -q -O- "https://maps.googleapis.com/maps/api/distancematrix/json?origins=2645%2016th%20Ave%20NE,%20Naples,%20FL%2034120&destinations=571%2097th%20Ave%20N%20Naples,%20FL%2034108&units=imperial"
Javascript time between two days
Show paste
<!DOCTYPE html>
<html lang="en">
<head>
<title>Until Vacation TIME!!!</title>
<meta charset="utf-8">
Watch Random Rick and Morty
Show paste
#!/bin/bash
#youtube-dl and mpv needed
#sudo apt install mpv youtube-dl
Get Volume Level of Pulse audio
Show paste
#/bin/sh
#get default sink name
name="$(pacmd stat | awk -F": " '/^Default sink name: /{print $2}')"
Python GTK Clock
Show paste
#!/usr/bin/env python
# -*- coding: utf-8 -*-
import pygtk
pygtk.require('2.0')
Pairing Logitech mouse and keyboard
Show paste
$ solaar-cli unpair mouse
Unpaired 1: Wireless Mouse M525 [M525:DAFA335E]
$ solaar-cli pair
Pairing: turn your new device on (timing out in 20 seconds).
Paired device 1: Wireless Mouse M525 [M525:DAFA335E]
2017 Linux setup with Fluxbox and conky
Show paste
apt install kupfer unzip blueman-applet vim git nmap gimp pcmanfm youtube-dl mpv dos2unix busybox
#fluxbox setup
sudo apt install fluxbox maximus numlockx
wget "https://gist.github.com/metalx1000/440c833d18dcf7b624ff70c8aed4f92a/archive/01b30b2767378bd9dc0f110d0d1a98583c17ea3b.zip" -O /tmp/flux.zip
Python GTK get keypressed
Show paste
#!/usr/bin/env python
import gtk,os,random
class WIN:
Maximize all Windows
Show paste
#!/bin/bash
window_ids=$(wmctrl -l | cut -f1 -d " ")
for window_id in $window_ids
do
wmctrl -i -r "$window_id" -b toggle,maximized_vert,maximized_horz
bluetooth notes
Show paste
#scan for devices that are discoverable
hcitool scan
#list connected devices
hcitool con
Previous
1
2
...
2604
2605
2606
2607
2608
...
2681
2682
Next