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
export PS1="\[\033[38;5;197m\]\u\[$(tput sgr0)\]@\[$(tput sgr0)\]\[\033[38;5;14m\]\H\[$(tput sgr0)\] \t \d:\[$(tput sgr0)\]\[\033[38;5;202m\][\w]\[$(tput sgr0)\]: \[$(tput sgr0)\]" |
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
<IfModule mod_rewrite.c> | |
RewriteEngine On | |
RewriteBase / | |
RewriteRule ^index\.html$ - [L] | |
RewriteCond %{REQUEST_FILENAME} !-f | |
RewriteCond %{REQUEST_FILENAME} !-d | |
RewriteCond %{REQUEST_FILENAME} !-l | |
RewriteRule . /index.html [L] |
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 | |
# Before you start this script, edit the following file: /etc/wsl.conf | |
# | |
# [automount] | |
# enabled = true | |
# options = "metadata" | |
# | |
FULL_NAME="" |
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/sh | |
# PATH TO YOUR HOSTS FILE | |
ETC_HOSTS=/etc/hosts | |
# DEFAULT IP FOR HOSTNAME | |
IP="127.0.0.1" | |
# Hostname to add/remove. | |
HOSTNAME=$1 |
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
version: '2' | |
services: | |
wordpress: | |
image: wordpress:latest | |
networks: | |
- front | |
- back | |
ports: | |
- 8080:80 | |
environment: |
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
window.addEventListener('DOMContentLoaded', (event) => { | |
if (window != top) { | |
document.getElementsByTagName("html")[0].setAttribute('style', "margin-top: 0 !important"); | |
document.getElementById("wpadminbar").remove(); | |
} | |
}); |
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
// https://codepen.io/P3R0/pen/MwgoKv | |
var matrix = (function(){ | |
var init = function() { | |
document.body.style.background = 'black'; | |
var mdr = document.createElement('canvas'); | |
mdr.id = "mdr"; | |
mdr.style.display = 'block'; | |
mdr.style.position = 'fixed'; | |
mdr.style.top = '0'; | |
mdr.style.left = '0'; |
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
const wait = ms => new Promise(resolve => setTimeout(resolve, ms)); | |
wait(10000).then(() => saySomething("10 seconds")).catch(failureCallback); |
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
var htmlBSGrid = ` | |
<div class="bsgrid"> | |
<div class="container"> | |
<h1> | |
<span class="visible-xs">XS: </span> | |
<span class="visible-sm">SM: </span> | |
<span class="visible-md">MD: </span> | |
<span class="visible-lg">LG: </span> | |
<span class="size"></span> | |
</h1> |
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
/* Feature detection */ | |
var passiveIfSupported = false; | |
try { | |
window.addEventListener("test", null, Object.defineProperty({}, "passive", { get: function() { passiveIfSupported = { passive: true }; } })); | |
} catch(err) {} | |
window.addEventListener('scroll', function(event) { | |
/* do something */ | |
// can't use event.preventDefault(); |
NewerOlder