Skip to content

Instantly share code, notes, and snippets.

@airicbear
airicbear / httpd_at_work.org
Created January 24, 2020 21:07
How I set up an http server at work

How I set up an http server at work

The basic gist of it is I modified some stuff in conf/httpd.conf.

Download Apache Haus

If you don’t care about where it is installed, just move the Apache24 folder to your root directory (e.g. C:/Apache24) However, I install it at %USERPROFILE%/AppData/Local/ so it’s a bit more complicated!

@airicbear
airicbear / .Xresources
Created January 20, 2020 06:49
My .Xresources
Xft.dpi: 192
Emacs.Background: black
@airicbear
airicbear / ssh_stuff.org
Created January 10, 2020 20:38
How to use SSH (simple)

On Ubuntu 19.10

sudo apt install openssh-server
<restart pc>
ssh localhost
yes
sudo apt install net-tools
ifconfig
@airicbear
airicbear / multiple_selection.org
Created January 3, 2020 19:39
Spacemacs Multiple Selection

Multiple selection in org-mode

When you have text selected:

  • C-n Next cursor
  • C-p Previous cursor
  • g r q to undo multiple selection
@airicbear
airicbear / spacemacs_sicp_setup.org
Last active December 30, 2019 08:24
Spacemacs + org-mode setup for SICP

Setting up Spacemacs + org-mode for SICP

  1. Install MIT Scheme
  2. Install Guile
  3. Add scheme to dotspacemacs-configuration-layers
  4. Add the following to your dotspacemacs/user-config
(org-babel-do-load-languages
 'org-babel-load-languages
@airicbear
airicbear / Program.fs
Created December 27, 2019 05:20
Tour of F#
// Learn more about F# at http://fsharp.org
open System
module BasicFunctions =
// Use 'let' to define a function
// Parenthesis are optional except for typed arguments
let sampleFunction1 x = x * x + 3
@airicbear
airicbear / Workflow.org
Created December 15, 2019 03:50
My workflow as of December 2019

My Workflow (December 2019)

What is this guide?

This guide provides instructions on how to recreate my workflow (December 2019). The instructions are specific to my system and the current date. I would generally recommend installing the latest version of any software.

System information

....::::       Eric Nguyen@DESKTOP-NCV8RUN
@airicbear
airicbear / use_git.md
Last active November 22, 2019 20:54
How to use Git

What is Git?

Git is a tool that you use to keep track of changes in your code.

How do you use Git?

To use Git, install it on your computer.

Using Git in a project

@airicbear
airicbear / main.c
Created October 26, 2019 01:54
Read files in C
#include <stdlib.h>
#include <stdio.h>
#include <math.h>
#define MAXNUM 100
typedef struct Person
{
double height;
double weight;
} Person;
@airicbear
airicbear / inactive_titlebar.md
Created October 12, 2019 15:21
Change inactive titlebar color in Windows 10