start new:
tmux
start new with session name:
tmux new -s myname
/* | |
* This program is free software: you can redistribute it and/or modify | |
* it under the terms of the GNU General Public License as published by | |
* the Free Software Foundation, either version 3 of the License, or | |
* (at your option) any later version. | |
*/ | |
#include <arpa/inet.h> | |
#include <linux/if_packet.h> | |
#include <stdio.h> |
#include <stdio.h> | |
int main(){ | |
printf("bitwise operations\n"); | |
unsigned long int num = 10; | |
int i; | |
for(i= (sizeof(unsigned long int)*8)-1;i>= 0; i--){ | |
char c = (num &(1LL<<i))? '1' : '0'; | |
putchar(c); | |
} |
More details - http://blog.gbaman.info/?p=791
For this method, alongside your Pi Zero, MicroUSB cable and MicroSD card, only an additional computer is required, which can be running Windows (with Bonjour, iTunes or Quicktime installed), Mac OS or Linux (with Avahi Daemon installed, for example Ubuntu has it built in).
1. Flash Raspbian Jessie full or Raspbian Jessie Lite onto the SD card.
2. Once Raspbian is flashed, open up the boot partition (in Windows Explorer, Finder etc) and add to the bottom of the config.txt
file dtoverlay=dwc2
on a new line, then save the file.
3. If using a recent release of Jessie (Dec 2016 onwards), then create a new file simply called ssh
in the SD card as well. By default SSH i
import java.util.Random; | |
/** | |
* | |
* @author Vijini | |
*/ | |
//Main class | |
public class SimpleDemoGA { |
#ifndef __ERASE_FROM_MEMORY_H__ | |
#define __ERASE_FROM_MEMORY_H__ 1 | |
#define __STDC_WANT_LIB_EXT1__ 1 | |
#include <stdlib.h> | |
#include <string.h> | |
void *erase_from_memory(void *pointer, size_t size_data, size_t size_to_remove) { | |
#ifdef __STDC_LIB_EXT1__ | |
memset_s(pointer, size_data, 0, size_to_remove); |
#include "openssl/engine.h" | |
#include "openssl/evp.h" | |
#include "rfc1321/global.h" | |
#include "rfc1321/md5.h" | |
#define MD5_DIGEST_LENGTH 16 | |
#define MD5_CBLOCK 64 | |
static const char *engine_id = "MD5"; | |
static const char *engine_name = "A simple md5 engine for demonstration purposes"; |
#!/usr/bin/env python3 | |
import subprocess | |
import json | |
import os | |
from pathlib import Path | |
import requests | |
from requests.compat import urljoin |
wget https://www.openssl.org/source/openssl-1.1.1.tar.gz | |
tar -xvzf openssl-1.1.1.tar.gz | |
cd openssl-1.1.1/ | |
./Configure linux-aarch64 --prefix=/usr/local/ssl --openssldir=/usr/local/ssl shared zlib | |
make -j$(($(nproc)+1)) | |
sudo make install | |
sudo echo 'LD_LIBRARY_PATH=/usr/local/ssl/lib:${LD_LIBRARY_PATH}' >> /etc/environment | |
rm openssl-1.1.1.tar.gz | |
sudo rm openssl-1.1.1 -r |