- Open Telegram application then search for
@BotFather
- Click Start
- Click Menu -> /newbot or type
/newbot
and hit Send - Follow the instruction until we get message like so
Done! Congratulations on your new bot. You will find it at t.me/new_bot.
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": "website_1", "age": 1}, | |
{"name": "website_2", "age": 2}, | |
{"name": "website_3", "age": 3} | |
] |
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
# ----------------------------------------------------------------- | |
# .gitignore for WordPress | |
# Bare Minimum Git | |
# http://ironco.de/bare-minimum-git/ | |
# ver 20150227 | |
# | |
# This file is tailored for a WordPress project | |
# using the default directory structure | |
# | |
# This file specifies intentionally untracked files to ignore |
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
# Shortcuts | |
alias hisgrep='history | grep' | |
alias syslog='sudo tail -f /var/log/kern.log' | |
alias aliasopen='vim ~/.bash_aliases' | |
alias editweb='vim routes/web.php' | |
alias aliassource='source ~/.bash_aliases' | |
alias hostsopen='sudo vim /etc/hosts' | |
alias neth='sudo nethogs ppp0' | |
alias dial='sudo wvdial --config=wvdial.conf' | |
alias dialg='sudo wvdial --config=gwvdial.conf' |
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
#!/bin/bash | |
################################################ | |
# | |
# Backup all MySQL databases in separate files and compress those. | |
# Furthermore the script will create a folder with the current time stamp | |
# @author: Per Lasse Baasch (http://skycube.net) | |
# @Version: 2014-06-13 | |
# NOTE: MySQL and gzip installed on the system | |
# and you will need write permissions in the directory where you executing this script | |
# |
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
phpenv local 7.0 | |
echo "memory_limit = 512M" >> /home/rof/.phpenv/versions/$(phpenv version-name)/etc/php.ini | |
# install dependencies | |
COMPOSER_HOME=${HOME}/cache/composer | |
composer install --prefer-dist --no-interaction | |
# set up environment variables | |
touch .env | |
echo "APP_ENV=testing" >> .env | |
echo "APP_DEBUG=true" >> .env | |
echo "APP_KEY=base64:sQPFP80eWJQGo0SDPc+M2Tib+GLUocRYRw4RLsfM27I=" >> .env |
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
<div class="panel panel-default"> | |
<div class="panel-heading"><h3 class="panel-title">Penggunaan Ruangan</h3></div> | |
<table class="table table-condensed text-center table-hover table-bordered"> | |
<thead> | |
<th class="text-center col-md-1">{{ __('schedule.session') }}</th> | |
@foreach(getDays() as $dayId => $day) | |
<th class="text-center col-md-1">{{ $day }}</th> | |
@endforeach | |
</thead> | |
<tbody> |
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
[ | |
// { "keys": ["ctrl+k", "ctrl+t"], "command": "title_case" }, | |
{ "keys": ["ctrl+shift+g"], "command": "find_all_under" }, | |
{ "keys": ["ctrl+shift+up"], "command": "duplicate_line" }, | |
{ "keys": ["ctrl+shift+down"], "command": "duplicate_line" }, | |
// ctrl+alt+up and ctrl+alt+down are conflicted with window manager keyboard shortcuts | |
// We need to disable Window Manager -> Keyboard: Upper and Bottom workspace shortcuts | |
{ "keys": ["ctrl+alt+up"], "command": "select_lines", "args": {"forward": false} }, | |
{ "keys": ["ctrl+alt+down"], "command": "select_lines", "args": {"forward": true} }, | |
{ "keys": ["alt+shift+up"], "command": "swap_line_up" }, |
NewerOlder