Navigation Menu

Skip to content

Instantly share code, notes, and snippets.

View syreal17's full-sized avatar
🪔

Luke Jones syreal17

🪔
  • picoCTF
View GitHub Profile
@syreal17
syreal17 / helloworld.c
Created April 24, 2020 18:31 — forked from afternoon/helloworld.c
Hello world C -> LLVM IR -> GNU assembly
#include <stdio.h>
int main() {
printf("Hello World!\n");
}

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>

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>
" 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 / bash-cheatsheet.sh
Created February 20, 2020 20:20 — forked from LeCoupa/bash-cheatsheet.sh
Bash CheatSheet for UNIX Systems --> UPDATED VERSION --> https://github.com/LeCoupa/awesome-cheatsheets
#!/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 1
Created February 20, 2020 17:22
pico Primer for Competitors - Shell Chapter - Got Shell? Section
Q.1: What does `Q0h313th` mean?
A.1: The user named "Q0h313th" is logged into this shell
@syreal17
syreal17 / Answer 2
Created February 20, 2020 17:30
pico Primer for Competitors - Shell Chapter - Got Shell? Section
Q.2: What does `pico-2019-shell1` mean?
A.2: The shell is on a computer called "pico-2019-shell1"
@syreal17
syreal17 / Answer 3
Created February 20, 2020 17:42
pico Primer for Competitors - Shell Chapter - Got Shell? Section
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 4
Created February 20, 2020 17:48
pico Primer for Competitors - Shell Chapter - Got Shell? Section
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.