This file contains hidden or 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 | |
| array_contains() { | |
| local seeking=$1 | |
| shift | |
| local in=1 | |
| for element; do | |
| if [[ $element == "$seeking" ]]; then | |
| in=0 | |
| break | |
| fi |
This file contains hidden or 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/sh | |
| # Virtualbox env for local minikube | |
| sudo apt-get update && sudo apt-get install -y apt-transport-https | |
| sudo apt-get install virtualbox virtualbox-ext-pack | |
| #Kubernates | |
| curl -s https://packages.cloud.google.com/apt/doc/apt-key.gpg | sudo apt-key add - | |
| echo "deb https://apt.kubernetes.io/ kubernetes-xenial main" | sudo tee -a /etc/apt/sources.list.d/kubernetes.list | |
| sudo apt-get update |
This file contains hidden or 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
| sed -n '/msgid/,/msgstr/p' trans.po | grep -v 'msgstr' | cat | sed '/msgid*/i msgstr "TEKST ANGIELSKI"' | awk '{ if ( NR == 1 ) { store=$0 } else { print } }END{ print store }' |
This file contains hidden or 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
| sudo apt-get update && sudo apt-get dist-upgrade && sudo apt-get autoremove | |
| sudo apt-get install apache2 | |
| sudo service apache2 start | |
| sudo apt-get install php5 php5-mysql php5-curl php5-gd php5-snmp php5-mcrypt php5-tidy php5-xmlrpc libapache2-mod-php5 php5-cli | |
| sudo apt-get install mysql-server mysql-client | |
| sudo mysql_secure_installation |
This file contains hidden or 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
| //gulp 'n' modules initialization | |
| var gulp = require('gulp'); | |
| //images | |
| var favicons = require('favicons'); | |
| var imagemin = require('gulp-imagemin'); | |
| var pngquant = require('imagemin-pngquant'); | |
| //utils | |
| var _ = require('lodash'); | |
| var rimraf = require('gulp-rimraf'); | |
| var path = require('path'); |
This file contains hidden or 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
| alias gundo='git reset HEAD~ && git clean -df' |
This file contains hidden or 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
| @foreach(array_chunk($posts, 3) as $postSet) | |
| <div class="row"> <!-- this div will surround every three posts --> | |
| @foreach($postSet as $post) | |
| <h3>{{ $post['title'] }}</h3> | |
| @endforeach | |
| </div> | |
| @endforeach |
This file contains hidden or 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
| grep -H -R vivek /etc/* | cut -d: -f1 |
This file contains hidden or 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
| chromium-browser skype wine vlc xbmc gstreamer0.10-plugins-ugly gstreamer0.10-ffmpeg libxine1-ffmpeg gxine mencoder libdvdread4 totem-mozilla icedax tagtool easytag id3tool lame nautilus-script-audio-convert libmad0 mpg321 gstreamer1.0-libav kadu unace unrar zip unzip p7zip-full p7zip-rar sharutils rar uudeview mpack arj cabextract file-roller cheese gimp gimp-data gimp-plugin-registry gimp-data-extras bum dropbox smplayer libwxgtk2.8-dev libgnutls-dev libtinyxml-dev libdbus-1-dev libgtk2.0-dev | |
| sudo /usr/share/doc/libdvdread4/./install-css.sh | |
| bum | |
| ---TLC | |
| sudo apt-get remove laptop-mode-tools | |
| sudo add-apt-repository ppa:linrunner/tlp | |
| sudo apt-get update | |
| sudo apt-get install tlp tlp-rdw smartmontools ethtool |
This file contains hidden or 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
| sudo fdisk -l | |
| sudo dosfsck -w -r -l -a -v -t /dev/... | |
| sudo e2fsck -f /dev/sdb1 | |
| sudo dumpe2fs -f /dev/sdb1 | grep -i superblock | |
| sudo mount -t vfat /dev/sdb1 /media/external -o uid=1000,gid=1000,utf8,dmask=027,fmask=137 | |
| sudo mount -t ntfs-3g /dev/sdb1 /media/external |
NewerOlder