Skip to content

Instantly share code, notes, and snippets.

💭
none of your business

dalu

💭
none of your business
  • Germany/Croatia
Block or report user

Report or block dalu

Hide content and notifications from this user.

Learn more about blocking users

Contact Support about this user’s behavior.

Learn more about reporting abuse

Report abuse
View GitHub Profile
View google-plus.css.html
<style type="text/css" data-late-css="">.MCcOAc{bottom:0;left:0;position:absolute;right:0;top:0;overflow:hidden;z-index:1}.MCcOAc>.pGxpHc{flex-shrink:0;box-flex:0;flex-grow:0}.IqBfM>.HLlAHb{align-items:center;display:-webkit-box;display:-moz-box;display:-webkit-flex;display:-ms-flexbox;display:flex;height:60px;position:absolute;right:16px;top:0;z-index:9999}.VUoKZ{display:none;position:absolute;top:0;left:0;right:0;height:3px;z-index:1001}.TRHLAc{position:absolute;top:0;left:0;width:25%;height:100%;background:#68e;transform-origin:0 0}.mIM26c .VUoKZ{display:block}.mIM26c .TRHLAc{animation:boqChromeapiPageProgressAnimation 1s infinite;animation-timing-function:cubic-bezier(0.4,0.0,1,1);animation-delay:.1s}.ghyPEc .VUoKZ{position:fixed}@keyframes boqChromeapiPageProgressAnimation{0%{transform:scaleX(0)}50%{transform:scaleX(5)}to{transform:scaleX(5) translateX(100%)}}@keyframes quantumWizBoxInkSpread{0%{-moz-transform:translate(-50%,-50%) scale(.2);transform:translate(-50%,-50%) scale(.2)}to{-moz-transform:trans
@dalu
dalu / output.txt
Created Oct 23, 2018
angular ng upgrade 6 -> 7 erros
View output.txt
ng update @angular/core
Your global Angular CLI version (7.0.2) is greater than your local
version (6.0.8). The local Angular CLI version is used.
To disable this warning use "ng config -g cli.warnings.versionMismatch false".
Updating package.json with dependency @angular/language-service @ "7.0.0" (was "6.1.10")...
Updating package.json with dependency @angular/core @ "7.0.0" (was "6.1.10")...
Updating package.json with dependency @angular/forms @ "7.0.0" (was "6.1.10")...
Updating package.json with dependency @angular/platform-browser-dynamic @ "7.0.0" (was "6.1.10")...
Updating package.json with dependency @angular/animations @ "7.0.0" (was "6.1.10")...
View gist:c9405362cf7011823f5293e230ce7d6d
cd $HOME
virtualenv --python=/usr/bin/python2.7 pgadmin4
source pgadmin4/bin/activate
pip2.7 install https://ftp.postgresql.org/pub/pgadmin/pgadmin4/v3.4/pip/pgadmin4-3.4-py2.py3-none-any.whl
#
#
echo "# coding: utf-8
from config import *
SERVER_MODE = False
@dalu
dalu / ingredient-section-input.component.html
Created Sep 5, 2018
Angular 6 dynamic components and children and accessing their values
View ingredient-section-input.component.html
<div class="form-row border mt-2 pt-2" style="border: 1px dot-dash #333333">
<div class="form-group col-12">
<label for="name">Name</label>
<input id="name" class="form-control" placeholder="name" [(ngModel)]="model.name">
</div>
<div class="form-group col-12">
<ng-container #ingredientWrapper></ng-container>
</div>
<div class="form-group col-12">
<button class="btn btn-light btn-block btn-sm" (click)="addIngredient()">Add Ingredient</button>
View angular-locales.ts
const locales = [
{ name: "Arabic", value: ar},
{ name: "Bengali/Bangladesh", value: bn},
{ name: "German", value: de},
{ name: "English", value: en},
{ name: "Spanish", value: es},
{ name: "French", value: fr},
{ name: "Hindi", value: hi},
{ name: "Croatian", value: hr},
{ name: "Italian", value: it},
@dalu
dalu / chromium-startup-options.sh
Last active May 2, 2018
Chromium Headless Startup Options
View chromium-startup-options.sh
chromium \
--disable-client-side-phishing-detection \
--disable-cloud-import \
--disable-default-apps \
--disable-dinosaur-easter-egg \
--disable-new-tab-first-run \
--disable-offer-upload-credit-cards \
--disable-signin-promo \
--disable-sync \
--disable-translate \
@dalu
dalu / claims.ts
Created Oct 10, 2017
Claims object in ts
View claims.ts
export interface Claims {
jti: string;
exp: Date;
nbf: Date;
iat: Date;
iss: string;
aud: string;
sub: string;
typ: string;
azp: string;
@dalu
dalu / centos-php-7-remi-packages
Created Oct 8, 2017
CentOS7 remi extra packages
View centos-php-7-remi-packages
php-bcmath php-cli php-common php-fpm php-gd php-intl php-json php-mbstring php-mcrypt php-mysqlnd php-opcache php-pdo php-pear php-pecl-imagick php-pecl-zip php-process php-soap php-tidy php-xml
@dalu
dalu / keycloack-install
Created Aug 25, 2017 — forked from mottyc/keycloack-install
Keycloak server installtion script
View keycloack-install
#!/bin/bash
#title :wildfly-install.sh
#description :The script to install Wildfly 10.x
#more :http://sukharevd.net/wildfly-8-installation.html
#author :Dmitriy Sukharev
#date :2016-06-18T02:45-0700
#usage :/bin/bash wildfly-install.sh
#tested-version1 :10.0.0.CR3
#tested-distros1 :Ubuntu 15.10; Debian 7,8; CentOS 7; Fedora 22
#tested-version2 :10.0.0.Final
@dalu
dalu / blockIP
Created Aug 24, 2017
block ip address via firewall-cmd
View blockIP
#!/bin/bash
if [ -z $1 ]
then
echo "Usage blockIP <ip address>\n"
exit
else
firewall-cmd --permanent --add-rich-rule="rule family='ipv4' source address='$1' reject"
fi
You can’t perform that action at this time.