Skip to content

Instantly share code, notes, and snippets.

View huenisys's full-sized avatar
🎯
Focusing

Paul Dominik huenisys

🎯
Focusing
View GitHub Profile
@huenisys
huenisys / shorten.js
Last active April 22, 2020 15:00
Vanill JS shortened
const _$ = el => document.querySelector(el);
const _$$ = el => document.querySelectorAll(el);
const _on = (eventName, el, eventHandler) => el.addEventListener(eventName, eventHandler, false);
@huenisys
huenisys / laravel-on-windows-steps.md
Last active March 10, 2020 03:18
Working with Laravel on Windows

If you're a newcomer and needs to get started fast, with as little knowledge as possible, follow these steps.

  • Setup .editorconfig
  • Setup .gitignore_global
    /.idea
    /.vscode
    /.vagrant
    /auth.json
    
@huenisys
huenisys / ubuntu-upc.md
Last active September 22, 2019 13:13
debian-based workstation setup
@huenisys
huenisys / .bashrc-partial
Last active July 27, 2019 23:29
ubuntu bash prompt with git branch
if [ "$color_prompt" = yes ]; then
# orig: PS1='${debian_chroot:+($debian_chroot)}\[\033[01;32m\]\u@\h\[\033[00m\]:\[\033[01;34m\]\w\[\033[00m\]\$ '
PS1='${debian_chroot:+($debian_chroot)}\[\033[01;33m\]\h\[\033[00m\]::\[\033[91m\]\u\[\033[00m\]:\[\033[01;34m\]\w\[\033[35m\]$(__git_ps1)\[\033[00m\]\$ '
else
# orig: PS1='${debian_chroot:+($debian_chroot)}\u@\h:\w\$ '
PS1='${debian_chroot:+($debian_chroot)}\u@\h:\w$(__git_ps1)\$ '
fi
{
"workbench.iconTheme": "vscode-icons",
"terminal.integrated.shell.windows": "E:\\Program Files\\Git\\bin\\bash.exe",
"terminal.integrated.shellArgs.windows": [
"--login", "-i"
],
"php.validate.executablePath": "E:\\xampp\\php\\php.exe",
"editor.fontSize": 12,
"git.autofetch": true,
"vim.easymotion": true,
@huenisys
huenisys / temporary-fix-mouse-double-clicking.md
Created February 21, 2019 19:07
temporary-fix-mouse-double-clicking

ideal fix

  • replace the switch

temporary fix

  • using software, stop double clicks that happens in 100ms
  • use autohotkey for it using code below
  • this will not fix issues wherein you are dragging or highlighting something, then suddenly, mouse spring doubleclicks.
@huenisys
huenisys / gist:39f601d0fa36aa803c04255b2fa25537
Last active January 26, 2019 05:28
Transfer from Namecheap to Route53
- switch DNS manager from namecheap to cloudflare
- unlock domain, this may take time, so try contacting support if there's option to make the process faster
- turn off privacy
- check whois if contact info is appropriate
@huenisys
huenisys / Windows to Ubuntu migration.md
Last active January 26, 2019 00:51
Migrating workstation to Ubuntu Desktop

Noting all the subtle things I had to tinker with.

  • mouse sensitivity. I prefer a slow speed mouse.
  • my audio was playing through another headset, I had to switch to headphones
  • install Chrome as Firefox was the default
  • tried app: Disks
  • signup with Ubuntu One
  • installed Spotify
  • installed Viber
  • installed Google Chrome
@huenisys
huenisys / gist:e41d116db00ba86ba88bfcd1e634019e
Last active January 21, 2019 02:51
Visual Studio Code setup
- use git bash as terminal
-
```
{
"workbench.iconTheme": "vscode-icons",
"terminal.integrated.shell.windows": "E:\\Program Files\\Git\\bin\\bash.exe"
}
```
- set php path to use xampp, add php to env
@huenisys
huenisys / Enable symbolic links for Git on Windows 10.md
Last active August 26, 2024 16:57
Enable symbolic links for Git on Windows 10