Skip to content

Instantly share code, notes, and snippets.

💭
http://orschi.ro

Or Schiro orschiro

💭
http://orschi.ro
Block or report user

Report or block orschiro

Hide content and notifications from this user.

Learn more about blocking users

Contact Support about this user’s behavior.

Learn more about reporting abuse

Report abuse
View GitHub Profile
@cvan
cvan / HOWTO.md
Last active Aug 7, 2019
How to serve a custom HTTPS domain on GitHub Pages with CloudFlare: *FREE*, secure and performant by default
View HOWTO.md

Instructions

CloudFlare is an awesome reverse cache proxy and CDN that provides DNS, free HTTPS (TLS) support, best-in-class performance settings (gzip, SDCH, HTTP/2, sane Cache-Control and E-Tag headers, etc.), minification, etc.

  1. Make sure you have registered a domain name.
  2. Sign up for CloudFlare and create an account for your domain.
  3. In your domain registrar's admin panel, point the nameservers to CloudFlare's (refer to this awesome list of links for instructions for various registrars).
  4. From the CloudFlare settings for that domain, enable HTTPS/SSL and set up a Page Rule to force HTTPS redirects. (If you want to get fancy, you can also enable automatic minification for text-based assets [HTML/CSS/JS/SVG/etc.], which is a pretty cool feature if you don't want already have a build step for minification.)
  5. If you
We couldn’t find that file to show.
@orschiro
orschiro / CopyQ - Save As.ini
Last active Sep 25, 2015 — forked from hluk/CopyQ - Save As.ini
CopyQ - Save Item/Clipboard To a File
View CopyQ - Save As.ini
[Command]
Command="
copyq:
var suffices = {
'image/svg': 'svg',
'image/png': 'png',
'image/jpeg': 'jpg',
'image/jpg': 'jpg',
'image/bmp': 'bmp',
'text/html': 'html',
@hluk
hluk / CopyQ - Snippets.ini
Last active Mar 24, 2017
CopyQ - Dialog for Pasting Snippets
View CopyQ - Snippets.ini
[Command]
Command="
copyq:
var snippetsTabName = 'Snippets'
function newVarRe(content) {
return new RegExp('\\\\${' + content + '}', 'g')
}
function getText(item) {
@hluk
hluk / CopyQ - Save As.ini
Last active Mar 24, 2017
CopyQ - Save Item/Clipboard To a File
View CopyQ - Save As.ini
[Command]
Command="
copyq:
var suffices = {
'image/svg': 'svg',
'image/png': 'png',
'image/jpeg': 'jpg',
'image/jpg': 'jpg',
'image/bmp': 'bmp',
'text/html': 'html',
@slowkow
slowkow / notify-toggle.sh
Last active Aug 15, 2017
Toggle notify-osd notifications, optionally toggle sound
View notify-toggle.sh
#!/usr/bin/env bash
# notify-toggle.sh
# Kamil Slowikowski
# May 31, 2014
#
# Toggle libnotify notification bubbles that appear in the top-right corner
# of your screen.
# You can uncomment some lines to mute and unmute sound, too.
#
# Works on:
You can’t perform that action at this time.