Skip to content

Instantly share code, notes, and snippets.

View herotux's full-sized avatar

freetux herotux

View GitHub Profile
its ok
I set keyboard in paired mod
then in terminal:
$ bluetoothctl
[NEW] Controller 00:02:72:DE:1E:41 debi [default]
[NEW] Device 00:1F:20:EC:A5:DD Logitech Keyboard K480
[NEW] Device 00:1A:7D:55:02:06 BS-55
[NEW] Device A0:8D:16:86:81:C1 CHM-U01
[bluetooth]# connect 00:1F:20:EC:A5:DD
@herotux
herotux / mkvfind.sh
Last active August 8, 2019 11:20
find mkv files in download directory and move them to videos
#!/bi/bash
find ~/Downloads -type f -name "*.mkv" -exec mv {} ~/Videos/new-movies \;
total= find ~/Downloads -type f -name "*.mkv"|wc -l
echo $total
@herotux
herotux / kshbus.json
Last active June 23, 2018 12:09
kermanshah osm bus lat and lon
{
"version": 0.6,
"generator": "Overpass API 0.7.55.3 9da5e7ae",
"osm3s": {
"timestamp_osm_base": "2018-06-23T06:24:02Z",
"copyright": "The data included in this document is from www.openstreetmap.org. The data is made available under ODbL."
},
"elements": [
{
@herotux
herotux / osmtile.html
Created June 21, 2018 22:22
osmtile by leaflet
<!DOCTYPE html>
<html>
<head>
<meta name='viewport' content='width=device-width, initial-scale=1.0, maximum-scale=1.0, user-scalable=no' />
<link rel="stylesheet" href="http://cdn.leafletjs.com/leaflet-0.6.4/leaflet.css" />
<!--[if lte IE 8]>
<link rel="stylesheet" href="http://cdn.leafletjs.com/leaflet-0.6.4/leaflet.ie.css" />
<![endif]-->
<script src="http://cdn.leafletjs.com/leaflet-0.6.4/leaflet.js"></script>
@herotux
herotux / license-badges.md
Created May 17, 2018 16:30 — forked from lukas-h/license-badges.md
License Badges for your Project

Markdown License badges

Collection of License badges for your Project's README file.
This list includes the most common open source and open data licenses.
Easily copy and paste the code under the badges into your Markdown files.

Notes

  • Badges are made with Shields.io.
  • This badges do not fully replace the license informations for your projects, they are only emblems for the README, that the user can see the License at first glance.  
  • 🇫🇷 Cette liste en français
  • Github has a new autodetection of the LICENSE file, which shows up the license at the repo overview
@herotux
herotux / admin.py
Created May 11, 2018 11:32 — forked from padurets/admin.py
django rest api framework session auth example
from django.contrib import admin
from .models import User
admin.site.register([User])
@herotux
herotux / vps-django.md
Last active January 25, 2023 13:29
راه اندازی وب سرور پایتون و جنگو روی vps

راه اندازی وب سرور پایتون و جنگو روی vps

این یه مقاله کامل نیست و احتمالا پر اشتباه باشه پس اگه میبینید جایی ایراد داره اطلاع بدید ممنونم.

سیستم عامل گنو/لینوکس اوبونتو