Skip to content

Instantly share code, notes, and snippets.

View mykolaj's full-sized avatar

Anton Mykolaichuk mykolaj

View GitHub Profile
@mykolaj
mykolaj / goto-renewed.swift
Last active October 7, 2016 21:25
Isn't it good old GOTO reinvented and renewed in Swift, or not?
// ----
// Swift code taken from https://developer.apple.com/library/content/documentation/Swift/Conceptual/Swift_Programming_Language/ControlFlow.html#//apple_ref/doc/uid/TP40014097-CH9-ID120
gameLoop: while square != finalSquare {
diceRoll += 1
if diceRoll == 7 {
diceRoll = 1
}
switch square + diceRoll {
case finalSquare:
@mykolaj
mykolaj / GagSsl.java
Created September 30, 2017 14:26 — forked from chalup/GagSsl.java
Get OkHttpClient which ignores all SSL errors.
private static OkHttpClient getUnsafeOkHttpClient() {
try {
// Create a trust manager that does not validate certificate chains
final TrustManager[] trustAllCerts = new TrustManager[] {
new X509TrustManager() {
@Override
public void checkClientTrusted(java.security.cert.X509Certificate[] chain, String authType) throws CertificateException {
}
@Override
@mykolaj
mykolaj / ioslocaleidentifiers.csv
Created January 4, 2022 16:01 — forked from jacobbubu/ioslocaleidentifiers.csv
iOS Locale Identifiers
We can make this file beautiful and searchable if this error is corrected: No commas found in this CSV file in line 0.
mr Marathi
bs Bosnian
ee_TG Ewe (Togo)
ms Malay
kam_KE Kamba (Kenya)
mt Maltese
ha Hausa
es_HN Spanish (Honduras)
ml_IN Malayalam (India)
ro_MD Romanian (Moldova)
@mykolaj
mykolaj / uninstall paragon ntfs 15 full
Created February 19, 2023 18:39 — forked from mrx06/uninstall paragon ntfs 15 full
full uninstall paragon ntfs 15 (reset trial)
sudo rm -rf "/Library/Application Support/Paragon Software/"
sudo rm /Library/LaunchDaemons/com.paragon-software.installer.plist
sudo rm /Library/LaunchDaemons/com.paragon-software.ntfs.loader.plist
sudo rm /Library/LaunchDaemons/com.paragon-software.ntfsd.plist
sudo rm /Library/LaunchAgents/com.paragon-software.ntfs.notification-agent.plist
sudo rm -rf /Library/Filesystems/ufsd_NTFS.fs/
sudo rm -rf /Library/PrivilegedHelperTools/com.paragon-software.installer
sudo rm -rf /Library/Extensions/ufsd_NTFS.kext/
sudo rm -rf /Library/PreferencePanes/ParagonNTFS.prefPane