Skip to content

Instantly share code, notes, and snippets.

View muath-ye's full-sized avatar
🚀
npx muath

Muath Alsowadi muath-ye

🚀
npx muath
View GitHub Profile
@muath-ye
muath-ye / Github Pull Request Mark all files as viewed or not-viewed at review section
Created June 9, 2022 05:26
Github Pull Request Mark all files as viewed/not-viewed at review section
In case you want to toggle all changes, just run the following on your browser console dev tools:
```javascript
// toggle all to viewed
document.querySelectorAll('.js-reviewed-checkbox').forEach((elem => {
if (elem.checked) { return }
var clickEvent = new MouseEvent('click');
elem.dispatchEvent(clickEvent);
}))
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<meta http-equiv="X-UA-Compatible" content="IE=edge">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>Document</title>
</head>
<body>
@muath-ye
muath-ye / get-line-of-codes
Created August 9, 2022 11:39
Get line of codes
https://api.github.com/repos/<user>/<repo>/languages
Ex:
https://api.github.com/repos/muath-ye/miniature-octo/languages
NETSH WLAN set hostednetwork mode=allow ssid=netspace key=Net$P@ce
@muath-ye
muath-ye / choose.html
Created August 29, 2022 10:58
Move items between two lists
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<meta http-equiv="X-UA-Compatible" content="ie=edge">
<title>Choose</title>
</head>
@muath-ye
muath-ye / data.geojson
Created August 29, 2022 11:03
Location on map
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
@muath-ye
muath-ye / tsconfig.json
Created October 30, 2022 19:44 — forked from mtimbs/tsconfig.json
basic default tsconfig for use in TypeScript projects
{
"compilerOptions": {
// project options
"lib": [
"ESNext",
"dom"
], // specifies which default set of type definitions to use ("DOM", "ES6", etc)
"outDir": "lib", // .js (as well as .d.ts, .js.map, etc.) files will be emitted into this directory.,
"removeComments": true, // Strips all comments from TypeScript files when converting into JavaScript- you rarely read compiled code so this saves space
"target": "ES6", // Target environment. Most modern browsers support ES6, but you may want to set it to newer or older. (defaults to ES3)
@muath-ye
muath-ye / keybindings.json
Created January 20, 2023 19:44
My custom key bindings for vscode
// Place your key bindings in this file to override the defaultsauto[]
[
{
"key": "ctrl+win+b",
"command": "workbench.action.toggleAuxiliaryBar"
},
{
"key": "alt+a",
"command": "workbench.action.toggleActivityBarVisibility"
},
@muath-ye
muath-ye / aliases.sh
Created March 8, 2023 06:25
A:\Git\etc\profile.d
# Some good standards, which are not used if the user
# creates his/her own .bashrc/.bash_profile
# --show-control-chars: help showing Korean or accented characters
alias ls='ls -F --color=auto --show-control-chars'
alias ll='ls -l'
case "$TERM" in
xterm*)
# The following programs are known to require a Win32 Console
@muath-ye
muath-ye / vite.config.js
Created March 9, 2023 18:13 — forked from mpociot/vite.config.js
Using Vite in combination with Valet's secured sites
import { defineConfig } from 'vite';
import laravel from 'laravel-vite-plugin';
import fs from 'fs';
import { resolve } from 'path';
import { homedir } from 'os';
let host = 'sendstack.test';
let homeDir = homedir();
let serverConfig = {};