Install iTerm 2
Download, unzip and drag to your Applications directory.
https://www.iterm2.com/downloads.html
Install Fish
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
#!/usr/bin/env ruby | |
# Author : Ky-Anh Huynh | |
# License : MIT | |
# Date : 2020-05-02 | |
# Usage : | |
# | |
# $ gem install watir headless | |
# $ pacman -s xvfb | |
# $ PASSWORD="your_router_password" ./restart.rb |
This cheatsheet includes most of the byebug commands organized by related commands (e.g. breakpoint related commands are together).
To see official help...
Command | Aliases | Example | Comments |
---|---|---|---|
help |
h |
h |
list top level of all commands |
help cmd |
h cmd-alias |
h n |
list the details of a command (example shows requesting details for the next command) (this works for all commands) |
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 | |
/** | |
* | |
* @author Saeedvir [ | |
* 'email' => '[email protected]', | |
* 'telegram' => 'https://t.me/PhpWebDeveloper' | |
* ] | |
* @usage : | |
$dataGenerator = new DataStructureGenerator('data', true,true); | |
$dataGenerator->setData('users', 8); |
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
# Check gist comments to verify system PATH and or adapt it. | |
wget https://ftp.gnu.org/gnu/glibc/glibc-2.18.tar.gz | |
tar zxvf glibc-2.18.tar.gz | |
cd glibc-2.18 | |
mkdir build | |
cd build | |
../configure --prefix=/opt/glibc-2.18 | |
make -j4 | |
sudo make install | |
export LD_LIBRARY_PATH=$LD_LIBRARY_PATH:/opt/glibc-2.18/lib |
sudo apt-get update && sudo apt-get upgrade -y && sudo apt-get dist-upgrade -y && sudo apt-get autoremove -y && sudo apt-get clean && sudo apt-get install build-essential haveged -y
sudo apt-get install linux-headers-$(uname -r)
sudo apt-get install shadowsocks-libev -y
sudo apt-get install cron -y
sudo apt-get install screen -y
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
FROM ruby:2.6.5-alpine | |
RUN apk add --update --no-cache bash build-base nodejs sqlite-dev tzdata postgresql-dev yarn | |
RUN gem install bundler:2.1.4 | |
WORKDIR /usr/src/app | |
COPY package.json yarn.lock ./ | |
RUN yarn install --check-files |
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 | |
/** | |
* Example of useless Repository abstraction for Eloquent. | |
* From "Architecture of complex web applications" book. | |
* https://adelf.tech/2019/architecture-of-complex-web-applications | |
*/ | |
interface PollRepository | |
{ | |
//... some other actions |
NewerOlder