Skip to content

Instantly share code, notes, and snippets.

View golimpio's full-sized avatar

Gilberto Olimpio golimpio

  • Beechworth VIC, Australia
  • 04:05 (UTC +10:00)
  • X @golimpio
View GitHub Profile
@golimpio
golimpio / AES.java
Created October 13, 2017 04:56 — forked from ymnk/AES.java
JSch examples
/* -*-mode:java; c-basic-offset:2; indent-tabs-mode:nil -*- */
/**
* This program will demonstrate how to use "aes128-cbc".
*
*/
import com.jcraft.jsch.*;
import java.awt.*;
import javax.swing.*;
public class AES{
@golimpio
golimpio / README.md
Created August 16, 2017 00:50 — forked from nschwermann/README.md
Solarized IntelliJ Theme

This tweaks the darcula IntelliJ theme to better match the solarized color scheme found here https://github.com/jkaving/intellij-colors-solarized

To enable, after installing the color scheme linked above set your theme to darcula.

Preferences -> Appearance -> Theme -> Darcula

Exit IntelliJ then add the tweaked darcula properties file to the idea.jar file with the following command

jar -ufv idea.jar com/intellij/ide/ui/laf/darcula/darcula.properties 
@golimpio
golimpio / egos_throttle.sh
Last active August 23, 2023 06:54
Run cputhrottle for a list of applications in order to limit their CPU usage.
#!/bin/bash
# Run cputhrottle for a list of applications in order to limit their CPU usage.
# This script needs `pidof` and `cputhrottle` installed, which can be installed from homebrew.
# NOTE: This script was tested on MacOS only.
if [[ $EUID > 0 ]]; then
echo "Please run this script as root/sudo"
exit 1
fi
@golimpio
golimpio / window-toggle-decorations.py
Created July 1, 2016 05:27 — forked from unhammer/window-toggle-decorations.py
toggle gtk window decorations
#! /usr/bin/python2
import gtk.gdk
w = gtk.gdk.window_foreign_new( gtk.gdk.get_default_root_window().property_get("_NET_ACTIVE_WINDOW")[2][0] )
w.set_decorations( (w.get_decorations()+1)%2 ) # toggle between 0 and 1
gtk.gdk.window_process_all_updates()
gtk.gdk.flush()
# now bind this to super-r or something
@golimpio
golimpio / meyerweb_css_reset.css
Created June 22, 2016 04:43
MeyerWeb's popular CSS reset
/* http://meyerweb.com/eric/tools/css/reset/
v2.0 | 20110126
License: none (public domain)
*/
html, body, div, span, applet, object, iframe,
h1, h2, h3, h4, h5, h6, p, blockquote, pre,
a, abbr, acronym, address, big, cite, code,
del, dfn, em, img, ins, kbd, q, s, samp,
small, strike, strong, sub, sup, tt, var,
@golimpio
golimpio / Oceanic Giba
Created February 1, 2015 04:06
Oceanic theme modification for a darker gutter background
{ gutterSettings = {
foreground = '#2B3640';
background = '#1C2731';
divider = '#1F2A34';
selectionBackground = '#95A3A63D';
selectionForeground = '#1D2832';
};
settings = (
{ settings = {
foreground = '#F8F8F2';
@golimpio
golimpio / recolor-numix-folders.sh
Created October 3, 2014 13:39
Replace folders' colours in svg files on gnome icon themes
#! /bin/bash
echo Replacing \#$1 by \#$2
find . -name *folder* -path *places* -type f -print0 | xargs -0 -n 1 sed -i -e 's/'$1'/'$2'/g'
find . -name *fileopen* -path *places* -type f -print0 | xargs -0 -n 1 sed -i -e 's/'$1'/'$2'/g'
find . -name *user-desktop* -path *places* -type f -print0 | xargs -0 -n 1 sed -i -e 's/'$1'/'$2'/g'
find . -name *user-home* -path *places* -type f -print0 | xargs -0 -n 1 sed -i -e 's/'$1'/'$2'/g'
find . -name *network* -path *places* -type f -print0 | xargs -0 -n 1 sed -i -e 's/'$1'/'$2'/g'
# e.g. run it from the root folder of the icon theme:
# recolor-numix-folders.sh f5c14e 63b6d1
@-moz-document url(chrome://conversations/content/stub.xhtml) {
body {
background-color: #f5f5f5 !important;
padding: 0 !important;
}
#messageList {
}
@namespace url(http://www.mozilla.org/keymaster/gatekeeper/there.is.only.xul);
treechildren::-moz-tree-row {
padding: 0 !important;
height: 1.65em !important;
outline: 0 !important
}
treechildren::-moz-tree-cell-text(unread) {
font-weight: bold!important;
@golimpio
golimpio / evernote-clearly.css
Created March 8, 2014 05:13
Custom theme for Evernote Clearly
/**
* CSS theme for the Clearly browser extension by Evernote.
* See: www.evernote.com/clearly/
*
* Additional options used alongside this CSS:
* Body font: Source Sans Pro
* Header font: Source Sans Pro
* Monospace font: Liberation Mono for Powerline
* Background: #f5f5f5
* Foregound: #4a4444