Skip to content

Instantly share code, notes, and snippets.

View mortalis13's full-sized avatar

Roman mortalis13

View GitHub Profile
<!-- JSP comments for Sublime Text, the default comment is HTML-styled -->
<!-- Put this file to the Packages/Java folder -->
<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE plist PUBLIC "-//Apple Computer//DTD PLIST 1.0//EN" "http://www.apple.com/DTDs/PropertyList-1.0.dtd">
<plist version="1.0">
<dict>
<key>name</key>
<string>Comments</string>
<key>scope</key>
<string>text.html.jsp</string>
data = [
0x0000,
0x0402,
0x0802,
0x0bf6,
0x0fe3,
0x13ba,
0x1783,
0x1b31,
0x1ec5,
@mortalis13
mortalis13 / LinuxMint Repos
Last active May 31, 2019 06:54
LinuxMint Repos
# Do not edit this file manually, use Software Sources instead.
deb http://packages.linuxmint.com sylvia main upstream import backport #id:linuxmint_main
deb http://archive.ubuntu.com/ubuntu xenial main restricted universe multiverse
deb http://archive.ubuntu.com/ubuntu xenial-updates main restricted universe multiverse
deb http://archive.ubuntu.com/ubuntu xenial-backports main restricted universe multiverse
deb http://security.ubuntu.com/ubuntu/ xenial-security main restricted universe multiverse
deb http://archive.canonical.com/ubuntu/ xenial partner
/packages/compress/bzip2/package.mk
#PKG_URL="https://datapacket.dl.sourceforge.net/project/bzip2/bzip2-1.0.6.tar.gz"
PKG_URL="https://datapacket.dl.sourceforge.net/project/$PKG_NAME/$PKG_NAME-$PKG_VERSION.tar.gz"
-- addon.xml
<?xml version="1.0" encoding="UTF-8" standalone="yes"?>
<addon id="script.autostarttest" name="Autostart Test Script" version="1.0.1" provider-name="work">
<requires>
<import addon="xbmc.python" version="2.1.0"/>
</requires>
<extension point="xbmc.service" library="addon.py" start="startup">
</extension>
<extension point="xbmc.addon.metadata">
<platform>all</platform>
#
3 Inches of Blood
The 3rd Attempt
16
40 Watt Sun
1349
1914
A
<!DOCTYPE html>
<html>
<head>
<title></title>
<script src="https://unpkg.com/jspdf@latest/dist/jspdf.min.js"></script>
<script src="https://unpkg.com/jspdf-autotable"></script>
<script src="https://code.jquery.com/jquery-2.2.4.min.js"></script>
<script>
$(function(){
// == Deezer_FullScreen
javascript:(function(){
$('#page_sidebar').hide();
$('.abp-banner-container').hide();
$('.profile-header').hide();
$('#page_topbar').css('position', 'static');
$('#page_content').css('margin-left', 0);
$('.container').css('width', '100%');
$(".ellipsis").css('white-space', 'normal');
data:text/html,<html><head><title>EDIT window</title></head><body onload="document.body.contentEditable='true';" onclick="if(event.shiftKey){this.contentEditable='false';this.innerHTML=this.innerHTML.replace(/(<\/a>)/ig,'$1<br>');event.preventDefault();}" height="99%" width="100%"></body></html>

Using the data: protocol, the snippet creates an inline page with HTML/JS code. Can be used as a bookmark. Shift+Click disables the contentEditable mode.

# == commands
Ctrl+P - previous command in history
Ctrl+N - next command in history
printf "%d, %.2f\n" 5 3.2
type [cmd]
type ls -> 'alias'
type pwd -> 'shell builtin'
type expr -> '/usr/bin/expr'