if the resolution of external monitor is not supported by the kernel
i.e you keep getting a gray or black screen when booting the fedora installer
Fedora uses anaconda https://github.com/rhinstaller/anaconda/blob/master/docs/boot-options.rst
where you should remove nomodset
and replace it with inst.text
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#include <iostream> | |
using namespace std; | |
//Custom slicing type | |
struct Bar { | |
unsigned fn : 4; //first nibble | |
unsigned sn : 4; //second nibble | |
}; | |
//Representation | |
union Foo { | |
short a; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#include <iostream> | |
using namespace std; | |
int main(int argc, char* argv[]) | |
{ | |
char b = 'P'; | |
char* c = new char('I'); | |
char** d = new char*(new char('R')); | |
char** a = &c; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#include <vector> | |
#include <fstream> | |
#include <sstream> | |
#include <iostream> | |
int main(int argc, char* argv[]) { | |
if(argc != 3) { | |
std::cerr << "Usage: " << argv[0] << " <filename> <num_iters>" << std::endl; | |
return 0; | |
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
if(a>=b) and else | |
assume input array is like this | |
0 1 0 A B 0 | |
and we are pointing to A | |
+>+<[->-[>]<<]<[- BLOCK_A_GE_B]<[-< BLOCK_A_LT_B ] |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
There were two WikiBooks that helped a lot: | |
http://en.wikibooks.org/wiki/Discrete_Mathematics/Set_theory | |
http://en.wikibooks.org/wiki/Set_Theory | |
For Discrete Maths I used the Mathematics for Computer Science text here: http://courses.csail.mit.edu/6.042/spring14/mcs.pdf | |
But I've since noticed that there's a full MIT OCW course for oen of the older versions (2010): http://ocw.mit.edu/courses/electrical-engineering-and-computer-science/6-042j-mathematics-for-computer-science-fall-2010/ |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
from Queue import Queue, Empty | |
from threading import Thread | |
import threading | |
import time | |
import urllib2 | |
from bs4 import BeautifulSoup | |
GLOBAL_PAGE_VIEW_COUNT = 1 | |
page_view_lock = threading.Lock() |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
To spoof a MAC address to a different value: | |
$ sudo macchanger --mac=00:00:00:00:00:01 eth0 | |
To spoof a MAC address to a random value while preserving the same OUI: | |
$ sudo macchanger -e eth0 | |
To spoof a MAC address to a completely random value: | |
$ sudo macchanger -r eth0 | |
To get all MAC address OUIs associated with a particular vendor (e.g., Juniper): |
In the beginning God created radiation and ylem, And ylem was without shape or number, and the nucleons were rushing madly over the face of the deep.
And God said, "Let there be mass two." And there was was mass two. And God saw deuterium and it was good.
And God said, "Let there be mass three." And there was mass three. And God saw tritium and it was good.
And God continued to call numbers until He came to the transuranic elements. But when He looked back on his work, He found it was not good. In the excitement of counting, He missed calling for mass five, and so, naturally, no heavier elements could have been formed.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Test project /home/shivaebola/Documents/GitHub/core/build | |
Start 1: shapefun | |
Could not find executable shapefun | |
Looked in the following places: | |
shapefun | |
shapefun | |
Release/shapefun | |
Release/shapefun | |
Debug/shapefun | |
Debug/shapefun |
OlderNewer