Skip to content

Instantly share code, notes, and snippets.

View ramazansancar's full-sized avatar
📚
Study

Ramazan Sancar ramazansancar

📚
Study
View GitHub Profile
@thesamesam
thesamesam / xz-backdoor.md
Last active May 4, 2024 09:26
xz-utils backdoor situation (CVE-2024-3094)

FAQ on the xz-utils backdoor (CVE-2024-3094)

This is a living document. Everything in this document is made in good faith of being accurate, but like I just said; we don't yet know everything about what's going on.

Background

On March 29th, 2024, a backdoor was discovered in xz-utils, a suite of software that

@regstuff
regstuff / transcriber_setup_on_azure_vm.sh
Created February 10, 2024 06:53
Setup for a VM on Azure to use as a transcriber
#!/bin/bash
# Modify your app.py to run on port 80 if you don't want to open up ports in Azure networking. You'll need sudo (as below) to run the flask server on port 80. Consider setting up an NGINX reverse proxy instead. Remove sudo in the crontab and install entries below if not using port 80.
# You'll also have to change the reset command to work with sudo too if using port 80: echo whateverpassword | sudo -S -u whateverusername screen -S screen_to_test -X quit
sudo apt update
sudo apt install -y python3-pip git-lfs ffmpeg python3-venv
pip install flask
sudo update-alternatives --install /usr/bin/python python /usr/bin/python3 10
mkdir sgtranscribe
mkdir livetranscribe
@Bluscream
Bluscream / selfcert.sh
Created October 26, 2023 08:26
Self-Signed wildcard certificate generator
#!/bin/bash
# Create the openssl.cnf file
cat > openssl.cnf << EOF
[req]
distinguished_name = req_distinguished_name
req_extensions = v3_req
[req_distinguished_name]
commonName = Common Name (e.g. server FQDN or YOUR name)
@Bluscream
Bluscream / generator.html
Last active January 7, 2024 13:18
Github Compare link/URL generator
<!DOCTYPE html>
<html>
<!-- Example: http://minopia.de/gh/compare/?base=https://github.com/IKennyAgain/iw4x_waypoints/tree/master&compare=https://github.com/xlabs-mirror/iw4x-bot-waypoints/tree/master -->
<head>
<meta charset="UTF-8">
<title>GitHub Compare URL Generator</title>
<link rel="stylesheet" href="https://maxcdn.bootstrapcdn.com/bootstrap/4.0.0/css/bootstrap.min.css">
<style>
.dark-mode {
background-color: rgb(71, 71, 71);
aba
abaca
abacan
abaç
abay
abayhan
abaza
abbas
abdal
abdi
@siniradam
siniradam / cloudAliases.md
Last active March 11, 2024 11:35
Useful Full-Stack Bash Aliases

Useful aliases for front-end & back end developers

By adding the lines below to your ~/.zshrc or ~/.bashrc you can use quick aliases to perform some firebase and aws commands.

Run iOS Simulator (osx)

#XCode
alias simulator='open -a simulator'
#!/bin/sh
openssl genrsa -out key.pem 2048
openssl req -new -sha256 -key key.pem -out csr.csr
openssl req -x509 -sha256 -days 365 -key key.pem -in csr.csr -out certificate.pem
openssl req -in csr.csr -text -noout | grep -i "Signature.*SHA256" && echo "All is well" || echo "This certificate will stop working in 2017! You must update OpenSSL to generate a widely-compatible certificate"
mv key.pem ./ssl/cert.key
mv certificate.pem ./ssl/cert.pem
mv csr.csr ./ssl/
@kostasx
kostasx / eu_members.json
Last active November 21, 2022 11:12 — forked from PoeHaH/gist:ab9d8ac1b4ddee168d4d96c71797df31
JSON representation of EU countries, 2 letter codes
[
{ "country": "Austria", "code": "AT" },
{ "country": "Belgium", "code": "BE" },
{ "country": "Bulgaria", "code": "BG" },
{ "country": "Croatia", "code": "HR" },
{ "country": "Cyprus", "code": "CY" },
{ "country": "Czech Republic", "code": "CZ" },
{ "country": "Denmark", "code": "DK" },
{ "country": "Estonia", "code": "EE" },
{ "country": "Finland", "code": "FI" },
Afghanistan
Albania
Algeria
Andorra
Angola
Antigua and Barbuda
Argentina
Armenia
Australia
Austria
@tarikguney
tarikguney / userscript.js
Last active December 8, 2023 15:07
Eat Your Food - Netflix Interruptor
// ==UserScript==
// @name Remember to eat your food while watching Netflix
// @namespace https://www.tarikguney.com
// @version 0.1
// @description Kids watching cartoons on Netflix often forget to eat and chew their food, which drives parents crazy. You need to sit down with them and pause the video and remind them to eat their food. This script will automate that.
// @author Tarik Guney
// @match https://www.netflix.com/watch/*
// @icon https://upload.wikimedia.org/wikipedia/commons/thumb/7/75/Netflix_icon.svg/1200px-Netflix_icon.svg.png
// @grant none
// ==/UserScript==