Skip to content

Instantly share code, notes, and snippets.

View mariohuq's full-sized avatar

Dmitry Kondraev mariohuq

View GitHub Profile
@beakr
beakr / disable_intro_message.vim
Created March 29, 2012 16:05
How to disable Vim intro message.
set shortmess=I " Read :help shortmess for everything else.
@drewbkoch
drewbkoch / Installing Packages in Sublime Text 2
Created March 17, 2014 06:14
Installing Packages in Sublime Text 2
# Installing Packages in Sublime Text 2
Installing packages in Sublime Text 2 is a great way to take advantage of plethora of pre-built tools developed by the community, ranging from themes that customize the look of your editor to support for different language styles, such as for Jade.
In order to take advantage of all of the wonderful packages out there, the first step is to install Package Control. So let's do that now.
1. Open the console in Sublime by clicking *View* in the menu bar, then *Show Console*.
![Imgur](http://i.imgur.com/vbAG7k2.png?1)
@zmwangx
zmwangx / markdown-latex-etc.md
Last active April 26, 2024 12:37
An incomplete guide to Markdown, LaTeX, and more, initially written for Jiawen Li.

Markdown, LaTeX, etc.

Caution

  • (10/30/2016) I am not sure when and how this gist gained quite a few stars... But as stated in the v1.13 change log (from 06/16/2015): some content may be outdated, and I am not going to fix them. Moreover, having learned much myself, I do not necessarily agree with every point made in this document from 2.5 years ago. Therefore, please take views from this document with a grain of salt, and do further research as you see fit.

  • This document was initally written for a friend of mine, Jiawen Li, so it might reflect some personal tastes here and there. For instance, some discussions are geared towards Windows, though *nix is obviously superior. For another example, when I say "you seem to love Sublime Text a lot," I'm certainly not expecting most people to love Sublime (in fact I never used it for more than three minutes in a row).

  • This document is written in Markdown. The Markdown rendering engine on GitHub Gist is somewhat limited a

@yunga
yunga / SublimeText Pkgs.md
Last active March 5, 2023 09:52
A few notes to help me get started with Sublime Text.
@egel
egel / auto-remove-sublime-license-popup
Last active April 8, 2024 23:00
Auto-remove Sublime's license popup
#!/usr/bin/python
# -*- coding: utf-8 -*-
import sublime_plugin
import subprocess
from time import sleep
import sys
cl = lambda line: subprocess.Popen(line, shell=True, stdout=subprocess.PIPE).communicate()[0].strip()
log = lambda message: sys.stderr.write("Log: %s\n" % message)
@subfuzion
subfuzion / global-gitignore.md
Last active May 5, 2024 19:34
Global gitignore

There are certain files created by particular editors, IDEs, operating systems, etc., that do not belong in a repository. But adding system-specific files to the repo's .gitignore is considered a poor practice. This file should only exclude files and directories that are a part of the package that should not be versioned (such as the node_modules directory) as well as files that are generated (and regenerated) as artifacts of a build process.

All other files should be in your own global gitignore file:

  • Create a file called .gitignore in your home directory and add any filepath patterns you want to ignore.
  • Tell git where your global gitignore file is.

Note: The specific name and path you choose aren't important as long as you configure git to find it, as shown below. You could substitute .config/git/ignore for .gitignore in your home directory, if you prefer.

@demkinmaxim
demkinmaxim / calltouch-platformalp.js
Created August 15, 2016 14:42
Calltouch Platformalp.ru modified code
(function (w, d, e) {
var a = 'all', b = 'tou', src = b + 'c' + 'h';
src = 'm' + 'o' + 'd.c' + a + src;
var jsHost = "https://" + src, s = d.createElement(e), p = d.getElementsByTagName(e)[0];
s.async = 1;
s.src = jsHost + "." + "r" + "u/d_client.js?param;ref" + escape(d.referrer) + ";url" + escape(d.URL) + ";cook" + escape(d.cookie) + ";";
if (!w.jQuery) {
var jq = d.createElement(e);
jq.src = jsHost + "." + "r" + 'u/js/jquery-1.7.min.js';
jq.onload = function () {
anonymous
anonymous / LogDemo.java
Created September 28, 2016 18:21
package org.stepic.java.module4.logdemo;
import java.util.logging.*;
import java.util.Arrays;
/**
* Created by vitaly on 28/09/16.
*/
public class LogDemo {
private static final Logger LOGGER = Logger.getLogger(LogDemo.class.getName());
@vmosoti
vmosoti / install_predis.sh
Created January 29, 2018 12:49 — forked from palpalani/install_predis.sh
Installing Redis, Hiredis on Ubuntu 14.04
#!/bin/bash
echo "--------------------------------------------------------------------------------------------"
echo "Installing Predis on Ubuntu 16.04"
echo "Read more: https://github.com/nrk/predis"
echo "Author: Ralf Rottmann | @ralf | http://rottmann.net"
echo "--------------------------------------------------------------------------------------------"
PHP_CONF_DIR="/etc/php/7.0/apache2/conf.d"
echo "Checking prerequisites..."
echo "Git available?"
[ ! -s /usr/bin/git ] && sudo apt-get -q -y install git || echo "Git already installed."