Skip to content

Instantly share code, notes, and snippets.

View skypce's full-sized avatar

Shary skypce

View GitHub Profile
@skypce
skypce / index.html
Created January 16, 2019 01:02
Snowfall WebGL Shader
<div class="snow" count="7000"></div>
@skypce
skypce / transdic
Last active December 17, 2017 03:27
script dictionary and translator from google with trans
#!/usr/bin/env bash
SEL=$(xsel -o)
T="$(/usr/local/bin/trans -l es -o /tmp/output -theme=none :es "$SEL")" #echo "Translation:" "$T" >> /tmp/
ansi2html /tmp/output
#yad --html --title="Google translate and definition" --width=450 --height=300 --center --text=/tmp/output
# notify-send "$T"
#yad --info --title="Translation" --text="$T"
zenity --text-info --title="Google diccionary and translator" --filename=/tmp/output
@skypce
skypce / gist:63e107fffe2eaea2be498255aa74bc88
Created April 3, 2017 17:58
Map the left shift key to less, greater, bar, brokenbar key
You need edit /usr/share/X11/xkb/symbols/pc
replace by this code:
default partial alphanumeric_keys modifier_keys
xkb_symbols "pc105" {
key <ESC> { [ Escape ] };
@skypce
skypce / gist:b31650a97bc9b2c0483f427b781859d5
Created December 10, 2016 22:48
udn post-setup installation
using Gtk;
int main (string[] args) {
Gtk.init (ref args);
var window = new Window ();
window.title = "Unidockynapse Post-install Setup";
window.border_width = 10;
window.window_position = WindowPosition.CENTER;
window.set_default_size (350,140);
window.destroy.connect (Gtk.main_quit);
@skypce
skypce / Popcorn 4 Community 64 bit installation script
Last active December 10, 2016 04:18
Popcorn 4 Community 64 bit installation script
#!/bin/bash
sudo rm -fr /opt/pc4
sudo rm -fr /usr/share/applications/pc4.desktop
# create installation dir
sudo mkdir -p /opt/pc4
#install pc4
wget -qO- https://github.com/PopcornTimeCommunity/desktop/releases/download/v0.4.0-2/popcorn-time-community-v0.4.0-2-64bit.tar.xz | sudo tar xJf - -C /opt/pc4
@skypce
skypce / gist:355e56d0774160bb5619
Created March 14, 2016 16:27
Upwork Client fix for Ubuntu 14.04 ( Unknown SSL error -12218 mapped to net::ERR_SSL_PROTOCOL_ERROR)
If you have this error: Unknown SSL error -12218 mapped to net::ERR_SSL_PROTOCOL_ERROR
and your upwork client does not run you need:
sudo apt-get install libnss3=2:3.15.4-1ubuntu7 libnss3-nssdb=2:3.15.4-1ubuntu7
sudo apt-mark hold libnss3 libnss3-nssdb
Solution provided by Ilya E from upwork.
//
// Copyright (C) 2012 Tom Beckmann, Rico Tzschichholz
//
// This program is free software: you can redistribute it and/or modify
// it under the terms of the GNU General Public License as published by
// the Free Software Foundation, either version 3 of the License, or
// (at your option) any later version.
//
// This program is distributed in the hope that it will be useful,
// but WITHOUT ANY WARRANTY; without even the implied warranty of
/*
* Copyright (C) 2012 Tom Beckmann
*
* This program is free software: you can redistribute it and/or modify
* it under the terms of the GNU General Public License as published by
* the Free Software Foundation, either version 3 of the License, or
* (at your option) any later version.
*
* This program is distributed in the hope that it will be useful,
* but WITHOUT ANY WARRANTY; without even the implied warranty of
/*
A small wrapper utility to load indicators and put them as menu items
into the gnome-panel using it's applet interface.
Copyright 2009 Canonical Ltd.
Authors:
Ted Gould <ted@canonical.com>
Christoph Korn <c_korn@gmx.de>
CMAKE_MINIMUM_REQUIRED(VERSION 2.4.5)
PROJECT(lmms)
SET(CMAKE_MODULE_PATH "${CMAKE_SOURCE_DIR}/cmake/modules" ${CMAKE_MODULE_PATH})
IF(COMMAND CMAKE_POLICY)
CMAKE_POLICY(SET CMP0005 NEW)
CMAKE_POLICY(SET CMP0003 NEW)
ENDIF(COMMAND CMAKE_POLICY)