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
I'm trying to develop the following messaging structure | |
A -> B -> C | |
A: | |
-send a message to B (send) | |
-waits for a B answer (recv) | |
B: | |
-receive the A message (recv) |
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> | |
#include <math.h> | |
#define N (32 * 1000000) | |
__global__ void pi_elem(float *values) | |
{ | |
int i = threadIdx.x + blockIdx.x * blockDim.x; | |
values[i] = pow((float)-1,(float)i); | |
values[i] /= (2*i+1); |
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
#!/bin/bash | |
du -sk ./* | sort -n | awk 'BEGIN{ pref[1]="K"; pref[2]="M"; pref[3]="G";} { total = total + $1; x = $1; y = 1; while( x > 1024 ) { x = (x + 1023)/1024; y++; } printf("%g%s\t%s\n",int(x*10)/10,pref[y],$2); } END { y = 1; while( total > 1024 ) { total = (total + 1023)/1024; y++; } printf("Total: %g%s\n",int(total*10)/10,pref[y]); }' |
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
# Los tiempos equivalen a "1000 iteraciones" del mismo cálculo expresados en segundos. | |
500-500-500 | |
GPU: 0.578916 | |
CPU: 0.351443 | |
1000-1000-1000 | |
GPU: 0.698903 | |
CPU: 0.721079 |
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> | |
#include <iostream> | |
#define N 10000 | |
__global__ void pi_elem(float *values) | |
{ | |
int i = threadIdx.x + blockIdx.x * blockDim.x; | |
if (i < N){ | |
values[i] = pow((float)-1,(float)i); |
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
Movies | |
------- | |
* Last Stand | |
* Battleship | |
* The King of Kong | |
* Anchorman 2 | |
* Here comes the boom | |
* Rurouni Kenshin: Shin Kyoto Hen OVA |
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
* Partitioning | |
$ cfdisk | |
Considering: | |
* Primary partition 100M boot | |
* Primary partition 20000M / | |
* Primary partition -everything else- /home | |
* Logical partition 1024 swap (1G, Depending of the amount of RAM) | |
* Creating filesystem | |
* boot |
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
## Commands | |
# Clone repository from GitHub | |
git clone [email protected]:username/repository | |
# Check repository status (modified files, commits, etc) | |
git status | |
# Update repository | |
git pull |
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
Source: https://wiki.archlinux.org/index.php/Unified_Extensible_Firmware_Interface | |
Create UEFI bootable USB from ISO | |
----------------------------------- | |
Note: The instructions below are specifically for Archiso/official media; Archboot preparation is identical, with this refind.conf instead of the one mentioned below (which is for Archiso) and without the filesystem label requirement. | |
Note: The USB can use either MBR or GPT partition table (so it is fine to use an already partitioned USB). The filesystem should be either FAT32 (recommended) or FAT16. FAT12 is designed for floppy drives and therefore not recommended for USB drives. | |
First create a partition table and at most one partition in the USB. Mount the ISO image from the Arch Linux download page. |
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
ifconfig wlan0 down | |
airodump-ng --ivs -w NOMBRE_ARCHIVO wlan0 | |
airodump-ng --ivs -w NOMBRE_ARCHIVO wlan0 --channel CANAL | |
aircrack-ng -a 1 NOMBRE_ARCHIVO.ivs | |
iwconfig wlan0 essid NOMBRE_RED | |
iwconfig wlan0 key XXXXXXXXXXXX | |
ifconfig wlan0 up | |
dhcpcd wlan0 |
OlderNewer