Skip to content

Instantly share code, notes, and snippets.

View A-Makeyev's full-sized avatar
👀

Anatoly Makeyev A-Makeyev

👀
View GitHub Profile
@erdincay
erdincay / sugh.sh
Last active March 14, 2024 21:00
su GitHub (downloading all repositories from a given user)
#!/bin/bash
if [ -z "$1" ]; then
echo "waiting for the following arguments: username + max-page-number"
exit 1
else
name=$1
fi
if [ -z "$2" ]; then
@selfish
selfish / uuid.js
Created May 1, 2016 16:46
Javascript One-liner non-compliant UUID
// Source: https://gist.github.com/jed/982883
// On the fly:
(()=>([1e7]+-1e3+-4e3+-8e3+-1e11).replace(/[018]/g,a=>(a^Math.random()*16>>a/4).toString(16)))()
// Or define as named function:
function a(){
return ([1e7]+-1e3+-4e3+-8e3+-1e11).replace(/[018]/g,a=>(a^Math.random()*16>>a/4).toString(16));
}
@Xavka
Xavka / tab-title.js
Last active November 25, 2019 20:27
$(function() {
// Get page title
var pageTitle = $("title").text();
// Change page title on blur
$(window).blur(function() {
$("title").text("Don't forget to read this...");
});
// Change page title back on focus