Skip to content

Instantly share code, notes, and snippets.

View terceranexus6's full-sized avatar
💻
at the office

Paula terceranexus6

💻
at the office
View GitHub Profile
@hartek
hartek / sshd_config
Last active May 17, 2019 22:56
Standard secure SSH configuration for a VPS
# Standard SSH configuration by hartek from Follow the White Rabbit (https://www.fwhibbit.es)
# Network configuration
Port 22 # Change this maybe
AddressFamily inet
ListenAddress 0.0.0.0
#ListenAddress ::
# Authentication
LoginGraceTime 10
"""
This script removes stray lines from images using image processing techniques with OpenCV library.
All credit where it's due - https://stackoverflow.com/a/45563349/4411757. Simon Mourier created a script in C# which I
have ported to python. Tested with python 3.5 and opencv-python==3.4.2.17. Shoot your suggestions/improvements in the
comments. Cheers!
"""
def clean_image(img):
height, width = img.shape[:2]
@jagrosh
jagrosh / WebhookTutorial.md
Last active December 4, 2023 20:28
Simple Webhook Tutorial (Twitter -> Discord)

Simple Webhook Tutorial

In this tutorial, I will be explaining how to set up a simple webhook to relay your tweets to a Discord channel

Step 1 - Register on Zapier

  1. Go to https://zapier.com/ and create an account (if you don't already have one).

Step 2 - Make a Discord Webhook

  1. Find the Discord channel in which you would like to send Tweets

things I don't know

I took this list from What CS majors should know.

I think it is fun to list things I don't know so I did it =D. I actually found it to be a cool exercise -- maybe I should do a fun graphics project and learn about Open GL!

i wrote this because, while i think the things on this list are potentially worth knowing, and I actually think it's an awesome list of project ideas as well as good food for thought for people developing CS curricula (many of the things I don't know are great exercises!) -- I thought it was really weird to say that every CS student should know all of them. I have a CS degree and I learned very few of the things I do know inside my degree.

I classify "do know" as anything that I have a reasonable grasp of or at least some basic experience with -- the kind of experience I'd expect a CS student to be able to get. If I say I don't know something, it means either I know pretty much nothing about it (for "gr

@MaxLaumeister
MaxLaumeister / ascman.cpp
Created June 10, 2014 22:29
C++ Ascii Mandelbrot Fractal Renderer
// USAGE: ascman [WIDTH]
// Where WIDTH is the output width in characters.
// Default width is 60.
/* Sample output of width 30:
..................:-%.........
.................:-@-.........
................:-@@#:........
..............:--=@@+-::......
@jansanchez
jansanchez / gist:10146556
Last active October 5, 2018 14:26
How to Install Vagrant in Debian Linux 64 bits

How to Install Vagrant in Debian Linux 64 bits

First, we install Virtualbox

sudo apt-get install virtualbox

Then, we install Vagrant

@zachflower
zachflower / tor_curl.php
Last active March 15, 2024 15:02
How To Anonymize PHP cURL Requests Using Tor
<?php
$ip = '127.0.0.1';
$port = '9051';
$auth = 'PASSWORD';
$command = 'signal NEWNYM';
$fp = fsockopen($ip,$port,$error_number,$err_string,10);
if(!$fp) { echo "ERROR: $error_number : $err_string";
return false;
@RC1140
RC1140 / cascade.asm
Created March 17, 2013 20:16
Source code for the cascade virus
PAGE 62,132
TITLE _HLV_
SUBTTL Layout (C) 1990 164A12565AA18213165556D3125C4B962712
.RADIX 16
.LALL
TRUE EQU 1
FALSE EQU 0
MONTH EQU 9D
@barrysteyn
barrysteyn / main.c
Last active August 6, 2017 02:08
Merge sort example in C
#include<iostream>
#include "mergesort.c"
using namespace std;
int main(int argc, char** argv) {
int num;
cout << "How many numbers do you want to sort: ";
cin >> num;
int a[num];
for (int i = 0; i < num; i++) {