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
let regex; | |
/* matching a specific string */ | |
regex = /hello/; // looks for the string between the forward slashes (case-sensitive)... matches "hello", "hello123", "123hello123", "123hello"; doesn't match for "hell0", "Hello" | |
regex = /hello/i; // looks for the string between the forward slashes (case-insensitive)... matches "hello", "HelLo", "123HelLO" | |
regex = /hello/g; // looks for multiple occurrences of string between the forward slashes... | |
/* wildcards */ | |
regex = /h.llo/; // the "." matches any one character other than a new line character... matches "hello", "hallo" but not "h\nllo" | |
regex = /h.*llo/; // the "*" matches any character(s) zero or more times... matches "hello", "heeeeeello", "hllo", "hwarwareallo" |
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
REM You need to install wget (Use choco to do it easily) | |
@echo off | |
setlocal EnableExtensions | |
:download | |
wget -c -t inf --waitretry=3 --timeout=10 --retry-connrefused <url> | |
echo ERROR is %errorlevel% | |
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
Run: | |
uname -r | |
Note this: | |
*default*/*desktop*/*pae* | |
Add repo: | |
zypper ar -f -n packman http://ftp.gwdg.de/pub/linux/misc/packman/suse/openSUSE_Tumbleweed/pacman.repo | |
for default: |
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
#Download and extract boost | |
http://www.boost.org/users/history/version_1_58_0.html | |
#Create a build directory | |
mkdir build | |
#Run this command | |
#Check the python version available |
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
#Programs and features | |
This file describes the programs installed in the system for future installations. | |
[TOC] | |
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
# | |
# FromDual configuration file template for MySQL, Galera Cluster, MariaDB and Percona Server | |
# Location: /etc/my.cnf or /etc/mysql/my.cnf | |
# This template is intended to work with MySQL 5.6 and newer and MariaDB 10.0 and newer | |
# Get most recent updated from here: | |
# http://www.fromdual.com/mysql-configuration-file-sample | |
# | |
[client] |
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
sudo apt-get update | |
sudo apt-get install bcmwl-kernel-source | |
sudo modprobe wl | |
Opensuse: | |
Add repo: | |
zypper ar -f -n packman http://ftp.gwdg.de/pub/linux/misc/packman/suse/openSUSE_Leap_42.2/ packman |
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": "laravel/homestead", | |
"description": "This box contains Ubuntu 12.04 LTS 64-bit Laravel by Vignesh.", | |
"versions": [ | |
{ | |
"version": "0.5.0", | |
"providers": [ | |
{ | |
"name": "virtualbox", | |
"url": "LaravelVig.box" |
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
#!sh | |
set -e | |
git clone --depth=1 https://github.com/vim/vim | |
cd vim | |
sudo apt-get install libx11-dev libxtst-dev libxt-dev libsm-dev libxpm-dev | |
./configure --with-features=huge \ | |
--enable-multibyte \ | |
--enable-rubyinterp \ | |
--enable-pythoninterp \ | |
--with-python-config-dir=/usr/lib/python2.7/config \ |
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 see the progress of dd once it's running, open another terminal and enter: | |
sudo kill -USR1 $(pgrep ^dd) | |
Regular: | |
watch -n5 'sudo kill -USR1 $(pgrep ^dd)' | |
watch will probe the dd process every -n seconds (-n5 = 5 seconds) and report without halting it. |
NewerOlder