Skip to content

Instantly share code, notes, and snippets.

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

Suraj Mandal surajmandalcell

🏃‍♂️
Grinding
View GitHub Profile
@wilsonpage
wilsonpage / reqUrl.js
Created November 25, 2011 14:38
A function I made that wraps the node http.request function to make it a little more friendly. In my case I am using it for API route testing.
// module dependencies
var http = require('http'),
url = require('url');
/**
* UrlReq - Wraps the http.request function making it nice for unit testing APIs.
*
* @param {string} reqUrl The required url in any form
* @param {object} options An options object (this is optional)
@rxaviers
rxaviers / gist:7360908
Last active May 16, 2026 18:51
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:
@sayak-sarkar
sayak-sarkar / sublime-text-3.sh
Last active May 3, 2026 16:04
Gist to install Sublime Text 3 on RHEL 6 +
#!/bin/sh
SHORTCUT="[Desktop Entry]
Name=Sublime Text 3
Comment=Edit text files
Exec=/opt/sublime_text_3/sublime_text
Icon=/opt/sublime_text_3/Icon/128x128/sublime-text.png
Terminal=false
Type=Application
Encoding=UTF-8
Categories=Utility;TextEditor;"
@tkon99
tkon99 / name.js
Last active October 31, 2025 17:39
Random Name Generator for Javascript
/*
(c) by Thomas Konings
Random Name Generator for Javascript
*/
function capFirst(string) {
return string.charAt(0).toUpperCase() + string.slice(1);
}
function getRandomInt(min, max) {
@zeroseis
zeroseis / disable-auto-android-file-transfer.md
Created September 14, 2015 17:28
Disable auto start for Android File Transfer
  • Close Android File Transfer
  • Open Activity Monitor and kill “Android File Transfer Agent”
  • Go to where you installed “Android File Transfer.app” (I have it under /Applications)
  • Ctrl+click –> “Show package contents”
  • Go to Contents/Resources
  • Rename “Android File Transfer Agent” to e.g. “Android File Transfer Agent_DISABLED”
  • Then go to “/Users/username/Library/Application Support/Google/Android File Transfer” and again rename the Agent app.
@niksumeiko
niksumeiko / disable-html-form-input-autocomplete-autofill.md
Last active April 26, 2026 14:47
Disable HTML form input autocomplete and autofill

Disable HTML Form Input Autocomplete and Autofill

  1. Add autocomplete="off" onto <form> element;
  2. Add hidden <input> with autocomplete="false" as a first children element of the form.
<form autocomplete="off" method="post" action="">
    <input autocomplete="false" name="hidden" type="text" style="display:none;">
    ...
@tomysmile
tomysmile / mac-setup-redis.md
Last active February 21, 2026 14:33
Brew install Redis on Mac

type below:

brew update
brew install redis

To have launchd start redis now and restart at login:

brew services start redis
@surajmandalcell
surajmandalcell / twitter-unfollow.js
Created January 1, 2017 11:51
A simple twitter jquery unfollow script that helps you to unfollow everyone in your "following" page. To use just navigate to "https://twitter.com/following" and scroll to the bottom of the page then paste the script in the developer console.
$('.user-actions-follow-button').click()
@mustafaturan
mustafaturan / rename.sh
Created July 8, 2017 14:18
Rename all js files into jsx
for x in *.js; do mv "$x" "${x%.js}.jsx"; done
@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/window-list@cinnamon.org/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;