Skip to content

Instantly share code, notes, and snippets.

View valeriyvan's full-sized avatar
🇺🇦
in Armed Forces of Ukraine since 3 of March 2022

Valeriy Van valeriyvan

🇺🇦
in Armed Forces of Ukraine since 3 of March 2022
  • B̵e̵r̵l̵i̵n̵/̵O̵d̵e̵s̵a̵ somewhere in Ukraine
View GitHub Profile
@valeriyvan
valeriyvan / install-swift.sh
Last active October 17, 2023 09:56 — forked from vzsg/install-swift.sh
Bash script to install Swift 5.9 on Ubuntu 22.04
#!/bin/bash
if [ -f "/opt/swift/bin/swift" ]; then
echo ====== Swift is already installed at /opt/swift, exiting!
exit 1
fi
for i in "$@"
do
case $i in
import Foundation
import CommonCrypto
extension Data {
enum Algorithm {
case md5
case sha1
case sha224
case sha256
case sha384
@valeriyvan
valeriyvan / SPM:Article:Generate.sh
Last active March 4, 2019 13:26 — forked from dive/SPM:Article:Generate.sh
SPM:Article:Generate
swift package generate-xcodeproj --xcconfig-overrides ./Sources/ios.xcconfig
@valeriyvan
valeriyvan / xcode-icon-tag.sh
Created March 19, 2018 23:59 — forked from valeriomazzeo/xcode-icon-tag.sh
Xcode Icon Version Overlay
# xcode-icon-tag.sh
# The MIT License (MIT)
#
# Copyright (c) <2015> <Valerio Mazzeo>
# Permission is hereby granted, free of charge, to any person obtaining a copy
#
# of this software and associated documentation files (the "Software"), to deal
# in the Software without restriction, including without limitation the rights
# to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
# copies of the Software, and to permit persons to whom the Software is
@valeriyvan
valeriyvan / pickleViewer.py
Created February 13, 2017 13:10 — forked from mcitron/pickleViewer.py
Viewer for arbitrary pickle files
#!/usr/bin/python
import pickle
from collections import defaultdict
from collections import OrderedDict
import sys
def checkDict(inputData):
return (type(inputData) == dict or type(inputData) == defaultdict\
or type(inputData) == OrderedDict)