Skip to content

Instantly share code, notes, and snippets.

View yashasolutions's full-sized avatar
:octocat:
testing in production

Yasha yashasolutions

:octocat:
testing in production
View GitHub Profile
package main
import (
"bytes"
"fmt"
"io/ioutil"
"log"
"net/http"
"net/url"
)
https://github.com/Actyx/industrial-ui
https://github.com/georgesimos/paper-and-ink
https://github.com/Trendyol/quarkify
@yashasolutions
yashasolutions / mailboxerror.sh
Created November 15, 2020 12:07
fixing permission issues with *nix mail box
#!/bin/bash
# Cannot open mailbox /var/mail/$USER: Permission denied
sudo touch /var/mail/$USER
sudo chown $USER:mail /var/mail/$USER
sudo chmod o-r /var/mail/$USER
sudo chmod g+rw /var/mail/$USER
@yashasolutions
yashasolutions / screengrab.sh
Last active November 16, 2020 05:04
screengrab command line using ffmpeg and pulse audio with selected microphone
#!/bin/bash
# DEST FOLDER
DEST=~/Videos/youtube
#OPTIONS
OVERWRITEFILEIFFOUND=-y
UPPERLEFTCORNEROF=-i
# Screen in the middle
@yashasolutions
yashasolutions / LearnGoIn5mins.md
Created January 5, 2021 17:13 — forked from prologic/LearnGoIn5mins.md
Learn Go in ~5mins
Here are the cold hard facts.
Signal was developed by Open Whisper Systems, a for-profit corporation run by “Moxie Marlinspike,” a tall, lanky cryptographer who has a head full of dreadlocks and likes to surf and sail his boat. Moxie was an old friend of Tor’s now-banished chief radical promotor Jacob Appelbaum, and he’s played a similar fake-radical game — although he’s never been able to match Jake’s raw talent and dedication to the art of the con. Still, Moxie wraps himself in air of danger and mystery and hassles reporters about not divulging any personal information, not even his age. He constantly talks up his fear of Big Brother and tells stories about his FBI file.
So how big a threat is Moxie to the federal government?
This big: After selling his encryption start-up to Twitter in 2011, Moxie began partnering with America’s soft-power regime change apparatus — including the State Department and the Broadcasting Board of Governors (now called the U.S. Agency for Global Media) — on developing tech to

hugo-worflow-notes

  • Easy Hugo Mode https://github.com/masasam/emacs-easy-hugo Basically it is a very handy cms inside emacs BUT it is not an improvement of the workflow

    see, writing a post is not a linear process that happen only when you are writing a post, it happens all the time, when you are working and you need something that you can capture or marked some of these thoughts that happen while you work

Download Audio from YouTube

-i - ignore errors

-c - continue

-t - use video title as file name

--extract-audio - extract audio track

@yashasolutions
yashasolutions / .tridactylrc
Last active October 19, 2022 08:58
Ala Doom Emacs Tridaty config for Firefox
" vim: set filetype=tridactyl
"""" Tridactyl config - yasha.solutions
"""" This is mostly a mod based on a mix of Doom Emacs and vim old habits
"""" The general idea of this config is to create a unified experience between
"""" Emacs and Firefox which are my main daily driver
"""" This is supported by a good i3wm config which help glue the missing parts
"""" This is obviously a work in progress but I thought i'd made a snapshot
" Uncomment the lines you want to keep then move this file to
@yashasolutions
yashasolutions / irssi twitch.txt
Created January 26, 2023 04:57 — forked from yyolk/irssi twitch.txt
Twitch chat with irssi - June 2021
Tested working 20 Jun 2021, irssi version 1.2.3
This is a TLDR version of https://blog.crunchprank.net/connecting-to-twitch-chat-via-irssi/
Get your OAuth token (password) here: https://twitchapps.com/tmi/
# Network setup:
/network add -nick YOUR_TWITCH_USERNAME twitch
/server add -auto -ssl -network Twitch irc.chat.twitch.tv 6697 YOUR_OAUTH_TOKEN