Skip to content

Instantly share code, notes, and snippets.

View oleksiiha's full-sized avatar
🎯
Focusing

Oleksii Haiev oleksiiha

🎯
Focusing
  • MyCujoo
  • Amsterdam
View GitHub Profile
@oleksiiha
oleksiiha / gist:74ed6db4cf116e19ed51fcc2dd2feceb
Last active April 15, 2024 03:18
Install Plexamp on HiFiBerryOS
Pre-requisits:
My build worked for me and my setup which includes: Raspberry Pi 3b, HiFiBerry DAC+ Standart, wired connection (for some reason connection to plexamp drops on wireless), HiFiBerryOS installed
You need version 9 of nodejs in your system, easiest way in my opinion to install custom version of nodejs and to not affect version 12 that is present in HiFIBerryOS, is to use nvm
1. Ssh to your hifiberry installation
2. Create bash profile file (this is required by nvm)
# touch ~/.profile
3. Install NVM
@oleksiiha
oleksiiha / ima3.js
Last active October 17, 2019 15:12
ima3 debug
// Copyright 2011 Google Inc. All Rights Reserved.
(function() {
var k, aa = function(a) {
var b = 0;
return function() {
return b < a.length ? {
done: !1,
value: a[b++]
} : {
done: !0
@oleksiiha
oleksiiha / mailru.py
Last active December 15, 2015 16:59 — forked from anonymous/mailru.py
for profile in self._profile_provider.find({'_id': {'$in': ids}}, include_fields=self._profile_fields):
#friend_social_id = profile['social_id']
in_game_id = profile['_id']
self._friends_profiles[in_game_id] = self._update_profile(profile, {'is_app_user': True})
#try:
# self._friends_ids.remove(friend_social_id)
#except ValueError:
# msg = 'Friend not in social api list but in db profiles. id: {}, social_id: {}, api_friends_social_ids: {}, db_friend_social_id: {}'
# log.debug(msg.format(self.user_id, self.social_id, self._friends_ids, friend_social_id))