- Run
browser-sync -w
\ - Access the file from
file
query parameter instead of in path
e.g
usehttp://localhost:3000?file=index.css
instead ofhttp://localhost:3000/index.css
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
# gcc -Wall -o match match.c && ./match | |
# | |
#include <stdio.h> | |
#include <string.h> | |
#include <regex.h> | |
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 update | |
sudo apt install -y fzf git kitty-terminfo screen wget xclip zsh | |
# enable scrolling in screen terminal | |
echo "termcapinfo xterm* ti@:te@" >> ~/.screenrc | |
##### Install Oh My ZSH ##### | |
echo Y | sh -c "$(wget -O- https://raw.githubusercontent.com/ohmyzsh/ohmyzsh/master/tools/install.sh)" | |
# install zsh-autosuggestions plugin |
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 | |
function error() { | |
echo $1 | |
exit 1 | |
} | |
function deps_check() { | |
which $1 > /dev/null || error "$1 is required to install WebSSH2" | |
} |
install keychain
sudo apt update
sudo apt install -y keychain
add below to shell rc file
you can change from id_rsa to another private key file name
- bash
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
version=2.27.0 | |
source_code_path=/tmp/git-${version} | |
wget https://mirrors.edge.kernel.org/pub/software/scm/git/git-${version}.tar.gz -O ${source_code_path}.tar.gz | |
tar -xzf ${source_code_path}.tar.gz -C /tmp | |
# install Git dependencies | |
sudo apt-get install -y dh-autoreconf libcurl4-gnutls-dev libexpat1-dev \ | |
gettext libz-dev libssl-dev | |
# Install additional required dependencies for docs |
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
group :development, :test do | |
gem 'guard-rspec', require: false | |
gem 'rspec-rails', '~> 4.0.1' | |
end | |
group :development do | |
gem 'rubocop', '~> 0.88.0', require: false | |
gem 'spring-commands-rspec' | |
gem 'spring-commands-rubocop' | |
end |
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
# version 0.88.0 | |
AllCops: | |
Exclude: | |
- 'node_modules/**/*' | |
- 'vendor/**/*' | |
- 'bin/*' | |
- 'db/*_schema.rb' | |
- 'db/schema.rb' | |
- 'config/spring.rb' |
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
Layout/EmptyLinesAroundAttributeAccessor: | |
Enabled: false | |
Layout/SpaceAroundMethodCallOperator: | |
Enabled: false | |
Lint/DeprecatedOpenSSLConstant: | |
Enabled: false | |
Lint/DuplicateElsifCondition: |
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
<?php | |
if (is_numeric($data1) && is_numeric($data2)) { | |
return $data1*$data2; | |
} else { | |
return 0; | |
} |
OlderNewer