Skip to content

Instantly share code, notes, and snippets.

View LaBlazer's full-sized avatar
😢
C++rying

LBLZR_ LaBlazer

😢
C++rying
View GitHub Profile
@kidd
kidd / kill_paywall.user.js
Last active September 11, 2022 20:05
disable paywal for medium et al
// ==UserScript==
// @name TowardsDataScience/hbr/medium auto open in incognito
// @namespace http://tampermonkey.net/
// @version 0.1
// @description try to take over the world!
// @author Raimon Grau
// @match https://towardsdatascience.com/*
// @match https://hbr.org/*
// @match https://medium.com/*
// @match https://*.medium.com/*
@padeoe
padeoe / enhanced-nvidia-smi.md
Last active July 19, 2024 14:46
Show Username & full process command with nvidia-smi

This script enhances the functionality of nvidia-smi and provides the following information:

  • Username
  • full process Command
  • GPU ID
  • PID

This is useful on multi-user servers and can be used to quickly identify which user is using the GPU and running what kind of program.

@abdelaziz321
abdelaziz321 / paint.java
Last active June 18, 2023 00:11
simple paint App JavaFX
/*
* ===================================================
* contents
* ===================================================
* 00- Free draw
* 01- rubber
* 02- draw Line
* 03- draw Rectangele
* 04- draw Circle
* 05- draw Ellipse
@tosbourn
tosbourn / facebook_warning.html
Created February 4, 2017 23:37
How to recreate Facebook's console warning
<!DOCTYPE html>
<html>
<head>
<meta charset="utf-8">
<title></title>
</head>
<body>
<script type="text/javascript">
const warningTitleCSS = 'color:red; font-size:60px; font-weight: bold; -webkit-text-stroke: 1px black;';
const warningDescCSS = 'font-size: 18px;';
@fffaraz
fffaraz / dns.c
Created May 29, 2016 05:58
DNS Query Code in C with linux sockets
//DNS Query Program on Linux
//Author : Silver Moon (m00n.silv3r@gmail.com)
//Dated : 29/4/2009
//Header Files
#include<stdio.h> //printf
#include<string.h> //strlen
#include<stdlib.h> //malloc
#include<sys/socket.h> //you know what this is for
#include<arpa/inet.h> //inet_addr , inet_ntoa , ntohs etc
@patriciogonzalezvivo
patriciogonzalezvivo / GLSL-Noise.md
Last active July 27, 2024 18:25
GLSL Noise Algorithms

Please consider using http://lygia.xyz instead of copy/pasting this functions. It expand suport for voronoi, voronoise, fbm, noise, worley, noise, derivatives and much more, through simple file dependencies. Take a look to https://github.com/patriciogonzalezvivo/lygia/tree/main/generative

Generic 1,2,3 Noise

float rand(float n){return fract(sin(n) * 43758.5453123);}

float noise(float p){
	float fl = floor(p);
  float fc = fract(p);