This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# | |
# OS: | |
# - Xubuntu 23.04 | |
# | |
# Hardware: | |
# - INTEL | |
# - NVIDIA | |
# | |
# THEMES: | |
# BaZik https://www.xfce-look.org/p/1394325/ (Blue, Orange) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
apt-get install ansible | |
https://galaxy.ansible.com/ | |
http://docs.ansible.com/ |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#full update | |
apt-get install -f && apt-get update && apt-get upgrade -y && apt-get dist-upgrade -y && apt-get autoclean -y && apt-get autoremove -y | |
#basic | |
apt-get install -y gksu unrar cpufrequtils cputool hardinfo partitionmanager guake xubuntu-restricted-extras apt-transport-https ca-certificates curl software-properties-common | |
# firmware-linux firmware-linux-free firmware-linux-nonfree unrar | |
#media & office | |
apt-get install -y variety vlc vlc-* ttf-* audacity libreoffice libreoffice-l10n-ru shutter filezilla gimp ntp florence gedit |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import { showSystemHiddenError } from './log'; | |
import React, { Component, PropTypes } from 'react'; | |
import { connect } from 'react-redux'; | |
import compose from 'recompose/compose'; | |
import reduce from 'lodash/reduce'; | |
import { UI_ACTION_PREFIX, global } from './action'; | |
import isFunction from 'lodash/isFunction'; | |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
'use strict'; | |
import React, { Component, PropTypes } from 'react'; | |
import { connect } from 'react-redux'; | |
import compose from 'recompose/compose'; | |
import reduce from 'lodash/reduce'; | |
import identity from 'lodash/identity'; | |
import kebabCase from 'lodash/kebabCase'; | |
const MOUNT = 'ui.MOUNT'; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import React, { Component, PropTypes } from 'react'; | |
import { BASE_URL } from '../config'; | |
import createBrowserHistory from 'history/createBrowserHistory'; | |
import cloneDeep from 'lodash/cloneDeep'; | |
import once from 'lodash/once'; | |
import StaticRouter from 'react-router/StaticRouter'; | |
const history = createBrowserHistory({ |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
'use strict'; | |
let translations = {}; | |
const PLACEHOLDER_EXP = /\{%\s*([^\s%]*)\s*%}/g; | |
const translate = (phrase, params = {}) => { | |
let translation; | |
if (!translations.hasOwnProperty(phrase)) { |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
window.onErrorNotice = function (func) { | |
'use strict'; | |
var onerror = function(e) { | |
func({ | |
title: e.title || 'JavaScript error', | |
message: e.error && e.error.name && 'number' in e.error ? e.error.name + ': ' + e.message : e.message, | |
file: (e.filename && e.filename.search(/^https?:|file:/) !== -1 ? e.filename + ':::' : '') + (e.filename ? e.filename + ':' + (e.lineno == null ? '' : e.lineno) + ':' + (e.colno == null ? '' : e.colno) : ''), | |
stack: (e.error && e.error.stack) || e.stack || '' | |
}); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
class BaseModel { | |
constructor (data, options = {}) { | |
if (options.$parse == null || options.$parse) { | |
data = this.$parse(data, options); | |
} | |
this.$$data = _.cloneDeep(data); | |
_.extend(this, data); |
NewerOlder