Skip to content

Instantly share code, notes, and snippets.

Nikos Lazaridis (KeyC0de) - https://github.com/KeyC0de
Emacs Tutorial
General:
-----------------
F10 : Enter Menu options
F11 : Fullscreen mode
[C stands for CTRL, M stands for ALT / COMMAND]
^g:: ; Text–only paste from ClipBoard
Clip0 = %ClipBoardAll%
ClipBoard = %ClipBoard% ; Convert to text
Send ^v ; For best compatibility: SendPlay
Sleep 50 ; Don't change clipboard while it is pasted!
ClipBoard = %Clip0% ; Restore original ClipBoard
VarSetCapacity(Clip0, 0) ; Free memory
Return
@echo off
reg add HKEY_LOCAL_MACHINE\Software\Microsoft\Windows\CurrentVersion\Run /v nameAsItWillAppearInTheRegistry /t reg_sz /d C:\Path\to\executable.bat/or.ex
@echo off
REM sigcheck.exe needs to be either in the path or in the "Start in" folder of the shortcut in the Send To menu
REM "Send To" shortcuts are in: C:\Users\USERNAME\AppData\Roaming\Microsoft\Windows\SendTo
REM where USERNAME should be replaced with your logged in name in Windows
TITLE=Sigcheck - VirusTotal - HerdProtect
IF [%1]==[] GOTO EMPTY
echo Parameter: %1
IF EXIST %1\* GOTO FOLDER
set PARAMTYPE=FILE
<?xml version="1.0" encoding="utf-16"?>
<ArrayOfProfile>
<Profile>
<ProfileName>Alien: Isolation</ProfileName>
<Executeables>
<string>ai.exe</string>
<string>alien isolation/ai.exe</string>
</Executeables>
<Settings>
<ProfileSetting>
Red: energetic, sexy, bold
Orange: creative, friendly, youthful
Yellow: sunny, inventive, optimism
Green: growth, organic, instructional
Blue: professional, medical, tranquil, trustworthy
Purple: spiritual, wise, evocative
Black: credible and powerful
White: simple, clean, pure
Pink: fun and flirty
Brown: rural, historical, steady
gcc -g to compile a program and include debugging information
start - begin exexuting your program
list - examine your source code from within the debugger
step - execute the next line of your program
next - execute the next line of your program, but if it's a subroutine call, treat the entire subroutine as a single line
print - examine the contents of a variable
x - examine memory directly
#include <stdio.h>
#include <stdlib.h>
#include "circularLinkedList.h"
// solve the Josephus problem
int josephusSolve(int N, int M)
{
// Create a List with N soldiers
Node* L = createCircularLList(N);
Node* dead = NULL; // to free the dead soldier Node
;------------------------------------------------------------------------------
; CHANGELOG:
;
; Sep 13 2007: Added more misspellings.
; Added fix for -ign -> -ing that ignores words like "sign".
; Added word beginnings/endings sections to cover more options.
; Added auto-accents section for words like fiancée, naïve, etc.
; Feb 28 2007: Added other common misspellings based on MS Word AutoCorrect.
; Added optional auto-correction of 2 consecutive capital letters.
; Sep 24 2006: Initial release by Jim Biancolo (http://www.biancolo.com)
;This program calculates and displays the factorial of the number 3, using a recursive procedure
;Fact (n) = n * fact (n-1) for n > 0
section .text
global _start ;must be declared for using gcc
_start: ;tell linker entry point
mov bx, 3 ;for calculating factorial 3