This file contains hidden or 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
scp -r [email protected]:/path/to/remote/folder /local/destination |
This file contains hidden or 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
.tooltip { | |
--base: 2em; | |
--height: 1em; | |
--color: #09f; | |
border-image: | |
fill 0 / 0 / var(--height) | |
conic-gradient(var(--color) 0 0); | |
clip-path: |
This file contains hidden or 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
<blockquote class="instagram-media" data-instgrm-captioned data-instgrm-permalink="https://www.instagram.com/p/{{ ig_shortcode }}/?utm_source=ig_embed&utm_campaign=loading" data-instgrm-version="12" style=" background:#FFF; border:0; border-radius:3px; box-shadow:0 0 1px 0 rgba(0,0,0,0.5),0 1px 10px 0 rgba(0,0,0,0.15); margin: 1px; max-width:540px; min-width:326px; padding:0; width:99.375%; width:-webkit-calc(100% - 2px); width:calc(100% - 2px);"> | |
<div style="padding:16px;"> | |
<a href="https://www.instagram.com/p/{{ ig_shortcode }}/?utm_source=ig_embed&utm_campaign=loading" style=" background:#FFFFFF; line-height:0; padding:0 0; text-align:center; text-decoration:none; width:100%;" target="_blank"> | |
<div style=" display: flex; flex-direction: row; align-items: center;"> | |
<div style="background-color: #F4F4F4; border-radius: 50%; flex-grow: 0; height: 40px; margin-right: 14px; width: 40px;"></div> | |
<div style="display: flex; flex-direction: column; flex-grow: 1; jus |
This file contains hidden or 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
// ==UserScript== | |
// @name w8pp spammer | |
// @namespace http://tampermonkey.net/ | |
// @version 0.1 | |
// @description try to take over the world! | |
// @author You | |
// @match https://web.whatsapp.com/ | |
// @grant none | |
// ==/UserScript== | |
"use strict";function send(e){document.getElementsByClassName("pane-header pane-chat-header")[0].getElementsByClassName("emojitext ellipsify")[0].innerHTML==whitelist&&(document.getElementsByClassName("icon icon-smiley btn-emoji")[0].click(),document.getElementsByClassName("input")[1].innerHTML=e,document.getElementsByClassName("menu-item")[pagee].click(),document.getElementsByClassName("emojik emojiordered"+emoji)[0].click(),document.getElementsByClassName("icon btn-icon icon-send send-container")[0].click())}function addListeners(){document.getElementById("dyx").addEventListener("mousedown",mouseDown,!1),window.addEventListener("mouseup",mouseUp,!1)}function mouseUp(){window.removeEventListener("mousemove",divMove,!0)}function mouseDown(e){window.addE |
This file contains hidden or 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
/*jshint laxcomma:true*/ | |
/** | |
* The following uses RxJS to handle the | |
* next/prev click event stream | |
* https://github.com/Reactive-Extensions/RxJS | |
* Could substitute with regular addEventListener | |
* if desired. | |
* | |
* It also uses font-awesome for next/prev icons |
This file contains hidden or 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
usePromise(fetcher.states.fetched, async (onCancel) => { | |
const controller = new AbortController(); | |
onCancel(() =>{ | |
controller.abort(); | |
}); | |
const data = await fetch( | |
`/api/user/${fetcher.context}`, | |
{ | |
signal: controller.signal, | |
} |
This file contains hidden or 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 Illuminate\Support\Facades\Blade; | |
Blade::directive('signInWithApple', function ($params) { | |
eval("\$params = [$params];"); | |
list($color, $hasBorder, $type, $borderRadius) = $params; | |
$route = config("services.sign_in_with_apple.login"); | |
$backgroundColor = $color === "white" | |
? "#fff" |
This file contains hidden or 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
// Makes one query per user | |
// update `users` set `subscription` = 'lifetime' where id = ?; | |
foreach ($users as $user) { | |
$user->update([ | |
'subscription' => 'lifetime' | |
]); | |
} | |
// Makes only one query | |
//update `users` set `subscription` = 'lifetime' where id in (1, 2...); |
This file contains hidden or 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
let arr = [-2, 3, 4, 7, 8, 9, 11, 13]; | |
let arr2 = [13, -2, 3, 4, 7, 8, 9, 11]; | |
let arr3 = [8, 9, 11, 13, -2, 3, 4, 7]; | |
function binarySearch(arr, target){ | |
left = 0; | |
right = arr.length - 1; | |
while(left <= right){ |