Skip to content

Instantly share code, notes, and snippets.

View m3rkus's full-sized avatar

Anistratenko Roman m3rkus

  • Taganrog, Russian Federation
View GitHub Profile
@m3rkus
m3rkus / localizer.py
Last active May 20, 2018 08:08
Localization helper
#! /usr/bin/env python
import glob
import re
import os
import argparse
from enum import Enum
# CLI arguments
@m3rkus
m3rkus / proxy.sh
Last active March 1, 2024 17:52
Script for convenient enabling/disabling proxy settings on your Mac OS machine.
#!/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 March 24, 2018 18:40 — forked from JohnSundell/simrecord
🎥 Script that lets you start a video recording from the iOS simulator with one command
#!/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"