Skip to content

Instantly share code, notes, and snippets.

View galaydaroman's full-sized avatar

galaydaroman galaydaroman

View GitHub Profile
@galaydaroman
galaydaroman / ievms.bat
Last active August 29, 2015 13:57
Run IE9 on windows 7
REM VM name InternetExplorer version
set vm=IE9 - Win7
set archive=IE9_Win7
REM Create working directory
set work_dir=%HOME%\.ievms
md %work_dir%
REM Download to working directory next images (archives need to be unpacked):
REM 1. http://virtualization.modern.ie/vhd/IEKitV1_Final/VirtualBox/OSX/%archive%.zip
--langdef=coffee
--langmap=coffee:.coffee
--regex-coffee=/(^|=[ \t])*class ([A-Za-z_][A-Za-z0-9_]+\.)*([A-Za-z_][A-Za-z0-9_]+)( extends ([A-Za-z][A-Za-z0-9_.]*)+)?$/\3/c,class/
--regex-coffee=/^[ \t]*(module\.)?(exports\.)?@?(([A-Za-z][A-Za-z0-9_.]*)+):.*[-=]>.*$/\3/m,method/
--regex-coffee=/^[ \t]*(module\.)?(exports\.)?(([A-Za-z][A-Za-z0-9_.]*)+)[ \t]*=.*[-=]>.*$/\3/f,function/
--regex-coffee=/^[ \t]*(([A-Za-z][A-Za-z0-9_.]*)+)[ \t]*=[^->\n]*$/\1/v,variable/
--regex-coffee=/^[ \t]*@(([A-Za-z][A-Za-z0-9_.]*)+)[ \t]*=[^->\n]*$/\1/f,field/
--regex-coffee=/^[ \t]*@(([A-Za-z][A-Za-z0-9_.]*)+):[^->\n]*$/\1/f,static field/
--regex-coffee=/^[ \t]*(([A-Za-z][A-Za-z0-9_.]*)+):[^->\n]*$/\1/f,field/
--regex-coffee=/((constructor|initialize):[ \t]*\()@(([A-Za-z][A-Za-z0-9_.]*)+)([ \t]*=[ \t]*[^,)]+)?/\3/f,field/
@galaydaroman
galaydaroman / skype-advert-fix.markdown
Last active April 27, 2018 12:05
Remove advert on skype (7.0 and greater)

2 Steps to remove adverting from Skype

1 STEP - Change Internet Options

Add advert's hosts into a block list on IE security tab

  • Open IE Internet Options -> Security tab
  • Choose Restricted sites and click Sites button
  • Add following urls:
@galaydaroman
galaydaroman / circleci.css
Last active February 24, 2016 09:29
My Stylish
/*
.inner .main-body { padding: 0 15px 10px; }
body { overflow: hidden; }
.inner .build-output .detail { padding: 0; }
*/
.detail-wrapper pre.output {
font-size: 11px !important;
}
@galaydaroman
galaydaroman / smplayer.rb
Last active February 16, 2016 16:06
SMPlayer control as global hotkeys (Windows)
require 'dl'
require 'dl/import'
require './vkeys'
module User32
extend DL::Importer
dlload 'User32.dll'
extern 'short GetAsyncKeyState(int)'
end
/**
* matter-0.8.0.min.js 0.8.0-alpha 2014-05-04
* http://brm.io/matter-js/
* License: MIT
*/
!function(){var a={},b={};!function(){var a=1;b.create=function(a){var b={id:o.nextId(),type:"body",label:"Body",angle:0,vertices:z.fromPath("L 0 0 L 40 0 L 40 40 L 0 40"),position:{x:0,y:0},force:{x:0,y:0},torque:0,positionImpulse:{x:0,y:0},constraintImpulse:{x:0,y:0,angle:0},speed:0,angularSpeed:0,velocity:{x:0,y:0},angularVelocity:0,isStatic:!1,isSleeping:!1,motion:0,sleepThreshold:60,density:.001,restitution:0,friction:.1,frictionAir:.01,groupId:0,slop:.05,timeScale:1,render:{visible:!0,sprite:{xScale:1,yScale:1},lineWidth:1.5}},d=o.extend(b,a);return c(d),d},b.nextGroupId=function(){return a++};var c=function(a){a.axes=a.axes||w.fromVertices(a.vertices),a.area=z.area(a.vertices),a.bounds=x.create(a.vertices),a.mass=a.mass||a.density*a.area,a.inverseMass=1/a.mass,a.inertia=a.inertia||z.inertia(a.vertices,a.mass),a.inverseInertia=1/a.inertia,a.positionPrev=a.positionPrev||{x:a.position.x,y:a.position.y},a.anglePr
@galaydaroman
galaydaroman / StereoMixer_Conexant-audio_enable.markdown
Created September 11, 2015 11:06
Enable stereo mixer for Conexant Audio drivers

Solution

Ensure you have the Conexant SmartAudio HD driver installed. You should see it under Sound, Video and Game Controllers in Device Manager. With the Conexant driver already installed and working the key is finding the exact location of the driver file. It might vary from one computer to another and also be called something else. Mine was called chdrt.inf and it was located in:

C:\Windows\System32\DriverStore\FileRepository\chdrt.inf_amd64_neutral_fa34defac299c440

If you are not sure where your .inf file is located you could do a windows search for text in files of the string: EpSettings\StereoMixEnable. It will most likely be a file with the extension .inf and be located in a sub folder of the System32 folder.

[
{
"class": "icon_file_type",
"content_margin": [0,0]
},
//
// BOTTOM PANEL ICONS - GROUP 1
//
@galaydaroman
galaydaroman / matter-demo.html
Last active January 9, 2016 20:28
matter-demo.js
<html>
<!-- <head> -->
<!-- <script src="http://wot-stat.com.ua/matter-tools-dev.js" type="text/javascript"></script> -->
<!-- <link rel="stylesheet" type="text/css" href="http://wot-stat.com.ua/matter-tools.css"> -->
<!-- </head> -->
<body>
<script src="http://cdnjs.cloudflare.com/ajax/libs/jquery/2.0.1/jquery.min.js" type="text/javascript"></script>
<script src="https://github.com/liabru/matter-js/releases/download/0.8.0-alpha/matter-0.8.0.js" type="text/javascript"></script>
<style type="text/css">
body {
@galaydaroman
galaydaroman / youtube_adv.user.js
Last active January 29, 2016 21:20
Userscripts
// ==UserScript==
// @name Remove YouTube advertising
// @version 0.1
// @description try to take over the world!
// @author You
// @include https://*.youtube.com/*
// @include https://youtube.com/*
// @include http://*.youtube.com/*
// @include http://youtube.com/*
// @grant unsafeWindow