Skip to content

Instantly share code, notes, and snippets.

View y56's full-sized avatar
🌏
(*οΏ£β–½οΏ£)/β€§β˜†*"`'*-.,_,.-*'`"*-.,_β˜†

Eugene y56

🌏
(*οΏ£β–½οΏ£)/β€§β˜†*"`'*-.,_,.-*'`"*-.,_β˜†
View GitHub Profile
@y56
y56 / collections.defaultdict
Last active April 19, 2020 01:29
collections.defaultdict(int) collections.defaultdict(lambda: 0)
collections.defaultdict(int)
# good
collections.defaultdict(lambda: 0)
# good
collections.defaultdict(lambda x:x**2)
# TypeError: <lambda>() missing 1 required positional argument: 'x'
# it seems program expects function without arguments
@y56
y56 / ERROR launchpadlib 1.10.6 requires testresources which is not installed
Created April 11, 2020 19:26
ERROR: launchpadlib 1.10.6 requires testresources, which is not installed.
https://www.discoverbits.in/864/error-launchpadlib-requires-testresources-which-installed
==
ERROR: launchpadlib 1.10.6 requires testresources, which is not installed.
+2 votes
asked Oct 6, 2019 in Programming Languages by pythonuser (11.5k points)
recategorized Oct 6, 2019 by pythonuser
I am getting the following error when I try to upgrade setuptools:
@y56
y56 / How to install Japanese Input in Linux (tutorial)
Created April 9, 2020 20:52
How to install Japanese Input in Linux (tutorial)
https://www.reddit.com/r/linux/comments/byugan/how_to_install_japanese_input_in_linux_tutorial/
==
How to install Japanese Input in Linux (tutorial)
Introduction:
Hello, my name is Eitan. I am new to linux but i am learning rapidly.
I want to contribute to the community by writing a tutorials for things that might sound easy and unnecessary but for some it might help a lot. if you see that i wrote something wrong please be sure that your write in the comments so i will fix myself.
(This tutorial was tested on debian based oses)
@y56
y56 / gnome-session-properties Set Apps to Auto Startup at Logon on Ubuntu 17.10 18.04
Created April 9, 2020 01:37
gnome-session-properties can Set Apps to Auto Startup at Logon on Ubuntu 17.10 / 18.04
gnome-session-properties
====
Skip to content
Website for Students
Learn Ubuntu Linux, Windows and CMS
Articles
@y56
y56 / Ubuntu - Run command on start-up with sudo
Created April 9, 2020 01:35
Ubuntu - Run command on start-up with β€œsudo”
Stack Overflow
Products
y56
13
, 13 reputation
●33 bronze badges
@y56
y56 / collections.defaultdict
Created April 7, 2020 04:04
collections.defaultdict()
https://docs.python.org/3/library/collections.html#defaultdict-objects
dd=collections.defaultdict(lambda: [1])
# defaultdict(<function __main__.<lambda>()>, {})
xx=dd['1']
dd
# defaultdict(<function __main__.<lambda>()>, {'1': [1]})
@y56
y56 / Ubuntu – How To Take Screenshot From Command Line
Created April 1, 2020 04:26
Ubuntu – How To Take Screenshot From Command Line
https://sourcedigit.com/20306-ubuntu-take-screenshot-from-command-line/
====
Skip to primary navigation
Skip to main content
Skip to primary sidebar
Source Digit
@y56
y56 / Ubuntu 18.04 audio disappeared after update
Created March 31, 2020 20:03
Ubuntu 18.04 audio disappeared after update FS#64720 - [linux] No sound after upgrading to linux 5.4.1
to fix the no-audio bug after upgrading linux kernel
Ubuntu 18.04 audio disappeared after update
https://askubuntu.com/questions/1218041/ubuntu-18-04-audio-disappeared-after-update
FS#64720 - [linux] No sound after upgrading to linux 5.4.1
https://bugs.archlinux.org/task/64720
How do I add a kernel boot parameter?
https://askubuntu.com/questions/19486/how-do-i-add-a-kernel-boot-parameter
@y56
y56 / Installed Extensions
Created March 30, 2020 08:32
Installed Extensions
GNOME Shell Extensions
Extensions
Add yours
Installed extensions
About
Installed Extensions
AlternateTab by fmuellner
@y56
y56 / the gnome extension: Applications Menu by fmuellner System extension is buggy, not do turn it on
Created March 30, 2020 08:30
the gnome extension: Applications Menu by fmuellner System extension is buggy, not do turn it on
the gnome extension:
Applications Menu by fmuellner
System extension
is buggy, not do turn it on