Skip to content

Instantly share code, notes, and snippets.

Avatar

Anistratenko Roman m3rkus

View GitHub Profile
@m3rkus
m3rkus / localizer.py
Last active May 20, 2018
Localization helper
View localizer.py
#! /usr/bin/env python
import glob
import re
import os
import argparse
from enum import Enum
# CLI arguments
@m3rkus
m3rkus / proxy.sh
Last active Nov 23, 2020
Script for convenient enabling/disabling proxy settings on your Mac OS machine.
View proxy.sh
#!/bin/bash
NETWORK_SERVICE_NAME="Wi-Fi"
if [ "$#" -ne 1 ]; then
echo "Argument missing [on/off]"
exit 0
fi
if [ $1 == "on" ]; then
@m3rkus
m3rkus / simrecord
Created Mar 24, 2018 — forked from JohnSundell/simrecord
🎥 Script that lets you start a video recording from the iOS simulator with one command
View simrecord
#!/bin/bash
ITERATION=1
EXTENSION="mp4"
FILENAME="$HOME/Desktop/Simulator Recording.$EXTENSION"
while [ -e "$FILENAME" ]
do
ITERATION=$((ITERATION+1))
FILENAME="$HOME/Desktop/Simulator Recording $ITERATION.$EXTENSION"