Skip to content

Instantly share code, notes, and snippets.

View alexws54tk's full-sized avatar
☃️
From Siberia with Love

Alexander Golikov alexws54tk

☃️
From Siberia with Love
  • Russia, Novosibirsk
View GitHub Profile
@alexws54tk
alexws54tk / backup-db-se.sh
Last active May 20, 2020 15:39
Backup Sites DBs and Sites files
# Add to /etc/crontab
% cat /etc/crontab
#min hr dom mon dow user command
40 23 * * * <user> /path/to/backup-db-se.sh
% cat backup-db-se.sh
#!/bin/bash
VERSION="20190111" # vaersion of script file
/*
Felix 3 Single v0.92.9-2017-03-25
This file is part of Repetier-Firmware.
Repetier-Firmware is free software: you can redistribute it and/or modify
it under the terms of the GNU General Public License as published by
the Free Software Foundation, either version 3 of the License, or
(at your option) any later version.
@alexws54tk
alexws54tk / card.scad
Last active April 10, 2019 13:40
OpenSCAD chemical element `card.scad`
width=60; // width of card
height=40; // height of card
// code="Th";
elements = ["", "H", "He", "Li", "Be", "B", "C", "N", "O", "F", "Ne",
"Na", "Mg", "Al", "Si", "P", "S", "Cl", "Ar", "K", "Ca", "Sc", "Ti",
"V", "Cr", "Mn", "Fe", "Co", "Ni", "Cu", "Zn", "Ga", "Ge", "As", "Se",
"Br", "Kr", "Rb", "Sr", "Y", "Zr", "Nb", "Mo", "Tc", "Ru", "Rh", "Pd",
"Ag", "Cd", "In", "Sn", "Sb", "Te", "I", "Xe", "Cs", "Ba", "La", "Ce",
"Pr", "Nd", "Pm", "Sm", "Eu", "Gd", "Tb", "Dy", "Ho", "Er", "Tm", "Yb",
@alexws54tk
alexws54tk / Translate-RUonly_Repeater-Firmware.ods
Last active November 4, 2016 16:17
Russian Translation for Repeater-Firmware 0.92.10
@alexws54tk
alexws54tk / build.log
Last active May 4, 2016 20:22
dev-libs/efl
This file has been truncated, but you can view the full file.
* Package: dev-libs/efl-1.17.0
* Repository: gentoo
* Maintainer: enlightenment@gentoo.org
* USE: X abi_x86_64 amd64 bmp drm eet elibc_glibc fbcon fontconfig fribidi gif glib gnutls gstreamer harfbuzz ico jpeg2k kernel_linux nls oldlua opengl physics png ppm psd pulseaudio scim sound ssl tga tiff userland_GNU v4l webp xim xine xpm
* FEATURES: preserve-libs sandbox userpriv usersandbox
>>> Unpacking source...
>>> Unpacking efl-1.17.0.tar.xz to /var/tmp/portage/dev-libs/efl-1.17.0/work
>>> Source unpacked in /var/tmp/portage/dev-libs/efl-1.17.0/work
>>> Preparing source in /var/tmp/portage/dev-libs/efl-1.17.0/work/efl-1.17.0 ...
* Removing useless C++ checks ...
{
"app": "µMatrix",
"version": "0.9.3.4",
"when": 1466437928189,
"settings": {
"autoUpdate": true,
"clearBrowserCache": true,
"clearBrowserCacheAfter": 60,
"cloudStorageEnabled": true,
"collapseBlocked": true,
@alexws54tk
alexws54tk / build.log
Created May 30, 2015 14:54
net-im/psimedia-9999
This file has been truncated, but you can view the full file.
 * Package: net-im/psimedia-9999
 * Repository: rion
 * Maintainer: nikoli@lavabit.com net-im@gentoo.org
 * USE: abi_x86_64 amd64 elibc_glibc extras kernel_linux qt5 userland_GNU
 * FEATURES: preserve-libs sandbox userpriv usersandbox
>>> Unpacking source...
GIT update -->
repository: git://github.com/psi-plus/psimedia.git
at the commit: 7d7242eea944e47f1fde1396dda29189c9651c24
branch: master
@alexws54tk
alexws54tk / count.pl
Created May 27, 2015 07:22
Count lelters in entered text
#!/usr/bin/perl -w
use strict;
print "Enter text: ";
my $text = <>;
chomp($text);
my @letters=();
my @chars=split(//,$text);
for my $char (@chars) {
@alexws54tk
alexws54tk / some-system.info
Last active May 12, 2016 05:32
No cyrillic text in menus Portal 2 on linux.
lspci | grep VGA
00:02.0 VGA compatible controller: Intel Corporation Xeon E3-1200 v2/3rd Gen Core processor Graphics Controller (rev 09)
01:00.0 VGA compatible controller: NVIDIA Corporation G94 [GeForce 9600 GSO 512] (rev a1)
eix -s intel-driver
[I] x11-libs/libva-intel-driver
Available versions: 1.0.17 ~1.0.19 ~1.0.20 ~1.0.20-r1 ~1.2.0 ~1.2.1 ~1.2.2 ~1.2.2-r1 1.3.0 ~1.3.2 **9999 {X +drm wayland ABI_MIPS="n32 n64 o32" ABI_PPC="32 64" ABI_S390="32 64" ABI_X86="32 64 x32"}
Installed versions: 1.3.0(17:13:52 24.07.2014)(X drm -wayland ABI_MIPS="-n32 -n64 -o32" ABI_PPC="-32 -64" ABI_S390="-32 -64" ABI_X86="64 -32 -x32")
Homepage: http://www.freedesktop.org/wiki/Software/vaapi
Description: HW video decode support for Intel integrated graphics
#!/bin/bash
## wget -O tox.sh waa.ai/iqt && chmod +x ./tox.sh && ./tox.sh
## ./tox.sh -sl to skip libsodium (they don't update that often)
## ./tox.sh -sd to skip libsodium and all the other dependencies
## If libraries are missing, remove /etc/ld.so.conf.d/locallib.conf and
## try running again. Else, try messing around with the prefix paths.
## Suggestions, comments and the alike are welcome on http://waa.ai/4vsk
## or send me a mail, to notadecent AT tox DOT im