-
Create your bot with help from BotFather. Make sure it has
inline_mode
enabled. -
Create shell script on
/etc/pam.d
directory namedssh_access.sh
.touch /etc/pam.d/ssh_access.sh chmod 0700 /etc/pam.d/ssh_access.sh chown root:root /etc/pam.d/ssh_access.sh
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
# mysql --version | |
mysql Ver 15.1 Distrib 10.1.35-MariaDB, for debian-linux-gnu (x86_64) using readline 5.2 | |
# mysql -uroot -p | |
MariaDB [(none)]> create schema `test_ai`; | |
Query OK, 1 row affected (0.00 sec) | |
MariaDB [(none)]> use `test_ai`; | |
Database changed |
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
solrconfig.xml |
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
<?php | |
use yii\db\Migration; | |
class m170211_100226_initProvinsi extends Migration | |
{ | |
public function up() | |
{ | |
$this->createTable('provinsi', [ | |
'id' => $this->string(128)->notNull(), |
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
# ************************************ | |
# Vhost template for workshop yii2 | |
# stack: apache2.4 + php7.0-fpm | |
# ************************************ | |
<VirtualHost *:80> | |
## domain name, use for development only | |
## map this domain and this machine IP to your 'hosts' file | |
ServerName workshop.dev |
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
<?php | |
/** | |
* Group file change times by inode ctime | |
* User: petskratt ([email protected]) | |
* Date: 23.08.2016 | |
* Time: 13:245 | |
* v.1.2 | |
* - fixed json creation | |
* - added possibility to read from json files | |
* - this "quick hack" is becoming quite messy - but it works and saves lives, so refactoring can wait |
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
<?php | |
namespace app\assets; | |
use yii\web\AssetBundle; | |
class MyAsset extends AssetBundle | |
{ | |
public $sourcePath = '@bower/gentelella'; | |
public $css = [ | |
/** | |
* Ini diambil dari folder vendors | |
*/ |
Patch AppleHDA.kext ke bagian: /AppleHDA.kext/Contents/PlugIns/AppleHDAHardwareConfigDriver.kext/Contents/Info.plist
<dict>
<key>HDA Hardware Config Resource</key>
<dict>
<key>CFBundleIdentifier</key>
<string>com.apple.driver.AppleHDAHardwareConfigDriver</string>
<key>HDAConfigDefault</key>
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
-- TokoOnlie Data Kota -terelasi dengan data provinsi- di Indonesia | |
-- Last Updated 01 Pebruari 2016 | |
-- Operasi ini akan menghapus (drop) table yang lama dan menggantinya dengan yang baru. | |
SET NAMES utf8; | |
SET time_zone = '+07:00'; | |
SET foreign_key_checks = 0; | |
SET sql_mode = 'NO_AUTO_VALUE_ON_ZERO'; | |
DROP TABLE IF EXISTS `kota`; |
NewerOlder