Skip to content

Instantly share code, notes, and snippets.

What would you like to do?
global log
# Alienware 13 r2 linux usefull links
root@alex-Alienware-13-R2:/media/alex/C76B-8817/ath10k-firmware# cp -a QCA6174/ /lib/firmware/ath10k/QCA6174/
root@alex-Alienware-13-R2:/media/alex/C76B-8817/ath10k-firmware# echo "options ath10k_core skip_otp=y" | tee -a /etc/modprobe.d/ath10k.conf
sudo su
echo 'blacklist i2c_hid' >> /etc/modprobe.d/blacklist.conf
depmod -a
update-initramfs -u
sudo apt-get purge nvidia*
sudo apt-get purge bumblebee* primus
sudo add-apt-repository ppa:graphics-drivers/ppa
sudo apt-get update
sudo apt-get install nvidia-352 nvidia-prime
sudo add-apt-repository -r ppa:bumblebee/stable
xrandr --output eDP-1 --auto --primary --output HDMI-0 --auto --left-of eDP-1
# Docker
## List of committed images
```$ docker images```
## Get image
Build from docker file
```docker build -f ./Dockerfile .```
Pull from dockerhub
```docker pull ovvasyliev/opensdl-docker```
## List of docker containers and history of theis execution
```docker ps -a```
## Run image ( create new container from image)
```docker run -d {image name}```
Not that it prints container hash
## Attach to running container
docker exec -i -t ${Hash} /bin/bash
Issue of invalid term type :
```export TERM=xterm```
### Function for easy attach
dconnect() {
docker exec -it $1 /bin/bash
## Commit container state ( create image from container)
```docker commit ${CONTAINER_ID} ${NEW_IMAGE_NAME}```
## Mount volume
example :
docker run -d -v `pwd`:/root/sdl sdl
## Stop container
docker stop ${container id}
## Remove all containers and images
docker rm $(docker ps -a -q)
docker rmi $(docker images -q)
like sublime IDE
Open a terminal and use the following commands:
sudo add-apt-repository ppa:dr-akulavich/lighttable
sudo apt-get update
sudo apt-get install lighttable-installer
Once installed, you can look for Light Table in Unity Dash and run it.
To uninstall Light Table installed via the above PPA, use the commands below:
sudo apt-get remove lighttable-installer
sudo add-apt-repository --remove ppa:dr-akulavich/lighttable
# HDMI to VGA (USB Type-C to VGA)
#Gnome 3 javascript, Gtk.DirectionType.LEFT, false)
# Sublime clang C++
#Gedit tips
Press Ctrl+Alt+B, or click Edit ▸ Toggle Bookmark.
Press Ctrl+B to move to the next bookmark.
Press Ctrl+Shift+B to move to the previous bookmark.
To add a comment, click Edit ▸ Comment Code, or press Ctrl+M.
To remove a comment, click Edit ▸ Uncomment Code, or press Shift+Ctrl+M.
Ctrl + . - command mode
Move the cursor to a certain line number in your file
go [line number] or just g [line number]
Toggle the bookmark indicator for the current line
bookmark or just b
Ctrl + F9 - terminal
Ctrl+Shift+C - Multiedit
Place your cursor at your first desired editing point.
Press Ctrl+E.
Move to your next editing point, and press Ctrl+E again.
Continue inserting editing points, adding as many as you need.
Ctrl+Alt+O, or by selecting File ▸ Quick Open.
#Telegram ubuntu
Для установки Telegram, наберите в консоли:
sudo add-apt-repository ppa:costales/unity-webapps-telegram
sudo apt-get update && sudo apt-get install unity-webapps-telegram
Для удаления Telegram, наберите:
sudo apt-get remove unity-webapps-telegram ;
sudo apt-get install ppa-purge ;
sudo ppa-purge ppa:costales/unity-webapps-telegram
# Static code analyses
sudo update-alternatives --install /usr/bin/clang++ clang++ /usr/bin/clang++-3.8 100
# Grep and its friends
pgrep -a : process grep
zipgrep, zfgrep, bzfgrep, xzfgrep : grep in archives
ssgrep : exel parse
#Parce binary protocol
# Github python API #
sudo pip3 install --pre
sudo pip install RandomWords
# POCO library
Good config implementation
# SDL plugins #
Below is the list of quite interesting presentation regarding modular apps and ways to achieve modularity
1) Might be useful to understand the idea of Modular App
2) [Rus, but picture and code in Eng] Good presentation about DI and Modular Apps with code samples (Boost.DI, Fruit and some other)
1) Wallaroo (C++11, seems abandoned)
2) Hypodermic (C++11, seems abandoned)
3) Fruit DI framework (c++11)
Looks promising.
4) Boost.DI (c++14)
Looks really great, but c++14 might prevent usage.
# On-line compilers #
# Plant UML #:
#Python vector graphics#
import cairo
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
You can’t perform that action at this time.