leonspok
leonspok
Leonspok
55 posts
Igor Savelev
Don't wanna be here? Send us removal request.
leonspok · 7 years ago
Text
Move files containing specific text to another folder
grep -i -Z -r -l 'string' . | xargs -I{} mv {} ./folder_name
5 notes · View notes
leonspok · 7 years ago
Photo
Tumblr media
Yape - Yet Another PiP Extension
Picture-in-Picture is one of my favourite feature in macOS. I use it almost every time when I watch some video in Safari or IINA. But not every html5 video player adopted this feature. For example, Plex web player doesn't support PiP, which was very inconvenient for me.
There are some extensions for Safari, which can enable PiP for most of the sites, but I wanted to try to build my own native Safari extension. So that's how I decided to make Yape.
This is a very basic extension. When you click on its toolbar button, a list of all videos from the current web page and its embedded iframes will be shown. By clicking on some item in this list you enable Picture-in-Picture mode for the selected video. That's it.
Download here: link
2 notes · View notes
leonspok · 7 years ago
Text
Xfce screen tearing fix for Intel graphics
Сохранить в /etc/X11/xorg.conf.d/20-intel.conf:
Section "Device" Identifier "Intel Graphics" Driver "intel" Option "AccelMethod" "sna" Option "DRI" "3" Option "TearFree" "true" EndSection
2 notes · View notes
leonspok · 7 years ago
Text
Raspbian: measure clock and temperature
Текущая частота:
vcgencmd measure_clock arm
Температура:
vcgencmd measure_temp
Состояние троттлинга:
vcgencmd get_throttled
Последняя команда может вернуть следующие значения:
0: under-voltage 1: arm frequency capped 2: currently throttled 16: under-voltage has occurred 17: arm frequency capped has occurred 18: throttling has occurred
Например:
throttled=0x50005
В данном случае это under-voltage + currently throttled.
1 note · View note
leonspok · 7 years ago
Text
Raspbian: fix keyboard layout settings
Существующий диалог изменения раскладок клавиатуры по какой-то причине не может сохранить изменения, поэтому их нужно записать самому. Подозреваю, что это из-за sudo.
sudo nano /home/pi/.config/lxpanel/LXDE-pi/panels/panel
Plugin { type=xkb Config { Model=pc105 LayoutsList=us,ru VariantsList=, ToggleOpt=grp:alt_shift_toggle KeepSysLayouts=0 DisplayType=0 } }
0 notes
leonspok · 8 years ago
Photo
Tumblr media Tumblr media Tumblr media
10s 2.0
It's been awhile since I created something new. However, I continue to support my iOS/tvOS apps, even if they are not so popular as Irvue.
On this week I worked on tvOS version of 10s. Its navigation was remade from scratch, so now you are able to watch coubs from new timelines: Trending, Coub picks, Featured. Authorization process is a bit more evident in current version. In general, the whole app left its "hello world" state and now looks a bit more adult.
I'm not waiting for much installs on iOS devices, nevertheless, I hope tvOS version gets more attention. Especially as there is no official Coub app on tvOS.
Download 10s here: Link
0 notes
leonspok · 8 years ago
Photo
Tumblr media
Tracking Time for macOS
In Warefly we usually work on multiple projects simultaneously. To track home many time we spent for each product we started using trackingtime.co. They offer web application and Chrome extension. But prefer Safari instead of Chrome. And also I don't like when an app lives in a separate tab. For other services like Trello I solved this issue by using nativefier. This solution didn't suit for Tracking Time because I needed something, which would be always visible on my screen (so you don't forget to stop timer).
I spent one day and built this: Tracking Time for macOS. Now it lives in menu bar and I need only a couple of clicks to manage tracking.
0 notes
leonspok · 9 years ago
Photo
Tumblr media Tumblr media Tumblr media
Irvue Screensaver
Google recently released screensaver for macOS with featured photos from Google+. I thought why not to make something similar with unsplash photos? So I made Irvue Screensaver on the last weekend.
You can get it on GitHub: https://github.com/leonspok/Irvue-Screensaver
0 notes
leonspok · 9 years ago
Photo
Tumblr media
Scaled Export for iOS
GitHub
Simple Sketch plugin to add export options to selected layers by using shortcuts.
How to use
Select layers you want to make exportable and use one of these shortcuts:
^ ⌥ 1 - makes selected layers exportable with options:
scale: [x1] suffix: [ ]
scale: [x2] suffix: [@2x]
scale: [x3] suffix: [@3x]
^ ⌥ 2 - makes selected layers exportable with options:
scale: [x0.5] suffix: [ ]
scale: [x1] suffix: [@2x]
scale: [x1.5] suffix: [@3x]
^ ⌥ 3 - makes selected layers exportable with options:
scale: [x0.33] suffix: [ ]
scale: [x0.67] suffix: [@2x]
scale: [x1] suffix: [@3x]
^ ⌥ 4 - tries to calculate scale from artboard size and make layer exportable with corresponding options
0 notes
leonspok · 9 years ago
Photo
Tumblr media
Irvue 2.0
Get it here: irvue.tumblr.com
Now the first major update of Irvue is released. What's new?
First of all - channels. In previous version you were able to choose one of two default channels: Featured and All Channels. Now you can add custom channels. It might be user's profile on Unsplash, his likes, some collection or search query.
If you have Unsplash account, you can log in and the you will be able to like photos, create collections and add photos to them. Also you can import channels from your profile.
To make adding channels easier I created browser extensions for Safari, Chrome and Firefox. It's just one button. Open user's profile or collection on Unsplash, then just click on this button and channels will be added to Irvue.
For advanced users I added AppleScript support. I got this idea from Chris Messina (@chrismessina). He wanted to use Irvue from Alfred. More information about AppleScript support in Irvue you can get here: irvue.tumblr.com/apple-script-support.
In this version I desided to add to Irvue in-app purchases. Apple Developer Programm costs some money and I don't want to pay it from my pocket just to make Irvue available for people. But still I wanted to offer more functionality for users then in previous versions. That's why I left only 3 empty slots for custom channels. I think for most people it's enough. Actually I didn't activate unlimited channel slots even for myself.
I hope you will enjoy this update. And if you didn't try it yet, you can download Irvue here: irvue.tumblr.com.
0 notes
leonspok · 9 years ago
Photo
Tumblr media Tumblr media Tumblr media
10s for tvOS now available on App Store
Finally, I found out how to implement authorization on tvOS version of 10s and now it's available on App Store.
10s - is unofficial Coub client, which I created initially for iPad in December 2015. For that time official Coub app supported only iPhone and on iPads it looked ugly. I thought that it would be good practice for me to make an app for video service. After two days I had first version of 10s.
The idea to create tvOS version came to my mind when my friend Timur bought Apple TV and started complaining about how little apps available on App Store. During development I ran into the problem that there is no web component in tvOS, so I wasn't able to implement OAuth authorization. I tried to release version only with Hot, Search and Explore sections, but it was rejected because of App Store restriction for video content. After this I stopped working on tvOS version.
On the last weekend I opened this project again. At this time I found the way to make authorization possible and also added filtering system for content. So now you can use 10s for watching coubs on your Apple TV.
Authorization on tvOS app requires iOS version of the same app, that's why I released an update for 10s which makes it universal (both for iPhone and iPad).
Link to the App Store
0 notes
leonspok · 9 years ago
Photo
Tumblr media
Habco
Get it in the App Store
Here we go again! Now I have bachelor degree and this is my diploma project.
Habco lets you to record interaction with prototypes on your iPhone. If you have web-based prototype, made with, for example, Invision, Marvel, Framer.js or Atomic.io (other services are supported too), then you can start testing them with Habco.
How to use it?
Add your prototype to Habco
Add testers to prototype
Give them your device and start recording
As the result, you will have a video similar to following:
youtube
And also you will have heat maps for all visited screens:
Tumblr media
Unfortunately it doesn’t work for all prototyping services, only for some of them like Invision or Marvel.
1 note · View note
leonspok · 9 years ago
Photo
Tumblr media
10s - unofficial coub client for iPad
We wanted native Coub on our iPads, but they didn't gave it to us. So I had to make it by myself. That's what 10s is.
Features:
Available sections: home timeline, your likes, hot and explore (newest, coub of the day, random)
Also you can open selected channel or hashtag
Search
Filtering system
Weekly digests
Split View, Picture in Picture support
Get it in the App Store: 10s - unofficial coub client for iPad
1 note · View note
leonspok · 9 years ago
Text
Problem with erasing flash drive
Disk Utility wasn't able to erase my USB flash drive and always returned error "Invalid name". I found this solution:
diskutil eraseVolume HFS+ NAME disk2
disk2 is identifier of your USB flash drive. You can get it from
diskutil list
After this command Disk Utility will be able to erase your USB flash drive.
0 notes
leonspok · 10 years ago
Text
Get method name from dSYM or binary
If you see something like this:
5 MyApp 0x0044e89a 0x29000 + 4348058
and you want to understand, what this numbers mean, use this:
atos -o MyApp.app/MyApp -arch armv7 -l 0x29000 0x0044e89a
It will give you something like this:
-[MSSong setGenreTitle:] (in MyApp) (MSSong.h:21)
Also:
dwarfdump --uuid MyApp.app/MyApp
<
p>It should match with hex string in the first line of Binary Images from your crash report. Also here you can get your architecture.
0 notes
leonspok · 10 years ago
Photo
Tumblr media
Unsplash Wallpaper was renamed to Irvue (to match Unsplash API rules) and now is available in the Mac App Store! Check it here: https://itunes.apple.com/us/app/irvue/id1039633667
0 notes
leonspok · 10 years ago
Photo
Tumblr media
Fair Enough on the App Store
Today I've released the first version of Fair Enough. It's a simple app for spending time more carefully. You earn time for fun by performing useful and productive actions. Two episodes of favourite TV show for one evening in the gym. Fair Enough!
Maybe you would like to try it.
Get on the App Store
0 notes