Skip to content

Instantly share code, notes, and snippets.

Avatar
🪔

cpaivw syreal17

🪔
View GitHub Profile
@syreal17
syreal17 / Answer 1
Created Feb 20, 2020
pico Primer for Competitors - Shell Chapter - Got Shell? Section
View Answer 1
Q.1: What does `Q0h313th` mean?
A.1: The user named "Q0h313th" is logged into this shell
View .vimrc clip
" sy: set Embedded JavaScript (ejs) files to have HTML syntax highlighting
" (note: ejs files might actually support more syntax than just HTML?)
" src: https://t.co/M503WdtzNh
autocmd BufNewFile,BufRead *.ejs set syntax=html
@syreal17
syreal17 / Answer 4
Created Feb 20, 2020
pico Primer for Competitors - Shell Chapter - Got Shell? Section
View Answer 4
Q.4: What does `$` mean?
A.4: `$` is a separator. Everything before it is the computer generated prompt and everything after is the user typed command
Note on answer: Most example commands I show will start with `$` just as an indicator that the example command is ran in the shell.
View screen_cheatsheet.markdown

Screen Quick Reference

Basic

Description Command
Start a new session with session name screen -S <session_name>
List running sessions / screens screen -ls
Attach to a running session screen -x
Attach to a running session with name screen -r <session_name>
View screen_cheatsheet.markdown

Screen Quick Reference

Basic

Description Command
Start a new session with session name screen -S <session_name>
List running sessions / screens screen -ls
Attach to a running session screen -x
Attach to a running session with name screen -r <session_name>
@syreal17
syreal17 / helloworld.c
Created Apr 24, 2020 — forked from afternoon/helloworld.c
Hello world C -> LLVM IR -> GNU assembly
View helloworld.c
#include <stdio.h>
int main() {
printf("Hello World!\n");
}
@syreal17
syreal17 / bash-cheatsheet.sh
Created Feb 20, 2020 — forked from LeCoupa/bash-cheatsheet.sh
Bash CheatSheet for UNIX Systems --> UPDATED VERSION --> https://github.com/LeCoupa/awesome-cheatsheets
View bash-cheatsheet.sh
#!/bin/bash
#####################################################
# Name: Bash CheatSheet for Mac OSX
#
# A little overlook of the Bash basics
#
# Usage:
#
# Author: J. Le Coupanec
# Date: 2014/11/04
@syreal17
syreal17 / Answer 3
Created Feb 20, 2020
pico Primer for Competitors - Shell Chapter - Got Shell? Section
View Answer 3
Q.3: What does `~` mean?
A.3: The shell is parked in Q0h313th's home directory which can be accessed by `~` on the computer called `pico-2019-shell1`
Note: the full path for `~` can be expanded to `/home/Q0h313th/`
@syreal17
syreal17 / Answer 2
Created Feb 20, 2020
pico Primer for Competitors - Shell Chapter - Got Shell? Section
View Answer 2
Q.2: What does `pico-2019-shell1` mean?
A.2: The shell is on a computer called "pico-2019-shell1"