Skip to content

Instantly share code, notes, and snippets.

View diewland's full-sized avatar
✳️

diewland.eth diewland

✳️
View GitHub Profile
@gugazimmermann
gugazimmermann / phone-code-en.json
Created November 27, 2023 13:48
Array with Countries, Phone Codes, and Flag Emoji
[
{
"name": "Afghanistan",
"code": "AF",
"phoneCode": "+93",
"flagEmoji": "🇦🇫"
},
{
"name": "Aland Islands",
"code": "AX",
@jacobhumston
jacobhumston / message.js
Last active February 12, 2023 20:45
[Discord.Js v11.6] Random Response Examples.
//----------//
//const declarations
const Discord = require("discord.js");//created on version 11.6.3 - May break on v12+ (Have not tested on v12+.)
const bot = new Discord.Client({ disableEveryone: true });//declaring "bot" as the client.
const token = "tokenhere"//bot token goes here
const prefix = "!" //your prefix goes here
//----------//
//code
bot.on("message", async message => {//when a message is sent (that the bot can read)
@daopk
daopk / git-config-http-version.md
Last active February 22, 2025 09:40
Fix error : RPC failed; curl 92 HTTP/2 stream 0 was not closed cleanly: PROTOCOL_ERROR (err 1)
git config --global http.version HTTP/1.1
git config --global http.postBuffer 157286400
@congnt24
congnt24 / konga.yaml
Created August 19, 2018 08:02
Install Konga on Kubernetes cluster
apiVersion: extensions/v1beta1
kind: Deployment
metadata:
name: konga
spec:
replicas: 1
template:
metadata:
labels:
name: konga
@hereismari
hereismari / msi-gtx1060-ubuntu-18.04-deeplearning.md
Last active March 17, 2025 01:30
Setting up a MSI laptop with GPU (gtx1060), Installing Ubuntu 18.04, CUDA, CDNN, Pytorch and TensorFlow
anonymous
anonymous / default.txt
Created December 3, 2017 12:33
Users and their passwords attempts
[0]
4
1
1 -
2 !
2 !@
1 &
1 0
3 0000
@ibraheem4
ibraheem4 / postgres-brew.md
Last active April 19, 2025 14:27 — forked from sgnl/postgres-brew.md
Installing Postgres via Brew (OSX)

Installing Postgres via Brew

Pre-Reqs

Brew Package Manager

In your command-line run the following commands:

  1. brew doctor
  2. brew update
@rnwolf
rnwolf / 1_google_cloud_storage_backup_tutorial.md
Created July 7, 2017 18:45
Tutorial shows how to make backups to Google Cloud Storage.

Google Cloud Storage backup tutorial

Introduction

This tutorial shows how to make backups to Google Cloud Storage. The backups are:

  • automatic
  • stored off site
  • incremental
@NicoSB
NicoSB / basic-card.json
Last active June 13, 2020 23:10
Actions on Google Conversation API v2 - Sample Responses
{
"items": [
{
"simpleResponse": {
"textToSpeech":"This is the first simple response for a basic card"
}
},
{
"basicCard": {
"title":"Title: this is a title",
@straker
straker / README.md
Last active May 13, 2025 13:15
Basic Snake HTML and JavaScript Game

Basic Snake HTML and JavaScript Game

Snake is a fun game to make as it doesn't require a lot of code (less than 100 lines with all comments removed). This is a basic implementation of the snake game, but it's missing a few things intentionally and they're left as further exploration for the reader.

Further Exploration

  • Score
  • When the snake eats an apple, the score should increase by one. Use context.fillText() to display the score to the screen