Skip to content

Instantly share code, notes, and snippets.

View lithuak's full-sized avatar

Ilya Persky lithuak

  • Ukraine
View GitHub Profile
1. Install with pyenv-installer:
https://github.com/pyenv/pyenv-installer
! update .bashrc, not .bash_profile
pyenv update
2. Install python 3.6.5
cp /usr/share/applications/firefox.desktop ~/.local/share/applications
edit
https://askubuntu.com/questions/13758/how-can-i-edit-create-new-launcher-items-in-unity-by-hand?utm_medium=organic&utm_source=google_rich_qa&utm_campaign=google_rich_qa
# -*- coding: utf-8 -*-
import pygame
from pygame.locals import *
from OpenGL.GL import *
from OpenGL.GLU import *
def main():
pygame.init()
@lithuak
lithuak / gist:67dadd7cc89f18a78001
Created February 22, 2015 12:21
mysterious expression evaluation in wxMaxima...
...is done by pressing Shift-Enter!!!
@lithuak
lithuak / gist:bba7724396e2072623d4
Created January 10, 2015 21:46
Google OAuth Python
# Google OAuth 3.0 auth provider
from flask import request, redirect, session, url_for, current_app
from urllib import quote_plus
import requests
from util.common import make_url, url_for_view
client_id = "***"
client_secret = "***"
@lithuak
lithuak / gist:d1f40428ba9c166d61ae
Created December 12, 2014 12:15
erlang: pretty pring whatever structure you want
io:format("\n~p\n\n", [self()]).
@lithuak
lithuak / gist:3c7b2a015f0269f6f3a5
Created October 17, 2014 08:08
increase volume from cmd
Increase volume by 5%
amixer -D pulse sset Master 5%+
1) at chrome://flags enable "override software rendering list" and check at chrome://gpu that everything is accelerated
@lithuak
lithuak / gist:26455a054b57a0e66d7d
Created October 10, 2014 15:18
semi-auto-mount drive from cmd line
udisksctl mount -b /dev/sdc1
@lithuak
lithuak / gist:e242e4cf13938568d1ec
Created September 25, 2014 11:21
xmonad config!
import XMonad
import XMonad.Util.EZConfig(additionalKeys)
import qualified XMonad.StackSet as W
import System.IO
import XMonad.Hooks.DynamicLog
-- +! scrot on printScreen
myManageHook = composeAll
[ className =? "MPlayer" --> doFloat