This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
1. Install with pyenv-installer: | |
https://github.com/pyenv/pyenv-installer | |
! update .bashrc, not .bash_profile | |
pyenv update | |
2. Install python 3.6.5 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# -*- coding: utf-8 -*- | |
import pygame | |
from pygame.locals import * | |
from OpenGL.GL import * | |
from OpenGL.GLU import * | |
def main(): | |
pygame.init() |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
...is done by pressing Shift-Enter!!! |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# 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 = "***" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
io:format("\n~p\n\n", [self()]). |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Increase volume by 5% | |
amixer -D pulse sset Master 5%+ |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
1) at chrome://flags enable "override software rendering list" and check at chrome://gpu that everything is accelerated |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
udisksctl mount -b /dev/sdc1 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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 |
NewerOlder