Skip to content

Instantly share code, notes, and snippets.

View RavinduSachintha's full-sized avatar
🎯
Focusing

Sachintha RavinduSachintha

🎯
Focusing
View GitHub Profile
@tiagohm
tiagohm / install-jekyll-fedora.sh
Last active October 23, 2018 11:10
Instalar Jekyll no Fedora 27 / Install Jekyll on Fedora 27
sudo dnf install ruby ruby-devel redhat-rpm-config gcc gcc-c++
sudo gem install json
sudo gem install jekyll bundler
sudo gem update --system
//Na pasta onde se encontra seus arquivos jekyll
bundle install
bundle update
@naddeoa
naddeoa / gnome-shell-menu-items-example.js
Created May 15, 2017 02:45
Minimal example of how to create a gnome shell extension that has a menu, menu items, and a label that updates on a timer
// Basic stuff
const St = imports.gi.St;
const Lang = imports.lang;
// UI specific components
const Main = imports.ui.main;
const PopupMenu = imports.ui.popupMenu;
const PanelMenu = imports.ui.panelMenu;
const Mainloop = imports.mainloop;
@mattmccarty
mattmccarty / sublime-3-maven-build
Created March 8, 2017 00:40
Maven Build System for Sublime Text 3
#
# Tools -> Build System -> New Build System
# Paste the snippet below in the file that opens
# Save as "Maven.sublime-build" in ~/.config/sublime-text-3/Packages/User
# Ctrl+Shift+P will show all maven commands in snippet below if you start to type "Maven"
# Open a pom.xml file and execute a command
#
{
"working_dir": "$file_path",
"shell_cmd":"mvn clean install",
##Set path to your conda installed location
export PATH="/opt/anaconda/bin:$PATH"
or permanent setting
echo 'export PATH="/opt/anaconda/bin:$PATH"'>>~/.bashrc
source .bashrc
##anaconda-navigator use QT5, Fixed macbook hidpi tiny font issue, refer from https://wiki.archlinux.org/index.php/HiDPI#Qt_5
export QT_AUTO_SCREEN_SCALE_FACTOR=0
export QT_SCALE_FACTOR=2
@juanje
juanje / Description.md
Last active November 30, 2023 19:29
Limit Chrome from eating all the memory and CPU

I was tired of Chrome eating all my laptop resources so I decided to put some limit to it with cgroup.

As I was using Ubuntu 12.04 with support for cgroup, I installed the package cgroup-bin and add the following group to the file /etc/cgconfig.conf:

group browsers {
    cpu {
#       Set the relative share of CPU resources equal to 25%
        cpu.shares = "256";
 }
@rxaviers
rxaviers / gist:7360908
Last active July 26, 2024 03:07
Complete list of github markdown emoji markup

People

:bowtie: :bowtie: 😄 :smile: 😆 :laughing:
😊 :blush: 😃 :smiley: ☺️ :relaxed:
😏 :smirk: 😍 :heart_eyes: 😘 :kissing_heart:
😚 :kissing_closed_eyes: 😳 :flushed: 😌 :relieved:
😆 :satisfied: 😁 :grin: 😉 :wink:
😜 :stuck_out_tongue_winking_eye: 😝 :stuck_out_tongue_closed_eyes: 😀 :grinning:
😗 :kissing: 😙 :kissing_smiling_eyes: 😛 :stuck_out_tongue: