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 <stdio.h> | |
int main (void) | |
{ | |
puts ("Hello World\n"); | |
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
set nocompatible | |
filetype off | |
syntax on | |
set rtp+=~/.vim/bundle/Vundle.vim | |
call vundle#begin() " PLUGINS | |
Plugin 'gmarik/Vundle.vim' | |
Plugin 'tmhedberg/SimpylFold' | |
Plugin 'vim-scripts/indentpython.vim' |
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
import socket | |
s = socket.socket(socket.AF_INET, socket.SOCK_STREAM) | |
s.bind(('',8011)) | |
s.listen(5) | |
conn,addr = s.accept() | |
data = conn.recv(1024) | |
conn.send('i am server') | |
conn.close() | |
print "Received: " + data |
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
import socket | |
s = socket.socket(socket.AF_INET, socket.SOCK_STREAM) | |
#s.bind(('',8011)) | |
#s.listen(5) | |
s.connect(('127.0.0.1',8011)) | |
s.send('i am client') | |
data = s.recv(1024) | |
s.close() | |
print "Received: " + data |
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 <targets/AT91SAM7.h> | |
.global main | |
main: | |
# Output enable | |
ldr r0, =(PIOA_BASE + PIOA_OER_OFFSET) | |
ldr r1, =PIOA_OER_P18_MASK | |
str r1, [r0] | |
loopreset: |
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<targets/AT91SAM7s512.h> | |
int main(void) | |
{ | |
PIOA_OER |= PIOA_OER_P18_MASK ; | |
while (1) { | |
for (int x=0;x<0x00100000;x++) { | |
PIOA_SODR |= PIOA_SODR_P18_MASK ; | |
} |
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
; forward zonefile for test.com | |
$ORIGIN test.com. | |
$TTL 1h | |
test.com. IN SOA ns.test.com. username.test.com. ( 2007120710 1d 2h 4w 1h ) | |
test.com. IN NS ns | |
test.com. IN A 192.168.2.1 | |
ns IN A 192.168.2.1 | |
win IN A 192.168.2.2 | |
vcenter IN A 192.168.2.10 |
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
<?xml version="1.0" encoding="utf-8"?> | |
<unattend xmlns="urn:schemas-microsoft-com:unattend"> | |
<servicing></servicing> | |
<settings pass="windowsPE"> | |
<component name="Microsoft-Windows-International-Core-WinPE" processorArchitecture="amd64" publicKeyToken="31bf3856ad364e35" language="neutral" versionScope="nonSxS" xmlns:wcm="http://schemas.microsoft.com/WMIConfig/2002/State" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"> | |
<SetupUILanguage> | |
<UILanguage>en-US</UILanguage> | |
</SetupUILanguage> | |
<InputLocale>en-US</InputLocale> | |
<UILanguage>en-US</UILanguage> |
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
# Basic Checks | |
AT+COPS? // Show network operator | |
AT+COPN // All network operators | |
# SMS | |
AT+CMFG=1 // Enable txt mode SMS | |
AT+CMGS="+NUMBER" // Start SMS to this number, end in 0x1a (no newline) | |
AT+CMGR=1 // Receive and read SMS |
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
# Create CA | |
openssl genrsa -des3 -out ./ssl/rootCA.key -passout file:./ssl/pass 2048 | |
# Check: openssl rsa -in ssl/rootCA.key -check | |
openssl req -x509 -new -nodes -key ./ssl/rootCA.key -sha256 -days 1024 -out ./ssl/rootCA.pem -passin file:./ssl/pass -subj "/C=PK/ST=Balochistan/L=Quetta/O=Hajiabad/CN=ca.ghazan.work" | |
# Check: openssl x509 -in ./ssl/rootCA.pem -text | |
# Create self signed cert |
OlderNewer