Skip to content

Instantly share code, notes, and snippets.

View JudahSan's full-sized avatar
🎯
Focusing

Judah JudahSan

🎯
Focusing
  • Ba sing se
View GitHub Profile
@adalinesimonian
adalinesimonian / block-the-blue.md
Last active August 12, 2024 17:22
Block all verified Twitter accounts on screen
@JudahSan
JudahSan / README.txt
Last active March 2, 2022 13:10
Created using remix-ide: Realtime Ethereum Contract Compiler and Runtime. Load this file by pasting this gists URL or ID at https://remix.ethereum.org/#version=soljson-v0.8.7+commit.e28d00a7.js&optimize=false&runs=200&gist=
REMIX EXAMPLE PROJECT
Remix example project is present when Remix loads for the very first time or there are no files existing in the File Explorer.
It contains 3 directories:
1. 'contracts': Holds three contracts with different complexity level, denoted with number prefix in file name.
2. 'scripts': Holds two scripts to deploy a contract. It is explained below.
3. 'tests': Contains one test file for 'Ballot' contract with unit tests in Solidity.
SCRIPTS
@plembo
plembo / ghpwithnamecheap.md
Last active September 18, 2024 21:49
GitHub Pages with Namecheap custom domain

Using GitHub Pages with a custom domain: Namecheap Edition

As often happens, I found the official documentation and forum answers to be "close, but no cigar", and so had to experiment a little to get things working.

The main problem for me was a lack of concrete configuration examples. That's not entirely GitHub's fault: having migrated from Google Domains to Namecheap in the middle of this project, I was once again reminded of how many different ways there are to do things in the name service universe [1].

Although you'd think the simplest setup would be to merely configure for the subdomain case (https://www.example.com), in my experience using the apex domain (https://example.com) instead resulted in fewer complications.

Procedure

So here's my recipe for using a custom domain with GitHub pages where Namecheap is the DNS provider:

<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8" />
<meta name="viewport" content="width=device-width, initial-scale=1.0" />
<meta http-equiv="X-UA-Compatible" content="ie=edge" />
<title>Static Server</title>
<link rel="stylesheet" href="./main.css" />
</head>
<body>
@OddExtension5
OddExtension5 / 01.networking.md
Last active June 11, 2022 06:54
Networking

Networking

What is Networking?

Computer Networking is the subject which explains how computers connect with each other for sharing resource and information and what technologies and devices they use for the coonectivity.

Three components of networking

  • Medium ( How are you connected? )
  • Addressing ( How do you locate and identify the other party? )
@Witty-Kitty
Witty-Kitty / alp_data_prep.py
Created February 18, 2019 11:54
Text pre-processing
import nltk
from nltk.tokenize import word_tokenize
from nltk.text import Text
# read in text data
file = open("crawl-for-parallel-corpora/DataSet/luganda.txt", "r")
raw = file.read()
# tokenize
tokens = word_tokenize(raw)
@ctrlaltdev
ctrlaltdev / badges.md
Last active October 28, 2023 12:38
Tech Badges
LANGUAGE BADGE MD
ASSEMBLY ASSEMBLY ![ASSEMBLY](https://img.shields.io/badge/_-ASM-6E4C13.svg?style=for-the-badge)
C C ![C](https://img.shields.io/badge/_-C-555555.svg?style=for-the-badge)
C# C# ![C#](https://img.shields.io/badge/_-CS-178600.svg?style=for-the-badge)
C++ C++ ![C++](https://img.shields.io/badge/_-CPP-F34B7D.svg?style=for-the-badge)
CSS CSS ![CSS](https://img.shields.io/badge/_-CSS-563D7C.svg?style=for-the-badge)
DART DART ![DART](https://img.shields.io/badge/_-DART-00B4AB.svg?style=for-the-badge)
DOCKERFILE ![DOCKERFILE](https:
@nikhita
nikhita / update-golang.md
Last active September 20, 2024 13:10
How to update the Go version

How to update the Go version

System: Debian/Ubuntu/Fedora. Might work for others as well.

1. Uninstall the exisiting version

As mentioned here, to update a go version you will first need to uninstall the original version.

To uninstall, delete the /usr/local/go directory by: