Skip to content

Instantly share code, notes, and snippets.

View Boot-Error's full-sized avatar
⛏️
possess wizardly powers

Vighnesh SK Boot-Error

⛏️
possess wizardly powers
View GitHub Profile
@Boot-Error
Boot-Error / resurfacing_notes_dataview.js
Last active July 29, 2021 04:20
Resurfacing notes in Obsidian using dataview js query
const diffInDaysFromToday = (toDate) => {
const today = new Date()
return Math.ceil((today - toDate)/(1000 * 3600 * 24))
}
dv.list(dv.pages()
.filter(p => p.file.name.contains("🌳"))
.where(p => diffInDaysFromToday(p.reviewed) > p.retention)
.map(p => p.file.link))
#include <DigiMouse.h>
// wait for DELAY_MINUTES, this is less than your
// screen saver's timeout
#define DELAY_MINUTES 2
void setup(){
DigiMouse.begin();
pinMode(1, OUTPUT);
}
from pwn import *
import hlextend
# high score + 1 from the game
HIGH_SCORE = 653086069891774904466108141306028536722619133805
# the proof taken by plauing game with initial multiplier of 6 because it is
# the first character in the high score number taken as string
SIGNATURE = "1ec356a3f23437e5350a1288a270bf221af33ec1c8b7d5147738e532534fb0b1ee5678e1cbba120b27b1d20c3ac5c2479be7b139b9181ead93fc841a50f8237b"
@Boot-Error
Boot-Error / Procfile
Created February 22, 2020 03:28
Simple rock paper scissors telegram bot in python. The bot http://t.me/raukpawparscizors_bot
web: python main.py
int local_1c = 0;
int local_14 = 0;
printf([ebx-0x1870]);
scanf("%d", &local_1c);
while (local_10 <= local_1c) {
printf([ebx-0x185b]);
scanf("%d", &local_18);
local_14 += local_18;
local_10 += 1;
}
@Boot-Error
Boot-Error / spotify-ad-mute.sh
Last active December 1, 2020 20:12
A script to mute Spotify Client on Linux when it plays an advertisement
#!/bin/bash
# This script mutes spotify when it plays an advertisement
# Requires playerctl and pactl
check_deps() {
if ! [ -x "$(command -v playerctl)" ]; then
echo 'Error: playerctl is not installed or not in PATH. Check https://github.com/altdesktop/playerctl' >&2
exit 1
title tags created modified
Raspberry Pi Initial Setup V2
Notebooks/Blog
2019-01-26T17:31:49.097Z
2019-02-02T17:03:37.037Z

Raspberry Pi Initial Setup V2

Direct Ethernet Connection

#!/usr/bin/env python
class Stack:
def __init__(self):
self.arr = []
def push(self, ele):
self.arr.append(ele)
def pop(self):
return self.arr.pop()
def isEmpty(self):
package main
import (
"encoding/binary"
"fmt"
"net"
"os"
"time"
)
@Boot-Error
Boot-Error / bst.rs
Created April 15, 2018 18:43
Binary Search Tree implementation in Rust
use std::cmp::Ordering;
#[derive(Debug)]
struct Node {
value: i32,
left_child: Box<Option<Node>>,
right_child: Box<Option<Node>>,
}
impl Node {