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 only used ngx-bootstrap components. | |
* | |
* @see https://valor-software.com/ngx-bootstrap/#/getting-started | |
*/ | |
import { Injectable, NgModule } from '@angular/core'; | |
import { | |
AlertModule, | |
BsDatepickerConfig, | |
BsDatepickerModule, |
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
$dropdown-bg: #fff; | |
$dropdown-arrow-size: 6px; | |
.dropdown-menu { | |
// reset basic dropdown position for Popper.js | |
&[x-placement^='top'], | |
&[x-placement^='right'], | |
&[x-placement^='bottom'], | |
&[x-placement^='left'] { | |
top: auto; |
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
const spawn = require('child_process').spawn; | |
const glob = require('glob'); | |
const fs = require('fs'); | |
const path = require('path'); | |
const which = require('which'); | |
const availableLanguages = require('./available'); | |
try { | |
which.sync('xgettext'); | |
which.sync('msgmerge'); |
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
#!/bin/bash | |
# This script installs puppet on most linux distros. | |
# To run, simply execute as root. | |
# $ install_puppet.sh [ puppet_version ] | |
# e.g. $ install_puppet.sh 3.4.1 | |
# Successfully run on Debian 6/7, Ubuntu 12.04 LTS and 14.04 LTS, Fedora 20, and arch. | |
# Not tested on OS X, Solaris, AIX, etc, simply because I lack test environments. | |
# https://gist.github.com/danieldreier/8172bee4467127a992d8 |
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
<?php | |
define('BASE_PATH', '/home/rgalka/Pictures'); | |
$image = @$_GET['image']; | |
if (!empty($image)) { | |
$file = BASE_PATH . '/' . $image; | |
if (!is_file($file)) { | |
echo "Sorry, no file matching request"; | |
exit; | |
} |
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
.settings | |
.build* | |
*signature*.xml | |
*.wgt | |
.*_delta* |
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
{ | |
"name": "Socket", | |
"description": "Simple Socket.io server for chat-like communication.", | |
"version": "0.1.0", | |
"main": "server.js", | |
"dependencies": { | |
"socket.io": "~0.9.16" | |
} | |
} |
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
# count lines in directory | |
find . -type f ! -path "\.git" ! -path "./CMakeFiles/*" | xargs wc -l | |
# du of hidden directories | |
du -hs .[^.]* | |
du -s .[^.]* | sort -nr | |
# mirror apache listing | |
wget --execute="robots = off" --mirror --convert-links --no-parent -R index.html [http://example.com/path/to/dir] | |
find -name "index.html*" -exec rm {} \; |
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'; | |
module.exports = function(grunt) { | |
// load all installed grunt tasks | |
require('load-grunt-tasks')(grunt); | |
grunt.file.readXML = function(filepath) { | |
require('require-xml'); | |
return JSON.parse(require(__dirname + '/app/' + filepath)); | |
}; |
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
RED="\[\033[0;31m\]" | |
YELLOW="\[\033[0;33m\]" | |
GREEN="\[\033[0;32m\]" | |
BLUE="\[\033[0;34m\]" | |
LIGHT_RED="\[\033[1;31m\]" | |
LIGHT_GREEN="\[\033[1;32m\]" | |
WHITE="\[\033[1;37m\]" | |
LIGHT_GRAY="\[\033[0;37m\]" | |
COLOR_NONE="\[\e[0m\]" |
NewerOlder