Skip to content

Instantly share code, notes, and snippets.

View beshrkayali's full-sized avatar

Beshr Kayali Reinholdsson beshrkayali

View GitHub Profile
! -*- coding: utf-8 -*-
! swap Ctrl and Alt keys
! default setting on special keys
! xmodmap -pke | grep -P '(Control|Super|Alt|Menu)'
! keycode 37 = Control_L NoSymbol Control_L
! keycode 64 = Alt_L Meta_L Alt_L Meta_L
! keycode 105 = Control_R NoSymbol Control_R
@beshrkayali
beshrkayali / poly-pio-mode.el
Created February 19, 2021 20:35
Poly RaspberryPi PIO mode
;; Simple Polymode for RaspberryPi Pico PIO files that uses
;; both asm-mode as host-mode and c-mode for pass-through section
(define-hostmode poly-pio-hostmode
:mode 'asm-mode)
(define-auto-innermode poly-pio-c-innermode
:mode 'c-mode
:head-matcher "^% c-sdk {$"
:tail-matcher "^%}$"
@beshrkayali
beshrkayali / block-se.txt
Created December 28, 2020 20:48
Frellwit's Swedish Hosts File (edited)
;; This buffer is for text that is not saved, and for Lisp evaluation.
;; To create a file, visit it with C-x C-f and enter text in its buffer.
# Aims to get rid of ads, tracking, scams & badware on (mostly) Swedish websites
# ----
# title: Frellwit's Swedish Hosts File (forked)
# last updated: 2020-12-26 13:18:26 CET
# entries: 807
# format: hosts (hosts -- in hosts file format)
# homepage: https://github.com/lassekongo83/Frellwits-filter-lists/
127.0.0.1 us.rdx2.lgtvsdp.com
127.0.0.1 us.info.lgsmartad.com
127.0.0.1 us.ibs.lgappstv.com
127.0.0.1 us.lgtvsdp.com
127.0.0.1 ad.lgappstv.com
127.0.0.1 smartshare.lgtvsdp.com
127.0.0.1 ibis.lgappstv.com
# added after fork
# from https://www.reddit.com/r/pihole/comments/6qmpv6/blacklists_for_lg_webos_tvs/ and others
@beshrkayali
beshrkayali / sawt_ipfs.csv
Last active September 11, 2018 21:16
Sawt media on IPFS
hash file
QmXu3Ams7rhNMnywK9xnpVyYaVLeKzHya3XnycE3P5F6dB sawt/Abdulrahman Mohammad/Ya mn Hawah A3zaho wa Athalani.mp3
QmRbAX8iG3EwCXRsT6FiZAgW5rtWJ8AbnXDZ8cXCF4RemK sawt/Akher Zapheer/Akherto Lahen Hazeen.mp3
QmaRKm4gUaVTAki398RmjCG4PRWgyv3CxmEVQdrie5K9dc sawt/Al Nather/Artichoke.mp3
QmTAcC3UwxFEE4NRfiotS6yxQ8s2ygHEeYX3TjG3ijKK5V sawt/Al Saleb (-1)/Shruush Dub.mp3
QmdxffJZ9WsZj5oigKBJe7PmQXfwnMryyCzY2RDfNcs5Bs sawt/Alaa Wardi/6ofoletna 3aysheen.mp3
QmVyVbBAqKhJ93DrTirdNb3jGpwsFsAjWyuXdGfAM4QzAs sawt/Anas and Friends/3yonak.mp3
QmPixpD8Fd6Cxchqit8YTpw5JuBk1GQLyFhKEGtR6CsLSu sawt/Anas and Friends/Ma T3'ibi.mp3
QmWWCZnNZyBVJxAKpLizgt9znrHse8pYUspxp9CxGyyCHk sawt/Anas and Friends/Mahjour .mp3
QmTHYmgrczQJ8GmmjVrJigQMMgTmZHpFLYpY6WPYfDYAR7 sawt/Anas and Friends/Ra7 Te2balini.mp3
r1---sn-cvh7knez.googlevideo.com
r2---sn-cvh7knez.googlevideo.com
r3---sn-cvh7knez.googlevideo.com
r4---sn-cvh7knes.googlevideo.com
r5---sn-cvh7knez.googlevideo.com
r6---sn-cvh7knez.googlevideo.com
r7---sn-cvh7knez.googlevideo.com
r8---sn-cvh7knez.googlevideo.com
r9---sn-cvh7knez.googlevideo.com
r10---sn-cvh7knez.googlevideo.com
Verifying that +beshrkayali is my blockchain ID. https://onename.com/beshrkayali

Keybase proof

I hereby claim:

  • I am beshrkayali on github.
  • I am beshr (https://keybase.io/beshr) on keybase.
  • I have a public key ASAKFrEJS50q3byjZGG4VM6f6FS5Cyuhvg4POFG7WtXZ1go

To claim this, I am signing this object:

#!/usr/bin/python2
"""
This is a modified version https://moinmo.in/ActionMarket/HTML2MoinMoin that takes in an HTML file instead of URL
Usage:
./html2moinmoin.py FILE.html
./html2moinmoin.py FILE.html > file.moin
@beshrkayali
beshrkayali / gist:9939796
Created April 2, 2014 18:11
Bookmarklet: Translate-in-place using Bing's API
javascript:($.getScript('http://jquery.bunkerhill.com/js/jquery.translator-1.1.0-debug-all.js', function(){$("span, h1, h2, p, a").translator({ appID: appId, tolang: tolang})}))