Skip to content

Instantly share code, notes, and snippets.

View scriptum's full-sized avatar

Pavel Roschin scriptum

View GitHub Profile
@scriptum
scriptum / .bashrc
Created August 31, 2018 06:59
Prompt command
function __prompt_command_generator() {
PS1=""
local TXTRED='\[\e[0;31m\]' # red
local TXTGRN='\[\e[0;32m\]' # green
local TXTYLW='\[\e[0;33m\]' # yellow
local TXTBLU='\[\e[0;34m\]' # blue
local TXTPUR='\[\e[0;35m\]' # purple
local TXTCYN='\[\e[0;36m\]' # cyan
local TXTWHT='\[\e[0;37m\]' # white
(Audacity:8492): GLib-GObject-WARNING **: cannot register existing type 'GdkDisplayManager'
(Audacity:8492): GLib-CRITICAL **: g_once_init_leave: assertion 'result != 0' failed
(Audacity:8492): GLib-GObject-CRITICAL **: g_object_new: assertion 'G_TYPE_IS_OBJECT (object_type)' failed
(Audacity:8492): Gnome-WARNING **: Accessibility: failed to find module 'libgail-gnome' which is needed to make this application accessible
(Audacity:8492): GLib-GObject-WARNING **: cannot register existing type 'GtkWidget'
dhcp-boot=pxelinux.0
dhcp-range=10.100.0.200,10.100.0.254,12h
dhcp-range=10.101.0.200,10.101.0.254,12h
dhcp-range=10.11.0.128,10.11.0.254
enable-tftp
tftp-root=/var/lib/tftpboot
<network>
<name>vlan-stacknet</name>
<uuid>b5e24f5d-0ec2-4fc1-9442-61bb1259402a</uuid>
<forward dev='enp5s0f1' mode='route'>
<interface dev='enp5s0f1'/>
</forward>
<bridge name='virbr2' stp='off' delay='0'/>
<mac address='52:54:00:e6:97:76'/>
<ip address='10.101.0.1' netmask='255.255.255.0'>
</ip>
NetworkManager-bluetooth-1.4.0-12.el7.x86_64
NetworkManager-1.4.0-12.el7.x86_64
NetworkManager-libnm-1.4.0-12.el7.x86_64
NetworkManager-team-1.4.0-12.el7.x86_64
NetworkManager-libreswan-gnome-1.2.4-1.el7.x86_64
NetworkManager-adsl-1.4.0-12.el7.x86_64
NetworkManager-wwan-1.4.0-12.el7.x86_64
NetworkManager-pptp-1.1.0-3.20150428git695d4f2.el7.x86_64
NetworkManager-tui-1.4.0-12.el7.x86_64
NetworkManager-pptp-gnome-1.1.0-3.20150428git695d4f2.el7.x86_64
#!/bin/sh
# Generated automatically from makewhatis.in by the
# configure script.
#
#!/bin/sh
# makewhatis: create the whatis database
# Created: Sun Jun 14 10:49:37 1992
# Revised: Sat Jan 8 14:12:37 1994 by [email protected]
# Revised: Sat Mar 23 17:56:18 1996 by [email protected]
# Copyright 1992, 1993, 1994 Rickard E. Faith ([email protected])
configdirectory: /var/lib/imap
partition-default: /var/spool/imap
admins: cyrus
sievedir: /var/lib/imap/sieve
sendmail: /usr/sbin/sendmail
hashimapspool: true
sasl_pwcheck_method: saslauthd
sasl_mech_list: PLAIN LOGIN
allowplaintext: no
defaultdomain: my.domain
@scriptum
scriptum / tumbler.rc
Created March 4, 2017 07:12
/etc/xdg/tumbler/tumbler.rc
###
# [TypeNameOfPlugin]
# Disabled: Set to true to avoid loading the plugin. By default all
# plugins are loaded.
# Priority: Priority of the plugin if more plugins support the same
# uri-scheme / mime-type combination.
# Locations: ;-separated path list the plugin will be used in. If the
# source file is not a child of one of the locations, the
# plugin won't be used and another plugin with a lower
# priority will be tried.
public class ScreenSaverApp : Gtk.Application {
private Gtk.CssProvider provider;
private Gee.ArrayList<string> files;
private const string images_dir = "/usr/share/mga/screensaver/";
private int files_max = 0;
private int files_current = 0;
private const string css_tmpl = """
* {
transition-property: background-color, background-image;
# bc with trigonometry and useful functions
bc() {
/usr/bin/bc -qli <(echo '
scale=32
pi=4*a(1)
e=e(1)
scale=20
define sin(x) {
return (s(x))
}