Skip to content

Instantly share code, notes, and snippets.

View Cl3MM's full-sized avatar

cl3mm Cl3MM

View GitHub Profile
@Cl3MM
Cl3MM / NLog.config
Last active March 3, 2017 10:10
NLog.config: redirect Hangfire logs
<?xml version="1.0" encoding="utf-8" ?>
<nlog xmlns="http://www.nlog-project.org/schemas/NLog.xsd"
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xsi:schemaLocation="http://www.nlog-project.org/schemas/NLog.xsd NLog.xsd"
autoReload="true"
throwExceptions="false"
internalLogLevel="Off" internalLogFile="c:\temp\nlog-internal.log">
<targets>
@Cl3MM
Cl3MM / .vimrc
Created December 30, 2016 10:51
set nocompatible " be iMproved, required
filetype off " required
" set the runtime path to include Vundle and initialize
set rtp+=~/.vim/bundle/Vundle.vim
call vundle#begin()
" alternatively, pass a path where Vundle should install plugins
"
" let Vundle manage Vundle, required
Plugin 'tpope/vim-fugitive'
@Cl3MM
Cl3MM / app.js
Created December 13, 2016 16:54
2 girls one cup
console.clear()
$(function() {
var toggle = 1;
$('#btn-toggle').on('click', function() {
console.log('TOGGLE')
toggle += 1;
var right = 35 * (toggle % 2);
console.log('------- ' + right + ' -------')
var lstyle = ['width: calc(' + (100 - right) + '% - ' + (right === 0 ? '2' : '1.3') + 'em);']
npm WARN lifecycle nodegit@0.13.0~prepublish: cannot run in wd %s %s (wd=%s) nodegit@0.13.0 node lifecycleScripts/prepareForBuild.js && npm run babel /data/gitnode
> nodegit@0.13.0 install /data/node_modules/nodegit
> node lifecycleScripts/install
[nodegit] Local install, no fetching allowed.
[nodegit] Regenerating and configuring code
nodegit@0.13.0 /data/node_modules/nodegit
+-- babel-cli@6.8.0
| +-- babel-core@6.8.0
@Cl3MM
Cl3MM / app.js
Created March 25, 2016 18:08
Node recursive file lister
// npm i walk --save
var walk = require('walk'),
fs = require('fs'),
path = require('path'),
util = require('util');
// We will list the content of the upper directory from where we are
var ROOT_PATH = path.normalize(path.join(__dirname, '../'));
Message:
D:\....\Travelo\sass\responsive.css
Please check the validity of the block starting from line #282
280 | float: none !important; }
281 | .image-carousel.style3 .flex-direction-nav li a.flex-prev {
282*| left: 10px; }
283 | .image-carousel.style3 .flex-direction-nav li a.flex-next {
284 | right: 10px; }
myLatlng = new google.maps.LatLng(lat, lng);
mapOptions = {
zoom: 16,
mapTypeId: google.maps.MapTypeId.HYBRID,
center: myLatlng
};
map = new google.maps.Map(document.getElementById("MapContainer"), mapOptions);
marker = new google.maps.Marker({
position: myLatlng,
map: map
@Cl3MM
Cl3MM / bson_with_inet_dot_h
Created November 25, 2013 12:12
Error with Arpa/inet.h
$ gem install bson -v '2.0.0.rc3' --platform=ruby --no-rdoc --no-ri
Temporarily enhancing PATH to include DevKit...
Building native extensions. This could take a while...
ERROR: Error installing bson:
ERROR: Failed to build gem native extension.
c:/Ruby200/bin/ruby.exe extconf.rb
creating Makefile
make "DESTDIR="
@Cl3MM
Cl3MM / pastie.vim
Created January 27, 2013 16:46
Vim support file to help with paste mappings and menus
" Vim support file to help with paste mappings and menus
" Maintainer: Bram Moolenaar <Bram@vim.org>
" Last Change: 2006 Jun 23
" Define the string to use for items that are present both in Edit, Popup and
" Toolbar menu. Also used in mswin.vim and macmap.vim.
" Pasting blockwise and linewise selections is not possible in Insert and
" Visual mode without the +virtualedit feature. They are pasted as if they
" were characterwise instead. Add to that some tricks to leave the cursor in