terminal color preset
.bashrc file:
PS1="\[\e[4m\e[01;42m\]\u@\h\[\e[01;33m\]::\W$\[\e[00m\]
eval "`dircolors -b $HOME/.lscolors`"
void strcat(char *to, const char *from) | |
{ | |
while (*to){ | |
to++; | |
} | |
while (*from){ | |
*to = *from; | |
from++; | |
to++; |
// just X_O game, writed for fun | |
// g++ -std=gnu++11 just_play.cpp; ./a.out | |
#include <iostream> | |
#include <string> | |
#define BB 4 | |
// 0 - " " | |
// 1 - "X" | |
// 2 - "0" |
<?xml version="1.0"?> | |
<DeviceConfig xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"> | |
<Firmware_Version>5667</Firmware_Version> | |
<Device_Name>FreeJoy������������������</Device_Name> | |
<Button_Debounce_Time>50</Button_Debounce_Time> | |
<A2b_Debounce_Time>50</A2b_Debounce_Time> | |
<Encoder_Press_Time>10</Encoder_Press_Time> | |
<Button_Timer1_Time>50</Button_Timer1_Time> | |
<Button_Timer2_Time>200</Button_Timer2_Time> | |
<Button_Timer3_Time>300</Button_Timer3_Time> |
terminal color preset
.bashrc file:
PS1="\[\e[4m\e[01;42m\]\u@\h\[\e[01;33m\]::\W$\[\e[00m\]
eval "`dircolors -b $HOME/.lscolors`"
fresh Ubuntu: | |
after install: | |
apt-get update | |
apt-get upgrade | |
installed pkgs: | |
this is not bash script, just very similar: | |
sudo apt-get install -y |
# path - /etc/udev/rules.d/51-usbblaster.rules | |
# USB-Blaster | |
BUS=="usb", SYSFS{idVendor}=="09fb", SYSFS{idProduct}=="6001", MODE="0666" | |
BUS=="usb", SYSFS{idVendor}=="09fb", SYSFS{idProduct}=="6002", MODE="0666" | |
BUS=="usb", SYSFS{idVendor}=="09fb", SYSFS{idProduct}=="6003", MODE="0666" | |
# USB-Blaster II | |
BUS=="usb", SYSFS{idVendor}=="09fb", SYSFS{idProduct}=="6010", MODE="0666" |
little tricks on python:::::: |
[user] | |
name = | |
email = | |
[alias] | |
hist = log --pretty=format:'%h %ad | %s%d [%an]' --graph --date=short | |
[core] | |
editor = vim |
#!/bin/sh | |
#check_vnc.sh - save on server at home | |
ps -ef | grep Xvnc | grep $USER | grep --color -P "Xvnc :[0-9]+" |