Skip to content

Instantly share code, notes, and snippets.

View Rockbass's full-sized avatar

Volodymyr Ponomar Rockbass

  • Odessa, Ukraine
  • 03:46 (UTC +02:00)
View GitHub Profile
@Rockbass
Rockbass / README.md
Created March 11, 2021 08:31 — forked from jelovac/README.md
Ubuntu Mate 20.04 XRDP setup

Ubuntu Mate 20.04 XRDP setup

Documenting XRDP setup which worked for me on Ubuntu Mate 20.04.

Some parts are taken from: http://c-nergy.be/blog/?p=14093.

Install xrdp

sudo apt install xrdp
@Rockbass
Rockbass / 00_README
Created August 28, 2018 13:06 — forked from thisisrachelramos/00_README
Extracting / Exporting custom emoji from Slack
This builds off the excellent work of @lmarkus.
The scripts below can be used in conjunction with the Neutral Face Emoji Tools Google Chrome extension to (bulk!)
export emojis from one Slack team and import into another team:
https://chrome.google.com/webstore/detail/neutral-face-emoji-tools/anchoacphlfbdomdlomnbbfhcmcdmjej
Original work here: https://gist.github.com/lmarkus/8722f56baf8c47045621
Steps:
1) Run js in dev tools
@Rockbass
Rockbass / app.vue
Created January 10, 2018 10:30 — forked from dohomi/app.vue
Small file input element based on vuetify
<template>
<file-input v-model="filename" @formData="formData">
<v-btn @click.native="uploadFiles">
</template>
<script>
import fileInput from './file-input.vue'
export default{
components:{fileInput}
@Rockbass
Rockbass / express-server-side-rendering.md
Created January 9, 2018 08:25 — forked from joepie91/express-server-side-rendering.md
Rendering pages server-side with Express (and Pug)

Terminology

  • View: Also called a "template", a file that contains markup (like HTML) and optionally additional instructions on how to generate snippets of HTML, such as text interpolation, loops, conditionals, includes, and so on.
  • View engine: Also called a "template library" or "templater", ie. a library that implements view functionality, and potentially also a custom language for specifying it (like Pug does).
  • HTML templater: A template library that's designed specifically for generating HTML. It understands document structure and thus can provide useful advanced tools like mixins, as well as more secure output escaping (since it can determine the right escaping approach from the context in which a value is used), but it also means that the templater is not useful for anything other than HTML.
  • String-based templater: A template library that implements templating logic, but that has no understanding of the content it is generating - it simply concatenates together strings, potenti
@Rockbass
Rockbass / style.css
Created August 21, 2015 09:08
Right sidebar on Twenty Fifteen WP Theme
/*
Theme Name: Twenty Fifteen Right
Theme URI: http://twentyfifteen-right.local/
Description: Twenty Fifteen Child Theme
Author: Vladimir Ponomar
Author URI: http://ponomar.pp.ua
Template: twentyfifteen
Version: 1.0.0
License: GNU General Public License v2 or later
License URI: http://www.gnu.org/licenses/gpl-2.0.html
@Rockbass
Rockbass / jquery-resize.js
Created August 8, 2015 14:33
jQuery Resize
function heightDetect() {
$(".main_head") .css('height', $(window).height());
};
heightDetect();
$(window).resize(function() {
heightDetect();
});
@Rockbass
Rockbass / preload.css
Last active August 29, 2015 14:26
jQuery Page Preload
#loader {
background: none repeat scroll 0 0 #ffffff;
bottom: 0;
height: 100%;
left: 0;
position: fixed;
right: 0;
top: 0;
width: 100%;
z-index: 9999;