Skip to content

Instantly share code, notes, and snippets.

View shenoyranjith's full-sized avatar
🚀
Learning new things!

Ranjith R Shenoy shenoyranjith

🚀
Learning new things!
View GitHub Profile
@Mau5Machine
Mau5Machine / docker-compose.yml
Last active April 9, 2024 16:00
Traefik Configuration and Setup
version: "3.3"
services:
################################################
#### Traefik Proxy Setup #####
###############################################
traefik:
image: traefik:v2.0
restart: always
@xameeramir
xameeramir / default nginx configuration file
Last active April 15, 2024 09:51
The default nginx configuration file inside /etc/nginx/sites-available/default
# Author: Zameer Ansari
# You should look at the following URL's in order to grasp a solid understanding
# of Nginx configuration files in order to fully unleash the power of Nginx.
# http://wiki.nginx.org/Pitfalls
# http://wiki.nginx.org/QuickStart
# http://wiki.nginx.org/Configuration
#
# Generally, you will want to move this file somewhere, and start with a clean
# file but keep this around for reference. Or just disable in sites-enabled.
#
@matthewjberger
matthewjberger / notes.md
Last active March 11, 2024 10:21
How to make an electron app using Create-React-App and Electron with Electron-Builder.
@Sarapulov
Sarapulov / preset_nested_dropdown.js
Created January 2, 2017 15:37
Preset given nested dropdown on Zendesk Help Center with a given value
/**
* Preset given nested dropdown on Zendesk Help Center with a given value
*
* @param {String} field_id (example: 'request_custom_fields_31265065')
* @param {String} field_value (example: 'complaint_type_b')
*/
function presetNestedDrodown(field_id,field_value){
if (!field_id || field_value === undefined) return;
var $field = $('.'+field_id);
if ($field && $field.length > 0 && $field.hasClass('string')) {
@krambertech
krambertech / Component.jsx
Created July 2, 2016 10:44
ReactJS: Input fire onChange when user stopped typing (or pressed Enter key)
import React, { Component } from 'react';
import TextField from 'components/base/TextField';
const WAIT_INTERVAL = 1000;
const ENTER_KEY = 13;
export default class TextSearch extends Component {
constructor(props) {
super();
@skipjac
skipjac / gist:8783de387d23bf171645
Created April 3, 2015 15:46
Remove Ticket Form option from dropdown in Zendesk
//remove the options from the select
$('#request_issue_type_select option[value="43517"]').remove();
//remove the option from the nesty-input after it's been created.
$('div').one('DOMNodeInserted', function(e){
$('.nesty-panel').one('DOMNodeInserted', function(e){
$(this).children('ul').children().remove('#43517');
});
});