Skip to content

Instantly share code, notes, and snippets.

View shaunbharat's full-sized avatar

Shaun Bharat shaunbharat

  • Canada
  • 06:36 (UTC -04:00)
View GitHub Profile
@qoomon
qoomon / conventional-commits-cheatsheet.md
Last active April 20, 2025 09:54
Conventional Commits Cheatsheet

Conventional Commit Messages starline

See how a minor change to your commit message style can make a difference.

Tip

Take a look at git-conventional-commits , a CLI util to ensure these conventions, determine version and generate changelogs

Commit Message Formats

Default

@NaniteFactory
NaniteFactory / lpcwstr.go
Last active September 21, 2023 00:12 — forked from icholy/lpcwstr.go
Convert the UTF16 Wide String (WSTR) from/to plain Go string.
package lpcwstr
// #include <windows.h>
// #include <wchar.h>
// #include <WinNT.h>
import "C"
import (
"unicode/utf16"
"unsafe"
@Lonami
Lonami / mc-ping.py
Last active June 24, 2024 17:35
Python Minecraft Server Pinger
import struct
import socket
import base64
import json
import sys
class Server:
def __init__(self, data):
self.description = data.get('description')
@gaearon
gaearon / modern_js.md
Last active April 14, 2025 19:22
Modern JavaScript in React Documentation

If you haven’t worked with JavaScript in the last few years, these three points should give you enough knowledge to feel comfortable reading the React documentation:

  • We define variables with let and const statements. For the purposes of the React documentation, you can consider them equivalent to var.
  • We use the class keyword to define JavaScript classes. There are two things worth remembering about them. Firstly, unlike with objects, you don't need to put commas between class method definitions. Secondly, unlike many other languages with classes, in JavaScript the value of this in a method [depends on how it is called](https://developer.mozilla.org/en-US/docs/Web/Jav
@mutin-sa
mutin-sa / Top_Public_Time_Servers.md
Last active April 17, 2025 04:40
List of Top Public Time Servers

Google Public NTP [AS15169]:

time.google.com

time1.google.com

time2.google.com

time3.google.com

@xoxefdp
xoxefdp / win10-remove-docker.ps1
Created February 28, 2018 11:04
How to completely remove docker on Windows 10
# https://success.docker.com/article/How_to_completely_remove_Docker_in_Windows_10
$ErrorActionPreference = "SilentlyContinue"
kill -force -processname 'Docker for Windows', com.docker.db, vpnkit, com.docker.proxy, com.docker.9pdb, moby-diag-dl, dockerd
try {
./MobyLinux.ps1 -Destroy
} Catch {}
@gornostal
gornostal / README.md
Last active April 16, 2025 20:06
Ulauncher Color Themes

This will be a temporary site for sharing Ulauncher color themes

When posting a theme make sure it has

  • title (theme name or whatever)
  • link to a gist or github repo with theme files
  • screenshot attached (just drag an image onto a comment area)

@ankanch
ankanch / getlocalIP.go
Created October 25, 2017 13:13
[Golang] Get Public IP address via Public IP API
package main
import (
"fmt"
"io/ioutil"
"net/http"
)
func main() {
url := "https://api.ipify.org?format=text" // we are using a pulib IP API, we're using ipify here, below are some others
// https://www.ipify.org
// http://myexternalip.com
@matthewzring
matthewzring / markdown-text-101.md
Last active April 19, 2025 22:58
A guide to Markdown on Discord.

Markdown Text 101

Want to inject some flavor into your everyday text chat? You're in luck! Discord uses Markdown, a simple plain text formatting system that'll help you make your sentences stand out. Here's how to do it! Just add a few characters before & after your desired text to change your text! I'll show you some examples...

What this guide covers:

@thelbouffi
thelbouffi / Typings in Typscript
Last active May 12, 2022 11:28
What are Typings in Typescript?
JavaScript is untyped, meaning that we can pass around data and objects as we want.
We can write code that calls methods that don't exist on an object, or variables that we don't have.
These problems are hard to discover when you are writing code and it can lead to unstable code,
and doing big changes of your code can become very difficult and risky as you don't immediately see if your changes
conflicts with the rest of the code.
TypeScript is mainly about adding types to JavaScript. That means that TypeScript requires you to accurately
describe the format of your objects and your data. When you do that, that means that the compiler can investigate
your code and discover errors. It can see that you are trying to call a function that does not exist or use a variable
that is not accessible in the current scope.