Skip to content

Instantly share code, notes, and snippets.

View VEINHORN's full-sized avatar
:octocat:

Boris Korogvich VEINHORN

:octocat:
View GitHub Profile
# Path to your oh-my-fish.
set fish_path $HOME/.oh-my-fish
# Theme
set fish_theme bobthefish
# set fish_theme agnoster
# Which plugins would you like to load? (plugins can be found in ~/.oh-my-fish/plugins/*)
# Custom plugins may be added to ~/.oh-my-fish/custom/plugins/
# Example format: set fish_plugins autojump bundler
[15783] 17 Apr 00:41:37.299 # Warning: no config file specified, using the default config. In order to specify a config file use redis-server /path/to/redis.conf
[15783] 17 Apr 00:41:37.301 # You requested maxclients of 10000 requiring at least 10032 max file descriptors.
[15783] 17 Apr 00:41:37.301 # Redis can't set maximum open files to 10032 because of OS error: Operation not permitted.
[15783] 17 Apr 00:41:37.301 # Current maximum open files is 1024. maxclients has been reduced to 4064 to compensate for low ulimit. If you need higher maxclients increase 'ulimit -n'.
[15783] 17 Apr 00:41:37.301 # Creating Server TCP listening socket *:6379: bind: Address already in use
var Utf8 = {
// public method for url encoding
encode : function (string) {
string = string.replace(/rn/g,"n");
var utftext = "";
for (var n = 0; n < string.length; n++) {
var c = string.charCodeAt(n);
// UTF-8 encode / decode by Johan Sundstr?m
function encode_utf8( s )
{
return unescape( encodeURIComponent( s ) );
}
function decode_utf8( s )
{
return decodeURIComponent( escape( s ) );
}
bindReady(
function(){
var Win1251 =
{
0x0: 0x0,
0x1: 0x1,
0x2: 0x2,
0x3: 0x3,
0x4: 0x4,
@VEINHORN
VEINHORN / Test.java
Created April 21, 2014 14:02
Sample
package com;
import com.entities.*;
import com.utils.ListingAnalyzer;
import com.utils.TextLoader;
import com.utils.TextParser;
import java.util.ArrayList;
import java.util.List;
import java.util.regex.Matcher;
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
<head>
<title></title>
</head>
<body>
<div>
<h1>Игра престолов (Game of Thrones)</h1><br>
var rwhndlr;
function SayThanks(id, s, e) {
$.ajax({
type: "POST",
url: '/util.php',
data: 'module=1&code=clean&act=say_thanks&secure=' + s + '&torrent_id=' + id,
dataType: "json",
success: function (obj) {
if (!obj.error) {
http://regexr.com/38pvh
@VEINHORN
VEINHORN / gist:86aeeb34d9a78618cf7e
Created August 20, 2014 20:25
sdfksdjfiwpjregmlvfds
var userId;
var query = connection.query('INSERT INTO mydb2.User SET ?', account, function(err, result) {
console.log('Created account with id: ' + result.insertId);
userId = result.insertId;
});