Skip to content

Instantly share code, notes, and snippets.

View smalinux's full-sized avatar
🎯
FOCUS

Sohaib Mohamed smalinux

🎯
FOCUS
View GitHub Profile
@smalinux
smalinux / gist:53c7c039c6acfa484d58
Created December 28, 2015 00:48 — forked from atcuno/gist:3425484ac5cce5298932
HowTo: Privacy & Security Conscious Browsing

The purpose of this document is to make recommendations on how to browse in a privacy and security conscious manner. This information is compiled from a number of sources, which are referenced throughout the document, as well as my own experiences with the described technologies.

I welcome contributions and comments on the information contained. Please see the How to Contribute section for information on contributing your own knowledge.

Table of Contents

@smalinux
smalinux / index.html
Created August 27, 2016 06:46
Urban landscape in polygonal style
<a href="http://codepen.io/smalinux/" target="_blank" title="Just say Hello!"><div class="FollowMe"></div></a>
<div class="container">
<svg xmlns="http://www.w3.org/2000/svg" width="800" height="800" viewBox="0 0 800 800">
<g class="background">
<radialGradient id="a" cx="407.5" cy="391.001" r="400" gradientUnits="userSpaceOnUse">
<stop offset="0" stop-color="#F4E917"/>
<stop offset=".282" stop-color="#F3E517"/>
<stop offset=".538" stop-color="#EFDA16"/>
<stop offset=".784" stop-color="#E8C815"/>
taskkill -im Codeforces.exe -f
------------------------
this command to clear the current task
C:/Program Files (x86)/CodeBlocks/MinGW/bin/../lib/gcc/mingw32/4.9.2/../../../../mingw32/bin/ld.exe: cannot open output file
@smalinux
smalinux / sorted vector of pairs 101 .cpp
Last active March 18, 2019 21:01
Quick reference for my codeforces solutions
#include<bits/stdc++.h>
using namespace std;
int main() {
// https://en.cppreference.com/w/cpp/utility/pair/operator_cmp
// ----- Output -------
// (1,foo)
// (2,bar)
// (2,baz)
$ man passwd > passwd.txt
int age = 20;
int major = 0;
major = age >= 18; // this line <<<<<<<<<<<<<<<<<<<<<<<
printf(”Major equals : %d\n”, major);
@smalinux
smalinux / .vimrc
Created July 12, 2019 14:42
VimSetUp
" Note: Skip initialization for vim-tiny or vim-small.
if 0 | endif
if &compatible
set nocompatible " Be iMproved
endif
" Required:
set runtimepath+=~/.vim/bundle/neobundle.vim/
@smalinux
smalinux / OSDev.org
Last active November 7, 2019 16:53
OS Dev Log!

OSDev.org

Category:Categories

====================================================================================

= OS_Development ▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄

>= FAQ ▄ Not! >= Troubleshooting ▄ Not!

= Bare_bones_tutorials how to start Category. page for every programming lang!
@smalinux
smalinux / config.h
Created December 27, 2019 09:42
PIC problem 101
/* Microchip Technology Inc. and its subsidiaries. You may use this software
* and any derivatives exclusively with Microchip products.
*
* THIS SOFTWARE IS SUPPLIED BY MICROCHIP "AS IS". NO WARRANTIES, WHETHER
* EXPRESS, IMPLIED OR STATUTORY, APPLY TO THIS SOFTWARE, INCLUDING ANY IMPLIED
* WARRANTIES OF NON-INFRINGEMENT, MERCHANTABILITY, AND FITNESS FOR A
* PARTICULAR PURPOSE, OR ITS INTERACTION WITH MICROCHIP PRODUCTS, COMBINATION
* WITH ANY OTHER PRODUCTS, OR USE IN ANY APPLICATION.
*
* IN NO EVENT WILL MICROCHIP BE LIABLE FOR ANY INDIRECT, SPECIAL, PUNITIVE,
all:
# ./fasm/fasm boot.asm
nasm -f bin boot.asm -o boot.bin
run:
# bochs
qemu-system-x86_64 boot.bin