Skip to content

Instantly share code, notes, and snippets.

View dariuszpaluch's full-sized avatar
😃

Dariusz Paluch dariuszpaluch

😃
View GitHub Profile
@dariuszpaluch
dariuszpaluch / apple-keyboard.md
Last active September 30, 2020 15:11
Configure apple keyboard with numepad on windows - generated by SkarpKeys Software

Configure apple keyboard on windows by SharHeys software.

Configuration:

  • F13 -> Special: PrtSc
  • F14 -> Special: Scroll Lock
  • F15 -> Special: Power
  • F16 -> Media: Play/Pause
  • F17 -> Media: Mute
  • F18 -> Media: Volume Down
  • F19 -> Media: Volume Up
@dariuszpaluch
dariuszpaluch / git-remove-merged-branches.md
Last active May 29, 2019 09:13
Remove merged branches
  1. Open Git Bash
  2. Checkout to develop
  3. git branch --merged | egrep -v "(^\*|master|develop)" | xargs git branch -d
@dariuszpaluch
dariuszpaluch / History|-10b20850|entries.json
Last active April 19, 2023 08:16
Visual Studio Code Settings Sync Gist
{"version":1,"resource":"file:///Users/dariuszpaluch/Programming/recruitment/frontend/js-ts-coding-task/typescript/starter/src/styles.css","entries":[{"id":"Smzx.css","timestamp":1669372140601},{"id":"c8Cn.css","timestamp":1669372310465},{"id":"mGEL.css","timestamp":1669372377408}]}
@dariuszpaluch
dariuszpaluch / fix_error_0x8024401c_win10.md
Last active October 9, 2018 04:53
Fix Error 0x8024401c in WIndows 10
  1. Create file with extension .reg and open with Notepad

  2. Copy:

Windows Registry Editor Version 5.00

[HKEY_LOCAL_MACHINE\SOFTWARE\Policies\Microsoft\Windows\WindowsUpdate]

[HKEY_LOCAL_MACHINE\SOFTWARE\Policies\Microsoft\Windows\WindowsUpdate\AU]
"NoAutoUpdate"=dword:00000000
@dariuszpaluch
dariuszpaluch / gist:9566ecb3187baee64ce2e7553285e816
Created September 30, 2018 13:25
Overwrite ant design theme in Gatsby project
npm install gatsby-plugin-less babel-plugin-import
//Example gastby-config.js:
module.exports = {
plugins: [
{
resolve: `gatsby-plugin-less`,
options: {
javascriptEnabled: true,
@dariuszpaluch
dariuszpaluch / host-react-app-on-apache-server.md
Created August 5, 2018 13:03 — forked from ywwwtseng/host-react-app-on-apache-server.md
Host react application on Apache server

Host react application on Apache server

Step 1 : Create your app

$ npm install -g create-react-app 
$ create-react-app my-app

Step 2 : Build it for production

@dariuszpaluch
dariuszpaluch / teamcity-pm2-deploy-node-app.md
Last active November 22, 2019 19:03
Teamcity - deploy node app with pm2

Configuration Parameters

Name Value
DEPLOY_PATH /var/www/node_aps/%PM2_NAME%
PM2_NAME test123

Build Steps

  • STEP_1 - pm2 delete process
@dariuszpaluch
dariuszpaluch / uri.js
Created July 2, 2018 10:25 — forked from jlong/uri.js
URI Parsing with Javascript
var parser = document.createElement('a');
parser.href = "http://example.com:3000/pathname/?search=test#hash";
parser.protocol; // => "http:"
parser.hostname; // => "example.com"
parser.port; // => "3000"
parser.pathname; // => "/pathname/"
parser.search; // => "?search=test"
parser.hash; // => "#hash"
parser.host; // => "example.com:3000"