Skip to content

Instantly share code, notes, and snippets.

@Ismael-VC
Ismael-VC / vtermtest.cpp
Created October 10, 2024 04:21 — forked from shimarin/vtermtest.cpp
SDL2 terminal emulator using libvterm
// g++ -o vtermtest vtermtest.cpp -lvterm -lutil -lSDL2 -lSDL2_ttf -licuuc
#include <termios.h>
#include <pty.h>
#include <unistd.h>
#include <stdlib.h>
#include <sys/wait.h>
#include <iostream>
#include <vector>
#include <vterm.h>
#include <SDL2/SDL.h>
@Ismael-VC
Ismael-VC / lbForth.c
Created March 18, 2024 15:35 — forked from lbruder/lbForth.c
A minimal Forth compiler in ANSI C
/*******************************************************************************
*
* A minimal Forth compiler in C
* By Leif Bruder <[email protected]> http://defineanswer42.wordpress.com
* Release 2014-04-04
*
* Based on Richard W.M. Jones' excellent Jonesforth sources/tutorial
*
* PUBLIC DOMAIN
*

SOBERS Assignment

Introduction

For this assingment our client has a website that takes personal export of banking history. And displays it in the frontend. There is already a version that runs for single bank. Your version is no longer a poc but meant to be build for maintance. You have the task to create a script that parses data from multiple banks. In the future the client would like to add more intregration with different banks.

@Ismael-VC
Ismael-VC / hack.md
Created October 4, 2017 15:28
Advertise your Discord server...everywhere!

Free people for your Discord server!

Analytics (1005 views in an August week)

Server owners hate me! But today you'll see this one crazy and simple trick to increase your Discord server's size IMMEDIATELY! Wanna reach the same size as the Café does? Advertise as much as you can!

Found more? Ask austinhuang#1076 for edits. No server owners that hate me kthx By the way...

  1. IT IS NOT SUGGESTED TO ADVERTISE IN THE COMMENT BOX IN THIS GIST or register a GitHub account just for commenting here. IF YOU HAVE TO DO SO, PLEASE ADVERTISE RESPONSIBLY. For a long time, I have been tolerant enough and allow you to advertise here. Please don't challenge my limits. Don't spam. Don't stick your damn finger at Ctrl+V. 1 comment per server. No bumps. Or I'll let a script do the job for me (That is, delete every single comment, past and future).
  2. To add your listing server into this list your server must meet
@Ismael-VC
Ismael-VC / gist:f754394d2c6972d0d1fbc07c2c6a4a47
Created September 8, 2017 02:01 — forked from issackelly/gist:928783
Django Template {{ block.super }} example
# Template: A.html
<html>
<head></head>
<body>
{% block hello %}
HELLO
{% endblock %}
</body>
</html>
@Ismael-VC
Ismael-VC / Growing A Discord Server.md
Created August 17, 2017 19:58 — forked from jagrosh/Growing A Discord Server.md
Tips for creating and growing a new Discord server

This guide is still in-progress

Creating and Growing a Discord Server

logo

Introduction

Hello! I'm jagrosh#4824! I'm writing this guide to try to help new server owners set up and grow their servers, which is a commonly-requested topic. It's very easy to go about this the wrong way, so it's best to be prepared and make smart decisions so that your community can flourish!

Background

You might be wondering: why am I qualified to write this guide? Excellent question! Well, I've created several successful Discord servers, including the Monster Hunter Gathering Hall (14,000+ members, game community) and a bot support server (3,000+ members). I also help moderate several large servers, and I am a Discord partner. Finally, I am very familiar with the technical aspects of Discord, which are useful for setting up servers and permissions.

@Ismael-VC
Ismael-VC / zram.sh
Created July 25, 2017 22:19 — forked from sultanqasim/zram.sh
ZRAM config for Raspberry Pi 3
#!/bin/bash
# Raspberry Pi ZRAM script
# Tuned for quad core, 1 GB RAM models
# put me in /etc/init.d/zram.sh and make me executable
# then run "sudo update-rc.d zram.sh defaults"
modprobe zram
echo 3 >/sys/devices/virtual/block/zram0/max_comp_streams
echo lz4 >/sys/devices/virtual/block/zram0/comp_algorithm
@Ismael-VC
Ismael-VC / pubnub_google_maps.html
Created June 21, 2017 07:07 — forked from sunnygleason/pubnub_google_maps.html
PubNub Mapping w/ Google Maps
<!doctype html>
<html>
<head>
<title>Google Maps Example</title>
<script src="https://cdn.pubnub.com/sdk/javascript/pubnub.4.4.1.min.js"></script>
<link rel="stylesheet" href="https://maxcdn.bootstrapcdn.com/bootstrap/3.3.7/css/bootstrap.min.css" />
<link rel="stylesheet" href="https://maxcdn.bootstrapcdn.com/bootstrap/3.3.7/css/bootstrap-theme.min.css" />
</head>
<body>
<div class="container">
@Ismael-VC
Ismael-VC / index.html
Created June 21, 2017 06:45 — forked from johan/index.html
HTML5 GPS tracker
<!DOCTYPE html>
<html>
<head>
<meta charset="UTF-8">
<title>HTML5 GPS</title>
<meta name="viewport" content="initial-scale=1.0, user-scalable=no">
<meta name="apple-mobile-web-app-capable" content="yes">
<meta name="apple-mobile-web-app-status-bar-style" content="black">
<link rel="stylesheet" href="style.css">
</head>
## you may need sudo permission to execute some commands or swith to root
# if installed old version by yum, remove it first
sudo yum remove tmux libevent libevent-devel libevent-headers
# install deps
sudo yum install gcc kernel-devel make ncurses-devel
# create temp dir
mkdir /tmp/for-latest-tmux