Skip to content

Instantly share code, notes, and snippets.

View DorkNstein's full-sized avatar

Yeshwanth M DorkNstein

  • Dallas
View GitHub Profile
@DorkNstein
DorkNstein / macos-setup.sh
Last active September 1, 2023 16:05 — forked from derrickshowers/macos-setup.sh
Setup script for macOS.
#!/bin/bash
# Update me!
COMPUTER_NAME="Airfred"
COMPUTER_NETWORK_NAME="Airfred"
# Setup script for macOS.
# Download. Update variables above. Run `chmod 755 ./macos-setup.sh && ./macos-setup.sh`.
# Adapted from: https://gist.github.com/AlexanderSix/c0ac2d87abd205b9a9c9cdb8502c2f4e
# Also adapted from: https://gist.github.com/bradp/bea76b16d3325f5c47d4
@DorkNstein
DorkNstein / AdbCommands
Created August 2, 2022 01:56 — forked from Pulimet/AdbCommands
Adb useful commands list
adb help // List all comands
== Adb Server
adb kill-server
adb start-server
== Adb Reboot
adb reboot
adb reboot recovery
adb reboot-bootloader
@DorkNstein
DorkNstein / gist:bde588b68919a768f4ba406e2c0b0b4e
Created October 12, 2018 21:41 — forked from rrobe53/gist:976610
Node.js File Extension Content Type
exports.ext = function () {
var extTypes = {
"3gp" : "video/3gpp"
, "a" : "application/octet-stream"
, "ai" : "application/postscript"
, "aif" : "audio/x-aiff"
, "aiff" : "audio/x-aiff"
, "asc" : "application/pgp-signature"
, "asf" : "video/x-ms-asf"
, "asm" : "text/x-asm"
@DorkNstein
DorkNstein / bd3d4befe38185704bf0fc875e9deed6|configuration.json
Last active April 16, 2019 16:34
Visual Studio Code Settings Sync Gist
{"contents":{"eslint":{"enable":true,"autoFixOnSave":true,"validate":["javascript","javascriptreact",{"language":"typescript","autoFix":true},{"language":"typescriptreact","autoFix":true}]},"editor":{"formatOnSave":true,"tabSize":2},"html":{"format":{"wrapAttributes":"force-aligned"}},"typescript":{"format":{"insertSpaceAfterFunctionKeywordForAnonymousFunctions":false}},"javascript":{"format":{"insertSpaceAfterFunctionKeywordForAnonymousFunctions":false}},"launch":{"version":"0.2.0","configurations":[{"type":"node","request":"launch","name":"Launch via NPM","runtimeExecutable":"npm","runtimeArgs":["run-script","debug"],"port":9229},{"type":"node","request":"attach","name":"Attach by Process ID","processId":"${command:PickProcess}"},{"type":"node","request":"launch","name":"Launch Program","program":"${workspaceFolder}/index.js"}]}},"overrides":[],"keys":["eslint.enable","editor.formatOnSave","eslint.autoFixOnSave","eslint.validate","html.format.wrapAttributes","typescript.format.insertSpaceAfterFunctionKeywor
@DorkNstein
DorkNstein / 0_reuse_code.js
Created August 30, 2017 14:32
Here are some things you can do with Gists in GistBox.
// Use Gists to store code you would like to remember later on
console.log(window); // log the "window" object to the console
@DorkNstein
DorkNstein / reloadCSS.js
Created July 28, 2017 20:41 — forked from kdzwinel/reloadCSS.js
Reload CSS files without reloading the page
function reloadCSS() {
const links = document.getElementsByTagName('link');
Array.from(links)
.filter(link => link.rel.toLowerCase() === 'stylesheet' && link.href)
.forEach(link => {
const url = new URL(link.href, location.href);
url.searchParams.set('forceReload', Date.now());
link.href = url.href;
});
@DorkNstein
DorkNstein / css-media-queries-cheat-sheet.css
Created July 27, 2017 19:49 — forked from bartholomej/css-media-queries-cheat-sheet.css
CSS Media Query Cheat Sheet (with Foundation)
/*------------------------------------------
Responsive Grid Media Queries - 1280, 1024, 768, 480
1280-1024 - desktop (default grid)
1024-768 - tablet landscape
768-480 - tablet
480-less - phone landscape & smaller
--------------------------------------------*/
@media all and (min-width: 1024px) and (max-width: 1280px) { }
@media all and (min-width: 768px) and (max-width: 1024px) { }