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
######################## | |
# To modify openldap ACL | |
######################## | |
# delete the existing ACL | |
# delete-acl.ldif | |
dn: olcDatabase={1}hdb,cn=config | |
changetype: modify | |
delete: olcAccess |
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
To bulk rename files with increment or decrement | |
================================================ | |
e.g. | |
song_002.mp3 | |
song_003.mp3 | |
... | |
song_011.mp3 | |
To rename above file list to: |
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
require 'json' | |
require 'rest-client' | |
puts 'Creating User Stories from github issutes.. STARTED!' | |
#getting github's token: https://help.github.com/articles/creating-an-access-token-for-command-line-use | |
github_token = "token foo" | |
#github params | |
github = {:url => 'https://api.github.com/repos/foo/foo/issues', :token => github_token} |
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
__BEGIN__ | |
*vimtips.txt* For Vim version 7.3. | |
------------------------------------------------------------------------------ | |
" new items marked [N] , corrected items marked [C] | |
" *best-searching* | |
/joe/e : cursor set to End of match | |
3/joe/e+1 : find 3rd joe cursor set to End of match plus 1 [C] | |
/joe/s-2 : cursor set to Start of match minus 2 | |
/joe/+3 : find joe move cursor 3 lines down | |
/^joe.*fred.*bill/ : find joe AND fred AND Bill (Joe at start of line) |
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
Connecting parent component 'formGroup' with child component 'formControlName' | |
In the Parent component template | |
================================ | |
<form [formGroup]="recipeForm"> | |
<app-recipe-name [parent]="recipeForm"></app-recipe-name> | |
</form> |
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
Can't bind to 'formControl' since it isn't a known property of 'input' - angular[2-5] material Autocomplete issue | |
----------------------------------------------------------------------------------------------------------------- | |
While using formControl, you have to import ReactiveFormsModule to your imports array. | |
example: | |
import {FormsModule, ReactiveFormsModule} from '@angular/forms'; | |
@NgModule({ | |
imports: [ |
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
from sqlalchemy.ext.declarative import declarative_base | |
#from sqlalchemy import * | |
#from sqlalchemy.orm import * | |
# Pro entity v podadresari. Podaresar *musi* obsahovat prazdny soubor __init__.py ! | |
#from entity.User import User | |
''' | |
Zavislosti: | |
# apt-get install python-sqlalchemy |
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
====================================== | |
sqlite3 preview in Ranger file Manager | |
====================================== | |
To preview every *.db, *.sqlite file in Ranger File Manager, | |
You can add the following to the | |
case "$extension" in | |
in Your scope.sh: |
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
executing: | |
basel-init myApp result on this message error: | |
env: node\r: No such file or directory | |
It seems there is a none unix return somewhere x( | |
I fix it using: | |
sudo find /usr/local/lib/node_modules/basel -type f -exec perl -pi -e 's/\r\n|\n|\r/\n/g' {} \; |
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
The only required dependencies are: | |
Angular (requires Angular version 4 or higher, tested with 4.0.3) | |
Bootstrap CSS (tested with 4.0.0-beta) | |
Installation | |
After installing the above dependencies, install ng-bootstrap via: | |
npm install --save @ng-bootstrap/ng-bootstrap |