Skip to content

Instantly share code, notes, and snippets.

View surajmandalcell's full-sized avatar
🏃‍♂️
Working

Suraj Mandal surajmandalcell

🏃‍♂️
Working
View GitHub Profile
@surajmandalcell
surajmandalcell / sublime_settiings_linux.md
Last active June 2, 2018 03:16
My sublime text 3 settings

"indent_guide_options": ["draw_active"],
"always_show_minimap_viewport": false,
"translate_tabs_to_spaces": true,
"save_on_focus_lost": true,
"caret_style": "smooth",
"highlight_line": true,
"spell_check": false,
"scroll_speed": 1.2,
"word_wrap": true,
"font_size": 11,

@surajmandalcell
surajmandalcell / elementary_tweaks.md
Last active April 22, 2018 08:30
List of must have elementary tweaks

Slingshot super key opens menu

gsettings set org.gnome.mutter overlay-key "'Super_L'"
gsettings set org.pantheon.desktop.gala.behavior overlay-action "'wingpanel --toggle-indicator=app-launcher'"

Dropbox indicator icon fix

#!/bin/bash
env XDG_CURRENT_DESKTOP=Unity QT_STYLE_OVERRIDE='' dropbox start

@surajmandalcell
surajmandalcell / remember_git_credentials.md
Last active July 13, 2018 18:56
Git helpful commands

Git remember credentials

git config --global credential.helper cache

@surajmandalcell
surajmandalcell / ohmyzsh_customize
Last active June 11, 2018 19:02
Customize oh-my-zsh
# In ~/.zshrc Add this to end of the document and save TO DISABLE DYNAMIC TITLE IN TERMINAL!!!
DISABLE_AUTO_TITLE="true"
# Enable * gblob
setopt glob
@surajmandalcell
surajmandalcell / remove brackets from linux mint pannel when minimizing.md
Created March 25, 2018 12:32
remove brackets from linux mint pannel when minimizing

check this javascript file

/usr/share/cinnamon/applets/[email protected]/applet.js

you should be able to edit that. i'm gonna check myself if i can find it.

if (this.metaWindow.minimized) {
    title = "["+ title +"]";
} else if (this.metaWindow.tile_type == Meta.WindowTileType.TILED) {

title = "|"+ title;

@surajmandalcell
surajmandalcell / Icon_Theme_help.txt
Last active March 20, 2018 14:25
Icon theme creation tmp
https://www.linux.org/threads/creating-icon-themes.11826/
actions - Icons for actions (such as redo, close, play, etc.) that may be seen in toolbars, menus, buttons, etc.
animations - Images that are used to make animated icons (such as "loading spinners" or disc-burning progress)
apps - Icons for specific applications or for applications of a general type
categories - Icons for various application categories
devices - Icons for devices such as mounted storage media, optical disks, iPods, phones, printers, etc.
emblems - Icons for tags and file properties (such as the "unreadable" or "soft-link" symbol)
@surajmandalcell
surajmandalcell / HslToRgb.js
Created March 27, 2017 10:12
Javascript junctions to convert javascript to hsl and hsl to javscript
// `rgbToHsl`
// Converts an RGB color value to HSL.
// *Assumes:* r, g, and b are contained in [0, 255] or [0, 1]
// *Returns:* { h, s, l } in [0,1]
function rgbToHsl(r, g, b) {
r = bound01(r, 255);
g = bound01(g, 255);
b = bound01(b, 255);
/* https://rawgit.com/surajmandalcell/6ffd8d4d75c271271753d4d111e40754/raw/f90930780358332bcb2a2f16cc9053e48a310efc/cssQuick.css */
.center-it-x{
margin-left: 50%;
transform: translateX(-50%);
}
.center-it-y{
margin-top: 50%;
transform: translateY(-50%);
}
#!/bin/bash
set -e
# Deploy built docs to this branch
TARGET_BRANCH=master
if [ ! -d "$SOURCE_DIR" ]; then
echo "SOURCE_DIR ($SOURCE_DIR) does not exist, build the source directory before deploying"
exit 1
fi
#!/bin/bash
CACHEDIR="/var/cache/fedy/sublimetext"
if [[ "$(uname -m)" = "x86_64" ]]; then
ARCH="x64"
else
ARCH="x32"
fi