Skip to content

Instantly share code, notes, and snippets.

@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 / 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 / run.sh
Created November 8, 2018 12:48
Extract bamboo build variables via log
echo "===="
grep -o . <<< "${bamboo_secret}"
echo "===="
@arijusg
arijusg / jamf.md
Created December 1, 2018 17:29 — forked from a7ul/jamf.md
removing all restrictions on jamf managed macos device - Provided you have root access.

REMOVE JAMF RESTRICTIONS ON MAC

REMOVE ONLY RESTRICTIONS

sudo jamf removeMDMProfile removes all restrictions

sudo jamf manage brings back all restrictions and profiles

REMOVE ALL RESTRICTIONS AND DISABLE JAMF BINARIES WHILE KEEPING YOUR ACCESS TO VPN AND OTHER SERVICES

sudo jamf removeMDMProfile removes all restrictions

@arijusg
arijusg / set_proxy_on_work_laptop.sh
Created December 2, 2018 11:42
Set proxy settings automatically using work laptop
#!/bin/bash
##########################################################################################
# Set proxy settings automatically using work laptop (~/.bashrc) #
##########################################################################################
USERNAME="<<username>> or <<domain\username>>"
PASSWORD="password"
PROXY_ADDRESS="proxy domain address"
NO_PROXY_DOMAINS=".local,.example.com"
WORK_IP_RANGE="10.10.10.*"
@arijusg
arijusg / windows-on-mac-fun.md
Created April 3, 2019 14:10
Windows on Mac fun

Windows on Mac fun

  • Download VM Image from https://developer.microsoft.com/en-us/microsoft-edge/tools/vms/
  • Dowload VirtualBox 6.0 from https://www.virtualbox.org/wiki/Downloads

Install VirtualBox

  • Click install, the install will fail.
  • Go to System Preferences -> Security and Privacy -> General -> "Some system software was blocked from loading" -> click "Allow"
  • Click install again, VirtualBox will install
@arijusg
arijusg / download-video.md
Last active May 6, 2024 01:45
Download stream video
@arijusg
arijusg / configure-list-of-allowed-authentication-servers.md
Last active April 6, 2020 09:31
Configure list of allowed authentication servers (intranet) for Microsoft Edge chromium
  1. Open finder and go to ~/Library/Preferences
  2. Find com.microsoft.Edge.plist. If file doesn't exist, continue, otherwise go to step x
  3. Create a new config file /usr/bin/defaults write ~/Library/Preferences/com.microsoft.Edge.plist RestoreOnStartup -int 1
  4. Convert it to plist: /usr/bin/plutil -convert xml1 ~/Library/Preferences/com.microsoft.Edge.plist
  5. Open ~/Library/Preferences/com.microsoft.Edge.plist with xcode
  6. Add rows below:
  • Key: AuthServerAllowlist, Type: String, Value: *contose.com
  • Key: AuthNegotiateDelegateAllowlist, Type: String, Value: *contoso.com
@arijusg
arijusg / generate-interfaces.sh
Last active June 18, 2020 09:44
Generate Typescript interfaces for multiple swagger api project files
#!/bin/bash
set -e
# Root
ROOT_PATH=${PWD}
ROOT_PROJECTS="${ROOT_PATH}/projects"
ROOT_DIST="${ROOT_PATH}/dist"
function print() {
if [ -z "$1" ]; then
@arijusg
arijusg / gist:9a250f0d921912db0f1cdd95b6571449
Created September 2, 2020 08:38
Prioritise Logitech daemon so MX3 mouse extra buttons don't lag
sudo renice -20 $(pgrep LogiMgrDaemon)