Skip to content

Instantly share code, notes, and snippets.

@arijusg
arijusg / ..README.md
Last active June 2, 2017 10:17
Beyond Compare 4 as difftool on Windows 10 bash

git difftool Beyond Compare on Windows from bash

@arijusg
arijusg / README.MD
Last active June 2, 2017 12:49
Run Windows gitk via bash

Windows 10 bash gitk routing

mkdir ~/bin && \
touch ~/bin/gitk && \
chmod +x ~/bin/gitk && \
echo '#!/bin/bash' > ~/bin/gitk && \
echo "/mnt/c/'Program Files'/Git/cmd/gitk.exe" >> ~/bin/gitk && \
echo 'export PATH=$PATH":$HOME/bin"' >> ~/.bashrc && . ~/.bashrc
@arijusg
arijusg / PerformanceON.bat
Created June 28, 2017 21:41 — forked from williamfields/PerformanceON.bat
Pre-Performance Script
echo "TURN OFF WINDOWS DEFENDER FROM CONTROL PANEL, THEN HIT SPACE."
pause
echo "TURN ON AIRPLANE MODE, THEN HIT SPACE."
pause
echo "TURN OFF NIGHT LIGHT FOR VIDEO WORK, THEN HIT SPACE."
@arijusg
arijusg / keybindings.json
Created July 3, 2017 11:44
VS Code custom key bindings
{
"key": "ctrl+`",
"command": "workbench.action.terminal.focus",
"when": "!terminalFocus"
},
{
"key": "ctrl+`",
"command": "workbench.action.focusActiveEditorGroup",
"when": "terminalFocus"
}
# Run docker without sudo
sudo groupadd docker
sudo usermod -aG docker $USER
# Restart pc
docker run hello-world
# Set custom docker bridge subnet
sudo systemctl edit docker
# Put his in there
[Service]
@arijusg
arijusg / launch.json
Created July 26, 2017 07:40
Typescript mocha test debug setup
{
"type": "node",
"request": "launch",
"name": "Mocha Tests 2",
"program": "${workspaceRoot}/node_modules/mocha/bin/_mocha",
"protocol": "inspector",
"args": [
"-u",
"tdd",
"--no-timeouts",
@arijusg
arijusg / fix.md
Created October 27, 2017 19:50
Slow Chrome on Ubuntu fix

#Ubuntu Chrome slowness fix Create new file:

sudo nano /usr/share/X11/xorg.conf.d/10-intel-chrome.conf

with content:

Section "Device"
   Identifier  "Intel Graphics"
 Driver "intel"
@arijusg
arijusg / vpn.md
Created February 14, 2018 18:30 — forked from joepie91/vpn.md
Don't use VPN services.

Don't use VPN services.

No, seriously, don't. You're probably reading this because you've asked what VPN service to use, and this is the answer.

Note: The content in this post does not apply to using VPN for their intended purpose; that is, as a virtual private (internal) network. It only applies to using it as a glorified proxy, which is what every third-party "VPN provider" does.

(A Russian translation of this article can be found here, contributed by Timur Demin.)

Why not?

@arijusg
arijusg / .bashrc
Created March 9, 2018 18:59
Nice bash
export PS1="\h\$(smiley) \`parse_git_branch\` \e[30;1m\w\e[0m\n\$ "
@arijusg
arijusg / gist:846c0648b0b69e2d608305f63f9df464
Created March 21, 2018 17:27
Softether VPN service file
#!/bin/sh
# chkconfig: 2345 99 01
# description: SoftEther VPN Server
### BEGIN INIT INFO
# Provides: my-service-name
# Required-Start: $all
# Required-Stop:
# Default-Start: 2 3 4 5