Skip to content

Instantly share code, notes, and snippets.

<?xml version='1.0'?>
<!DOCTYPE fontconfig SYSTEM '/etc/fonts/fonts.dtd'>
<fontconfig>
<match target="font">
<edit mode="assign" name="autohint">
<bool>false</bool>
</edit>
<!-- Subpixeling and lcdfilter-->
<edit mode="assign" name="rgba">
<const>rgb</const>
@misraX
misraX / App.js
Last active November 11, 2018 23:43
React New Context API, Passing redux store from Provider to children of Consumers.
/*
* By: misrax
*/
import React, { Component } from 'react'
import {createStore, combineReducers} from 'redux';
import { Provider } from 'react-redux'
/*
* React new Context API, creating a new Context with default value.
*/
@misraX
misraX / border-intersection.markdown
Created April 8, 2018 11:14
border intersection
Section "InputClass"
Identifier "touchpad"
Driver "synaptics"
MatchIsTouchpad "on"
Option "TapButton1" "1"
Option "TapButton2" "3"
Option "TapButton3" "2"
Option "VertEdgeScroll" "on"
Option "VertTwoFingerScroll" "on"
Option "HorizEdgeScroll" "on"
// setting.json
{
"window.zoomLevel": 1,
"workbench.colorTheme": "quietLight-plus-theme",
"workbench.iconTheme": "material-icon-theme",
"emmet.syntaxProfiles": {
"javascript": "jsx",
"xml": {
"attr_quotes": "single"
}
@misraX
misraX / pg_change_db_owner.sh
Created January 24, 2018 19:35 — forked from jirutka/pg_change_db_owner.sh
Some convenient scripts to manage ownerships and privileges in PostgreSQL.
#!/bin/sh
#
# The MIT License
#
# Copyright 2014-2017 Jakub Jirutka <jakub@jirutka.cz>.
#
# Permission is hereby granted, free of charge, to any person obtaining a copy
# of this software and associated documentation files (the "Software"), to deal
# in the Software without restriction, including without limitation the rights
# to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
@misraX
misraX / macOS Installing Vim From Source.md
Last active April 2, 2020 01:19
macOS Installing Vim From Source With Python3, Python2 and Ruby Support.

README file guides to install latest vim with python2, python3 and ruby using official source installers:

These methods have been tested in macOS sierra 10.12.6 and will likely not fail in most macOS new releases.

Tested with:

  • xcode-select version 2347.
  • Python 3.6.2.
  • Python 2.7.14.
  • VIM - Vi IMproved 8.0.
@misraX
misraX / backuptonts.sh
Last active September 26, 2017 17:06
Backing up && syncing files from Linux Filesystem ex.(ext4) to Windows Filesystem (ntfs)
#!/bin/bash
username=name
PATH_TO_EXCLUDED_FILE=/home/$username/exlude.txt
BACKUP_PATH=/mnt/VOLUME/FOLDER
pacman -Qqe > $HOME/pkglist.txt
rsync -rltDvu --modify-window=1 --progress --delete --delete-excluded --exclude-from=$PATH_TO_EXCLUDED_FILE /home /$BACKUP_PATH
# Restoring pacman
#/bin/bash
# Created By: misraX
# Github: github.com/misrax
# License: MIT
# For the purpose of testing and individual usage
# The purpose of using it is to solve the dependancies problem and the manual installion of every needed package.
# The script consider that you are already in the desired build directory just feed the array with the desired package or packages
# And let it automat the automat :D,
# NOTICE: Some packages may fail if it depends on another package.
@misraX
misraX / channels.conf
Last active July 31, 2017 22:27
VDR channels.conf for Hotbird 13E0 July-2017
I24 News English;RRsat:10815:hC56M2O0S0:S13E:27500:2001=27:3001=eng@4:0:0:17301:318:11500:0
I24 News Arabic;RRsat:10815:hC56M2O0S0:S13E:27500:2002=27:3002=ara@4:0:0:17302:318:11500:0
NetViet;MX1:10815:hC56M2O0S0:S13E:27500:2006=2:3006=und@4:0:0:17306:318:11500:0
Vozrojdenie.tv;RRsat:10815:hC56M2O0S0:S13E:27500:2008=2:3008@4:0:0:17308:318:11500:0
Ukraine 24;RRsat:10815:hC56M2O0S0:S13E:27500:2009=2:3009@4:0:0:17309:318:11500:0
BVN;RRsat:10815:hC56M2O0S0:S13E:27500:2011=2:3011=dut@4:0:0:17311:318:11500:0
CNL;RRsat:10815:hC56M2O0S0:S13E:27500:2012=2:3012@4:0:0:17312:318:11500:0
Fashion;RRsat:10815:hC56M2O0S0:S13E:27500:2015=2:3015@4:0:0:17315:318:11500:0
Music Box Russia;RRsat:10815:hC56M2O0S0:S13E:27500:2016=2:3016@4:0:0:17316:318:11500:0
TBN Russia;RR Media:10815:hC56M2O0S0:S13E:27500:2017=2:3017@4:0:0:17317:318:11500:0