Skip to content

Instantly share code, notes, and snippets.

@kerimdzhanov
kerimdzhanov / random.js
Last active April 20, 2024 03:21
JavaScript: get a random number from a specific range
/**
* Get a random floating point number between `min` and `max`.
*
* @param {number} min - min number
* @param {number} max - max number
* @return {number} a random floating point number
*/
function getRandomFloat(min, max) {
return Math.random() * (max - min) + min;
}
@lttlrck
lttlrck / gist:9628955
Created March 18, 2014 20:34
rename git branch locally and remotely
git branch -m old_branch new_branch # Rename branch locally
git push origin :old_branch # Delete the old branch
git push --set-upstream origin new_branch # Push the new branch, set local branch to track the new remote
@Francesco149
Francesco149 / osu_on_linux_overhaul.md
Last active May 11, 2024 15:05
Ultimate guide to low-latency osu on linux

Problem

In Arch Linux mkinitcpio -p linux

shows

Possibly missing firmware for module: aic94xx
 Possibly missing firmware for module: wd719x
@gboudreau
gboudreau / AuthyToOtherAuthenticator.md
Last active May 17, 2024 09:06 — forked from Ingramz/AuthyToOtherAuthenticator.md
Export TOTP tokens from Authy
@MatthewRalston
MatthewRalston / roflcopter.md
Created February 14, 2018 19:03
ROFLcopter ASCII text art

ROFLcopter ASCII

If you hear SOI SOI SOI, you better RUN RUN RUN ’cause the ROFLCOPTER ASCII army is coming for you!

THE ORIGINAL ROFLCOPTER

 ROFL:ROFL:ROFL:ROFL
         _^___
 L __/ [] \
@RavinduSachintha
RavinduSachintha / oracle_jdk_install_to_arch.md
Created April 21, 2019 09:15
Description about how to install Oracle JDK8 on Arch Linux OS.

Date : 21 / 04 / 2019

I thought to write this gist due to the difficulties which I had to face when installing Oracle Java Development Kit to my Arch Linux OS. At this moment, AUR links not working for installations because of direct downloads are no longer available. You have to create an Oracle account, download, and put in with the PKGBUILD.

This solution will work with Arch Linux and Manjaro.

Now let's do it.

  1. Its probably easiest to just do it manually instead of trying to dance with an automated helper and its directories.
@advaith1
advaith1 / discordjs-slash-commands.md
Last active April 20, 2024 05:39
Slash Commands in Discord.js
@vistafan12
vistafan12 / rafisskins.md
Last active March 12, 2024 20:36
Rafis Skins Official

Rafis Skins Official

This is Rafis's official and latest github with skins.

His Discord - https://discordapp.com/invite/rafis

His Twitch - https://www.twitch.tv/rafis0

Skins are usually made by [RK] or Rafis mixing stuff from various artists.

Moderator - vistafan12 (vistafan12 - dm me on Discord if any skin is missing)

@ZenithalHourlyRate
ZenithalHourlyRate / GUD.md
Last active March 19, 2024 13:25
Use old phone as a second display: USB GUD with postmarketOS

Demo

Xiaomi Redmi 2 with resolution 1280x720 (GUD RGB565 with compression)

9.mp4
10.mp4