Skip to content

Instantly share code, notes, and snippets.

View skywinder's full-sized avatar
:octocat:

Petr Korolev skywinder

:octocat:
View GitHub Profile
@skywinder
skywinder / idea_native_clipboard_support
Last active August 29, 2015 14:15
idea_native_clipboard_support - for quickly fix idea.properties file
#!/usr/bin/env bash
if [ -n "$1" ]
then
if grep "ide.mac.useNativeClipboard=" "$1"/Contents/bin/idea.properties > /dev/null
then
if grep "ide.mac.useNativeClipboard=false" "$1"/Contents/bin/idea.properties > /dev/null
then
echo "ide.mac.useNativeClipboard=false found -> change to true"
@skywinder
skywinder / Flood.swift
Last active April 18, 2016 15:22 — forked from futurepaul/Flood.swift
The biblical flood, in Swift
let 🌍 = "🐶🐺🐱🐭🐹🐰🐸🐯🐨🐻🐷🐽🐮🐗🐵🐒🐴🐑🐘🐼🐧🐦🐤🐥🐣🐔🐍🐢🐛🐝🐜🐞🐌🐙🐚🐠🐟🐬🐳🐋🐄🐏🐀🐃🐅🐇🐉🐎🐐🐓🐕🐖🐁🐂🐲🐡🐊🐫🐪🐆🐈🐩"
var 🚢: [String] = []
for 👾 in 🌍.characters {
let 💕 = String(👾)
🚢.append(💕 + 💕)
}
🚢
@skywinder
skywinder / Verifying my Peepeth
Created September 8, 2018 22:41
Verifying my Peepeth
Verifying my identity on Peepeth.com 0x6a3738c6299f45c31697acea647d49edcc9c28a4
@skywinder
skywinder / create_fat_framework.sh
Last active October 14, 2018 15:41
Export “fat” Cocoa Touch Framework (for Simulator and Device)
#run this script from Product page in your project Derived Data folder
framework_name="${$(basename $(find ./Debug-iphoneos -type d -name '*.framework' -maxdepth 1))%.*}" && \
cp -R Debug-iphoneos/$framework_name.framework ./$framework_name.framework && \
lipo -create -output "$framework_name.framework/$framework_name" \
"Debug-iphonesimulator/$framework_name.framework/$framework_name" \
"Debug-iphoneos/$framework_name.framework/$framework_name"
time cargo run --release --bin compute_constrained
Compiling powersoftau v0.2.0 (/Users/pk/repo/powersoftau)
Finished release [optimized] target(s) in 2.44s
Running `target/release/compute_constrained`
Will contribute to accumulator for 2^25 powers of tau
In total will generate up to 67108863 powers
Type some random text and press [ENTER] to provide additional entropy...
<DELETED>
@skywinder
skywinder / verify_transform_constrained
Created March 11, 2019 18:17
Decompression Petr -> Felix
cargo run --release --bin verify_transform_constrained
Finished release [optimized] target(s) in 0.12s
Running `target/release/verify_transform_constrained`
Will verify and decompress a contribution to accumulator for 2^25 powers of tau
Calculating previous challenge hash...
Hash of the `challenge` file for verification:
442064d3 e63b077b b82a3268 9d7cfb54
470391c7 5d03d9e8 0bb39c6d 84aa063f
e876fbc7 e07c7ea6 a09d3582 7333be41
2925944f d0f7a0dc 8280d5d4 0016aa8f

Keybase proof

I hereby claim:

  • I am skywinder on github.
  • I am skywinder (https://keybase.io/skywinder) on keybase.
  • I have a public key ASBH3KfAmCW74oEm9_fABXahqfMv0DKBdTlCa0SsFlh_MQo

To claim this, I am signing this object:

Keybase proof

I hereby claim:

  • I am skywinder on github.
  • I am skywinder (https://keybase.io/skywinder) on keybase.
  • I have a public key ASBH3KfAmCW74oEm9_fABXahqfMv0DKBdTlCa0SsFlh_MQo

To claim this, I am signing this object:

🌞 Morning 289 commits ████▊░░░░░░░░░░░░░░░░ 23.1%
🌆 Daytime 559 commits █████████▍░░░░░░░░░░░ 44.7%
🌃 Evening 275 commits ████▌░░░░░░░░░░░░░░░░ 22.0%
🌙 Night 128 commits ██▏░░░░░░░░░░░░░░░░░░ 10.2%
@skywinder
skywinder / Petr Korolev's GitHub Stats
Last active January 6, 2021 01:12
github-stats-box-gist
⭐ Total Stars: 1,026
➕ Total Commits: 11,761
🔀 Total PRs: 414
🚩 Total Issues: 376
📦 Contributed to: 53