Skip to content

Instantly share code, notes, and snippets.

View akrisiun's full-sized avatar

Andrius K akrisiun

View GitHub Profile
using System;
using System.Collections.Generic;
using System.Linq;
using System.Linq.Expressions;
using Remotion.Linq.Clauses;
using Remotion.Linq.Clauses.ExpressionTreeVisitors;
using Remotion.Linq.Parsing.Structure;
namespace Remotion.Linq.Sample
{
/**
* Vertically center Bootstrap 3 modals so they aren't always stuck at the top
*/
$(function() {
function reposition() {
var modal = $(this),
dialog = modal.find('.modal-dialog');
@akrisiun
akrisiun / Export each as SVG.js
Created March 4, 2016 20:11 — forked from vieron/Export each as SVG.js
Export each as SVG. Modified some lines from the original by Aaron Beall (http://fireworks.abeall.com/extensions/commands/Export/Export%20SVG.jsf) to export each selected object as a separate SVG file.
// Fireworks JavaScript Command
// Exports current document state as SVG graphics format
// Install by copying to Fireworks/Configuration/Commands/
// Run via the Commands menu in Fireworks
// Aaron Beall 2010-2011
// Version
var VERSION = "0.6.1";
// Params
@akrisiun
akrisiun / bacula-fd.rb
Created April 26, 2016 22:30 — forked from derFunk/bacula-fd.rb
OSX brew formula for Bacula 5.2.6 to be compatible with current Debian Wheezy Bacula package.
require 'formula'
class BaculaFd < Formula
homepage 'http://www.bacula.org/'
# you may exchange this download url to match the correct bacula source code, if Debian once updates it's own package
url 'http://downloads.sourceforge.net/project/bacula/z-older-releases/5.2.6/bacula-5.2.6.tar.gz'
def install
system "./configure", "--prefix=#{prefix}",
"--sbindir=#{bin}",
"--with-working-dir=#{var}/lib/bacula",
@akrisiun
akrisiun / mac-libgdiplus.sh
Last active May 29, 2016 10:32 — forked from mtolly/mac-libgdiplus.sh
How to build and install the Mono libgdiplus.dll on a Mac with Homebrew
#!/bin/bash
# First install XQuartz, then...
locate libgdiplus.dylib
brew install freetype fontconfig libpng pgk-config
pkg-config --cflags freetype2
pkg-config --cflags freetype2
ln -s /opt/X11/include/X11 /usr/local/include/X11
using System;
using OpenQA.Selenium;
using OpenQA.Selenium.Edge;
using OpenQA.Selenium.Remote;
namespace EdgeDriverTests
{
public class Program
{
/*
@akrisiun
akrisiun / register a myget feed.markdown
Created October 11, 2016 14:38 — forked from xavierdecoster/register a myget feed.markdown
Store MyGet credentials in your roaming user profile NuGet.config

Execute the following script using your MyGet [feedUrl] and MyGet [username] , [password] and [apikey]. Run this from a commandline where you have access to nuget.exe (or set the path to your nuget.exe in a system environment variable).

Store credentials in machine-level nuget.config (non-transferable)

nuget setapikey [apikey] -source [feedUrl]
nuget sources add|update -Name [name] -source [feedUrl] -User [username] -pass [password]
@akrisiun
akrisiun / mc-osx-keys.md
Last active March 18, 2020 17:11 — forked from sgergely/gist:3793166
Midnight Commander Keyboard Shortcuts for Mac OSX

mc for osx bash keys

----- Esc -----
Quick change directory: Esc + c
Quick change directory history: Esc + c and then Esc + h
Quick change directory previous entry: Esc + c and then Esc + p
Command line history: Esc + h
Command line previous command: Esc + p
View change: Esc + t (each time you do this shortcut a new directory view will appear)
Print current working directory in command line: Esc + a
@akrisiun
akrisiun / Install_tmux
Created December 30, 2016 17:01 — forked from simme/Install_tmux
Install and configure tmux on Mac OS X
# First install tmux
brew install tmux
# For mouse support (for switching panes and windows)
# Only needed if you are using Terminal.app (iTerm has mouse support)
Install http://www.culater.net/software/SIMBL/SIMBL.php
Then install https://bitheap.org/mouseterm/
# More on mouse support http://floriancrouzat.net/2010/07/run-tmux-with-mouse-support-in-mac-os-x-terminal-app/
@akrisiun
akrisiun / psremoting.md
Last active March 18, 2021 11:10 — forked from HarmJ0y/psremoting.ps1
Enable PSRemoting port 5985

#Run winrm quickconfig defaults echo Y | winrm quickconfig

Enter-PSSession -ComputerName 192.168.2.229 –Credential

netstat -nb | findstr /R ":80"

Remote PS port 5985