This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/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 | |
# |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# 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) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// | |
// main.m | |
// 101RACSamples | |
// | |
// Created by Matthew Doig on 1/26/14. | |
// Copyright (c) 2014 DWI. All rights reserved. | |
// | |
#pragma mark Asynchronous operators |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/usr/bin/env bash | |
app="test.app" | |
#shows sign info | |
codesign -dv $app | |
payload2="YourApp.app/embedded.mobileprovision" | |
#get sign info 2 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/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 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/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 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
1355e36339ed3ea5b82f722491fe5efe |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#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 {} <...>-{} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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 |