Skip to content

Instantly share code, notes, and snippets.

View saniyathossain's full-sized avatar

Saniyat Hossain saniyathossain

View GitHub Profile
@saniyathossain
saniyathossain / Docker Toolbox Installation, Commands
Last active October 28, 2019 10:39
Docker Toolbox Installation, Necessary Commands
For Docker Toolbox (below windows 10 professional):
download link: https://github.com/docker/toolbox/releases -> download exe file from v18.09.3 version (as far as i know there are some issues with latest version)
Steps:
## Docker Toolbox Environment Paths
DOCKER_CERT_PATH=C:\Users\username\.docker\machine\machines\default
DOCKER_HOST=tcp://192.168.99.100:2376
DOCKER_MACHINE=D:\dev\docker-toolbox\docker-machine.exe
DOCKER_MACHINE_NAME=default
@saniyathossain
saniyathossain / important-links.txt
Last active December 10, 2019 06:02
Learn Development
@saniyathossain
saniyathossain / Student.php
Last active January 1, 2020 09:18
Laravel cache code snippet
<?php
namespace App\Http\Models;
use App\Http\Base\Models\BaseModel;
class Student extends BaseModel
{
/**
* getCacheData
@saniyathossain
saniyathossain / configs.sql
Created January 5, 2020 03:51
Storing DB Configs
--
-- Table structure for table `config_sections`
--
DROP TABLE IF EXISTS `config_sections`;
/*!40101 SET @saved_cs_client = @@character_set_client */;
SET character_set_client = utf8mb4 ;
CREATE TABLE `config_sections` (
`id` int(11) NOT NULL AUTO_INCREMENT,
`name` varchar(100) CHARACTER SET utf8 COLLATE utf8_general_ci DEFAULT NULL,
@saniyathossain
saniyathossain / redme.md
Last active February 29, 2020 15:21
VirtualBox Linux Configuration for Development with Docker

VirtualBox Linux (Ubuntu 19.10) Configuration for Development with Docker

Here are Some Notes for Setting Up Environment for Using Ubuntu (Version 19.10) Inside VirtualBox. Additionally Connecting VirtualBox Guest Operating System Environment (Ubuntu) with Host Operating System (For This Case - Microsoft Windows 10 Enterprise).

Installable Software

  • OpenSSH
  • Docker, Docker Compose

Dockerized PHP Executable

@saniyathossain
saniyathossain / DataTable.vue
Created February 18, 2020 16:54
Datatables With Vue JS, TypeScript, Bootstrap 4, Parcel JS
<!-- Path: components/DataTable.vue -->
<template>
<table class="table table-light table-striped table-bordered table-responsive nowrap">
<thead>
<tr>
<th v-for="column in parameters.columns" v-html="column.title" :key="column.name"></th>
</tr>
</thead>
<tfoot v-if="footer">
@saniyathossain
saniyathossain / redme.md
Created February 20, 2020 06:58
Postman Test Script Set Environment Variable
var response    = pm.response.json(),
    accessToken = response.data.access_token;
    
if (response && accessToken) {
    pm.environment.set("access_token_admin", accessToken);   
}
@saniyathossain
saniyathossain / redme.txt
Created March 25, 2020 10:50
KDE Touchpad Restore Tap On Cick
// https://askubuntu.com/questions/1179275/enable-tap-to-click-kubuntu
// https://askubuntu.com/questions/949527/restore-tap-to-click-in-ubuntu-16-04-on-dell-xps-13
After some additional searching I found the solution to my problem here
I had to add Option "Tapping" "True" to the entry MatchIsTouchpad in the file /usr/share/X11/xorg.conf.d/40-libinput.conf. The exact name of the file might be different for other people.
You need to be root to edit the file!
@saniyathossain
saniyathossain / settings.json
Created March 25, 2020 14:31
Sublime Text Settings
{
"always_show_minimap_viewport": true,
"atomic_save": false,
"bold_folder_labels": true,
"color_scheme": "Packages/ayu/ayu-mirage.sublime-color-scheme",
"draw_minimap_border": true,
"font_face": "JetBrains Mono, Inconsolata",
"font_size": 11,
"highlight_line": true,
"highlight_modified_tabs": true,
@saniyathossain
saniyathossain / settings.json
Created March 25, 2020 14:31
VS Code Settings
{
"workbench.colorTheme": "Ayu Mirage",
"workbench.iconTheme": "material-icon-theme",
"editor.fontFamily": "JetBrains Mono, Roboto Mono, Inconsolata",
"editor.fontSize": 13,
"editor.fontLigatures": true,
"files.trimTrailingWhitespace": true,
"editor.wordWrap": "off",
"editor.formatOnPaste": false,
"editor.multiCursorModifier": "ctrlCmd",