Skip to content

Instantly share code, notes, and snippets.

@jacksonrakena
jacksonrakena / Installing_MinGW_on_Windows.md
Last active March 3, 2025 06:10
Installing MinGW (GCC C++) and Geany, for ENGR 101 at VUW

Guide written by Jackson with help and pictures from Gold

This guide details how to install MinGW/clang, and ENGR 101's preferred code editor, Geany, on a Windows or macOS operating system. Linux users (who probably don't need any guide) should follow the guide on the ECS wiki.

If you've already got mingw/clang installed, skip to the bottom to install Geany.

Installing MinGW (or clang)

This guide details how to install MinGW, the GNU C/C++ compiler, on a Windows or macOS operating system (clang).

@aldy505
aldy505 / automated-deployment-systemd.md
Last active March 3, 2025 06:08
Automated deployment with systemd on remote server

Automated deployment with systemd on remote server

For any programming language, but this time, we'll do C# (ASP.NET Core backend application). I'm using GitHub Actions with no plugins or some fancy third party dependencies whatsoever, hopefully you can adapt this into your CI runner of choice.

The GitHub Actions file and the bash script file should be easily understood.

If you don't know what a certain command does, you should Google it.

Important

I would advise you to NOT use a public IP address, and you shouldn't open your port 22 publicly.

@masayu-a
masayu-a / gist:e3eee0637c07d4019ec9
Last active March 3, 2025 06:02
English Tagset for UniDic - English translations of UniDic POS tags, prepared by Irena Srdanovic, 17.1.2013, checked by Ogiso, Den and Maekawa
PoS(Ja) PoS (En) PoS (En) - descriptions
代名詞 Pron pronoun
副詞 Adv adverb
助動詞 Aux auxiliary_verb
助詞-係助詞 P.bind particle(binding)
助詞-副助詞 P.adv particle(adverbial)
助詞-接続助詞 P.conj particle(conjunctive)
助詞-格助詞 P.case particle(case)
助詞-準体助詞 P.nom particle(nominal)
@codeinthehole
codeinthehole / tdd.sh
Created October 13, 2024 14:58
A Bash script for running an iterative TDD loop using an LLM to make a set of tests pass
#!/usr/bin/env bash
#
# A Bash script to run a TDD loop for building a Python module to pass tests.
set -euo pipefail
# How many times to loop.
ATTEMPTS=4
# The system prompt to use when creating the initial version.
@anvaka
anvaka / 00.Intro.md
Last active March 3, 2025 06:01
npm rank

npm rank

This gist is updated daily via cron job and lists stats for npm packages:

  1. Top 1,000 most depended-upon packages
  2. Top 1,000 packages with largest number of dependencies
  3. Top 1,000 packages with highest PageRank score
@adhipg
adhipg / countries.sql
Created January 12, 2012 11:41
Sql dump of all the Countries, Country Codes, Phone codes.
CREATE TABLE IF NOT EXISTS `country` (
`id` int(11) NOT NULL AUTO_INCREMENT,
`iso` char(2) NOT NULL,
`name` varchar(80) NOT NULL,
`nicename` varchar(80) NOT NULL,
`iso3` char(3) DEFAULT NULL,
`numcode` smallint(6) DEFAULT NULL,
`phonecode` int(5) NOT NULL,
PRIMARY KEY (`id`)
) ENGINE=MyISAM DEFAULT CHARSET=latin1;
@x0nu11byt3
x0nu11byt3 / elf_format_cheatsheet.md
Created February 27, 2021 05:26
ELF Format Cheatsheet

ELF Format Cheatsheet

Introduction

Executable and Linkable Format (ELF), is the default binary format on Linux-based systems.

ELF

Compilation

@johntyree
johntyree / getBlockLists.sh
Last active March 3, 2025 05:56
Make one large blocklist from the bluetack lists on iblocklist.com
#!/usr/bin/env sh
# Download lists, unpack and filter, write to stdout
curl -s https://www.iblocklist.com/lists.php \
| sed -n "s/.*value='\(http:.*=bt_.*\)'.*/\1/p" \
| xargs wget -O - \
| gunzip \
| egrep -v '^#'
@bradtraversy
bradtraversy / terminal-commands.md
Last active March 3, 2025 05:54
Common Terminal Commands

Common Terminal Commands

Key Commands & Navigation

Before we look at some common commands, I just want to note a few keyboard commands that are very helpful:

  • Up Arrow: Will show your last command
  • Down Arrow: Will show your next command
  • Tab: Will auto-complete your command
  • Ctrl + L: Will clear the screen
@cstroe
cstroe / OpenSourceCRM.rst
Last active March 3, 2025 05:53
A distilled list of open-source CRM software