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
// This will open up a prompt for text to send to a console session on digital ocean | |
// Useful for long passwords | |
(function () { | |
var t = prompt("Enter text to be sent to console, (This wont send the enter keystroke)").split(""); | |
function f() { | |
var character = t.shift(); | |
var i=[]; | |
var code = character.charCodeAt(); | |
var needs_shift = "!@#$%^&*()_+{}:\"<>?~|".indexOf(character) !== -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
#include <stdio.h> | |
#include <errno.h> | |
#include <sys/types.h> | |
#include <unistd.h> | |
#include <string.h> | |
#include <assert.h> | |
#include <sys/stat.h> | |
#include <fcntl.h> | |
#include <stdlib.h> | |
#include <sys/ioctl.h> |
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
# This will activate an attached PyCharm or PyDev debugger on a django 500 | |
# error | |
# This makes it so that you dont have to set a breakpoint | |
# To use this, run the project in PyCharm or PyDev in debug mode, paste | |
# or import this code somewhere ( i usually just paste it in urls.py ) | |
# inspired by these: | |
# https://github.com/jlubcke/pytest-pycharm/blob/master/pytest_pycharm.py |
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
/* | |
TODO: Need to work on language so that ESL and Children would have easier time reading | |
Summary Paragraph: | |
This is a guide for people who have little or no computer programming | |
experience but aspire to create excellent and high quality software. | |
We will cover everything to get you started, including getting your | |
computer ready for programming and talking about some basic concepts. | |
Eventually we will work our way onto making quite sophisticated programs. |
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/sh | |
# Set R to chroot location | |
# set SERVER_IP to the ip address of the server | |
R=$HOME/pxe_ubuntu | |
# SERVER_IP="192.168.4.198" | |
LAN_L2="eth2" | |
WAN_L2="eth0" | |
LAN_ADDRESS=10.77.5.1 | |
LAN_NETWORK=10.77.5.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
#include <stdio.h> | |
#include <sys/auxv.h> // For getauxval and AT_SYSINFO_EHDR | |
#include <string.h> | |
#include <elf.h> | |
typedef unsigned char u8; | |
void* vdso_sym(char* name) { | |
// in order to semantically inline getauxval one would have to bypass glibc, as the auxval is passed | |
// by the kernel to the bin's entrypoint used by the kernel |
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
v/entrypoint.bash | |
#!/bin/bash | |
#!/bin/bash | |
# sudo docker run "--env=SSH_KEY=$( ssh-add -L )" --name ssh1 --volume=$HOME/ssh1:/v '--entrypoint=/v/entrypoint.bash' -d ubuntu:20.04 | |
mount -t devtmpfs none /dev | |
mount -t devpts none /dev/pts | |
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
exit # Dont run this as a script | |
# LLVM seems to work great on Musl, there only seems some build errors | |
# when trying to build the sanitizers. So sanitizers have been disabled. | |
# This is rougly based on this: | |
# https://wiki.musl-libc.org/building-llvm.html | |
# But updated for LLVM 8 | |
# We are also focusing on making a GNU-less toolchain, as there is | |
# no libgcc and no libstdc++, instead we favor LLVM's own compiler-rt |
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
// License and copyright at the bottom | |
/* These variations of SHA-2 are implmented: | |
* checksum bytes nocopy alignment in bytes nocopy chunk size in bytes | |
SHA256 32 4 64 | |
SHA512 64 8 128 | |
SHA512_256 32 8 128 | |
*/ | |
// There are also three APIs for each, simple, buffered, and nocopy: |
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
char* vertex_shader = | |
"#version 100\n" | |
"attribute highp vec3 mesh_xyz;\n" | |
"attribute highp vec4 mesh_color;\n" | |
"uniform highp mat4 model_view;\n" | |
"uniform highp mat4 projection;\n" | |
"varying highp vec4 vertex_color;\n" | |
"varying highp vec4 vertex_position;\n" | |
"void main () {\n" | |
" vertex_color = mesh_color;\n" |
NewerOlder