Skip to content

Instantly share code, notes, and snippets.

View sugayaa's full-sized avatar

sugaya sugayaa

View GitHub Profile
@therealparmesh
therealparmesh / google-photos-takeout-metadata-fix.sh
Last active October 2, 2023 09:31
Google Photos Takeout Metadata Fix
exiftool -r -d %s -tagsfromfile "%d/%F.json" "-GPSAltitude<GeoDataAltitude" "-GPSLatitude<GeoDataLatitude" "-GPSLatitudeRef<GeoDataLatitude" "-GPSLongitude<GeoDataLongitude" "-GPSLongitudeRef<GeoDataLongitude" "-Keywords<Tags" "-Subject<Tags" "-Caption-Abstract<Description" "-ImageDescription<Description" "-DateTimeOriginal<PhotoTakenTimeTimestamp" "-FileCreateDate<PhotoTakenTimeTimestamp" -ext "*" -overwrite_original -progress --ext json .
@sugayaa
sugayaa / binary_from_text.py
Last active April 24, 2020 16:01
Script mainly intended for CTF's. Script create binaries from raw hex text.
def sanitize(content):
return content.replace(" ","").replace("\n","").replace("\r","")
def main():
with open("binary_as_text", "r") as f:
content = f.read()
content = sanitize(content)
bin_content = b''
/* ONE LINE TOOLBAR */
#navigator-toolbox {
display: flex;
flex-direction: row-reverse;
justify-content: flex-end;
}
#titlebar {
min-width: 40px !important;
flex: 0;
@PedroHLC
PedroHLC / shingekinowall.sh
Last active March 31, 2020 20:11
Automatically downloads wallpapers from https://t.me/shingekinowall
#!/usr/bin/env sh
set -o errexit
_local="$HOME/.local/bin"
[ -n `echo $PATH | grep "${_local}"` ] || \
export PATH="$PATH:${_local}"
which telegram-download 1>2 2>/dev/null || \
pip install --user telegram-upload
@nuga99
nuga99 / docker-install-parrot.sh
Last active April 29, 2024 19:18
Install Docker Engine on Parrot OS (2023)
#!/bin/sh
# From https://www.hiroom2.com/2017/09/24/parrotsec-3-8-docker-engine-en/
# Changelog:
# @DavoedM: Apr 3, 2020
# @C922A10971734: Jan 19, 2023
set -e
# Install dependencies.
@olivatooo
olivatooo / polybar.sh
Last active August 3, 2020 05:04
Bash script to randomly select an wallpaper and use wal to set the system colorscheme. Useful for i3+wal!
#!/bin/bash
## Author : Aditya Shakya
## Github : adi1090x
## Edited by me
PDIR="$HOME/.config/polybar"
LAUNCH="polybar-msg cmd restart"
# Replacing colors
/*
Trabalho PAA - Crush
Menor caminho com Dijkstra
Autor: Pedro Henrique Lara Campos (UFSCar RA 726578)
Data: 2018-11-21
https://run.codes/exercises/view/9772
*/
#include<stdio.h>
#include<stdlib.h>
#include<stdbool.h>
// By Pedro H. Lara Campos (RA 726578)
// Trabalho de PAA
// 2018-09-18
#include <stdio.h>
#include <stdlib.h>
#include <stdbool.h>
#include <string.h>
#define dprintf(...) //fprintf(stderr, __VA_ARGS__)
#
#
# Created by Olivato :D
#
#
import pygame, sys
from pygame.locals import *
@extremecoders-re
extremecoders-re / qemu-networking.md
Last active May 4, 2024 05:55
Setting up Qemu with a tap interface

Setting up Qemu with a tap interface

There are two parts to networking within QEMU:

  • The virtual network device that is provided to the guest (e.g. a PCI network card).
  • The network backend that interacts with the emulated NIC (e.g. puts packets onto the host's network).

Example: User mode network