Skip to content

Instantly share code, notes, and snippets.

@arijusg
arijusg / run.sh
Created November 8, 2018 12:48
Extract bamboo build variables via log
echo "===="
grep -o . <<< "${bamboo_secret}"
echo "===="
@arijusg
arijusg / README.md
Created June 12, 2018 19:39 — forked from steve-jansen/README.md
Stop and start Symantec Endpoint Protection on OS X

This script enables you stop and start Symantec Endpoint Protection on OS X

Installation

sudo curl https://gist.githubusercontent.com/steve-jansen/61a189b6ab961a517f68/raw/sep -o /usr/local/bin/sep
sudo chmod 755 /usr/local/bin/sep
sudo chown root:staff /usr/local/bin/sep
@arijusg
arijusg / delete_git_submodule.md
Created May 23, 2018 09:09 — forked from myusuf3/delete_git_submodule.md
How effectively delete a git submodule.

To remove a submodule you need to:

  • Delete the relevant section from the .gitmodules file.
  • Stage the .gitmodules changes git add .gitmodules
  • Delete the relevant section from .git/config.
  • Run git rm --cached path_to_submodule (no trailing slash).
  • Run rm -rf .git/modules/path_to_submodule (no trailing slash).
  • Commit git commit -m "Removed submodule "
  • Delete the now untracked submodule files rm -rf path_to_submodule
@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
@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 / 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 / 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 / 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",
# 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 / 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"
}