Skip to content

Instantly share code, notes, and snippets.

View pashamray's full-sized avatar
:octocat:

Pavlo Shamrai pashamray

:octocat:
View GitHub Profile
<?php
$arr = [
'android' => [
56 => '5.9',
34 => '2.2'
],
'windows' => [
23 => '7',
56 => '8'
xrandr --newmode "1680x1050" 146.2 1680 1784 1960 2240 1050 1053 1059 1089 +HSync +VSync
xrandr --addmode DP1 "1680x1050"
xrandr --output DP1 --mode "1680x1050"
<monitors version="1">
<configuration>
<clone>no</clone>
<output name="DP1">
<vendor>SAM</vendor>
<product>0x0255</product>
<serial>0x44503232</serial>
<width>1680</width>
<height>1050</height>
<rate>60</rate>
@pashamray
pashamray / monitors_225bw.xml
Created January 29, 2017 10:38
Samsung 225BW
<monitors version="1">
<configuration>
<clone>no</clone>
<output name="DP1">
</output>
<output name="HDMI1">
<vendor>SAM</vendor>
<product>0x0255</product>
<serial>0x44503232</serial>
<width>1680</width>
Screen 0: minimum 8 x 8, current 1680 x 1050, maximum 32767 x 32767
DP1 disconnected (normal left inverted right x axis y axis)
HDMI1 connected primary 1680x1050+0+0 (normal left inverted right x axis y axis) 474mm x 296mm
1680x1050 59.95*+
1280x1024 75.02 60.02
1280x960 60.00
1152x864 75.00
1024x768 75.08 70.07 60.00
832x624 74.55
800x600 72.19 75.00 60.32 56.25
Section "Monitor"
DisplaySize 474 296
HorizSync 30-81
Identifier "Monitor[0]"
ModelName "SAMSUNG SYNCMASTER 225BW"
Option "DPMS"
VendorName "SAM"
VertRefresh 56-75
Modeline "1680x1050" 146.2 1680 1784 1960 2240 1050 1053 1059 1089
EndSection
@pashamray
pashamray / integrate.bat
Created February 24, 2016 11:13
Integrate drivers to boot.wim file
dism /mount-wim /wimfile:boot.wim /index:2 /mountdir:mount
dism /image:mount /add-driver:drivers/usb3 /recurse
dism /unmount-wim /mountdir:mount /commit
@pashamray
pashamray / defaults_generic.h
Created February 13, 2016 18:48
defaults settings configuration file Part of Grbl
/*
defaults_generic.h - defaults settings configuration file
Part of Grbl
Copyright (c) 2012-2015 Sungeun K. Jeon
Grbl is free software: you can redistribute it and/or modify
it under the terms of the GNU General Public License as published by
the Free Software Foundation, either version 3 of the License, or
(at your option) any later version.
@pashamray
pashamray / ads.config
Created December 8, 2015 08:11
Ant: Build my AIR application for iOS and Android
<?xml version="1.0"?>
<flex-config xmlns="http://www.adobe.com/2006/flex-config">
<compiler>
<external-library-path append="true">
<path-element>anes/NativeAds.ane</path-element>
</external-library-path>
</compiler>
</flex-config>