Skip to content

Instantly share code, notes, and snippets.

View sitedyno's full-sized avatar
💭
Very unhappy with the new feed.

sitedyno

💭
Very unhappy with the new feed.
View GitHub Profile
#!/usr/bin/env ruby
station = "radio1"
stacmd = "krad_radio_cmd #{station}"
`#{stacmd} input Music1`
`#{stacmd} input Music2`
`#{stacmd} output Main`
`#{stacmd} xfade Music1 Music2`
krad_radio_daemon radio1
in another term:
[oneman@rawdod4::~/kode/krad_radio]$ krad_radio radio1 input Music1
[oneman@rawdod4::~/kode/krad_radio]$ krad_radio radio1 input Music2
[oneman@rawdod4::~/kode/krad_radio]$ krad_radio radio1 xfade Music1 Music2
[oneman@rawdod4::~/kode/krad_radio]$ krad_radio radio1 input Aux
#!/usr/bin/env ruby
require "/home/oneman/kode/krad_radio/scripts/kradradio_client.rb"
station_name = "kradtoday"
width = 1280
height = 720
fps = "30000 1000"
@okunishinishi
okunishinishi / Remove all git tags
Created March 8, 2014 03:12
Delete all git remote tags
#Delete local tags.
git tag -l | xargs git tag -d
#Fetch remote tags.
git fetch
#Delete remote tags.
git tag -l | xargs -n 1 git push --delete origin
#Delete local tasg.
git tag -l | xargs git tag -d
@roxlu
roxlu / test_vorbis.c
Last active August 29, 2015 14:00
Decoding vorbis flow (w/o cleanup yet).
/*
test_vorbis
------------
See online version: https://gist.github.com/roxlu/af1ffc1290b9dc37b5b9
Example code which decodes a .ogg file that contains vorbis and/or
some other stream, e.g. theora. We ignore all non-vorbis streams and
simply flush the packets.
@tadly
tadly / pacaur_install.sh
Last active December 9, 2024 12:21
A simple shell script to quickly / easily install "pacaur" on archlinux
#!/bin/sh
#
# !!! IMPORTANT !!!
# As of 2017-12-14, pacaur is unmaintained (https://bbs.archlinux.org/viewtopic.php?pid=1755144#p1755144)
# For alternatives see the arch wiki: https://wiki.archlinux.org/index.php/AUR_helpers#Active
# pacaur seems to get occasional updates to fix breaking changes due to pacman updates though.
#
# If you are new to arch, I encourage you to at least read and understand what
# this script does befor blindley running it.
# That's why I didn't make a one-liner out of it so you have an easier time
@0XDE57
0XDE57 / config.md
Last active May 29, 2025 11:46
Firefox about:config privacy settings

ABOUT

about:config settings to harden the Firefox browser. Privacy and performance enhancements.
To change these settings type 'about:config' in the url bar. Then search the setting you would like to change and modify the value. Some settings may break certain websites from functioning and rendering normally. Some settings may also make firefox unstable. I am not liable for any damages/loss of data.

Not all these changes are necessary and will be dependent upon your usage and hardware. Do some research on settings if you don't understand what they do. These settings are best combined with your standard privacy extensions (HTTPS Everywhere No longer required: Enable HTTPS-Only Mode, NoScript/Request Policy, uBlock origin, agent spoofing, Privacy Badger etc), and all plugins set to "Ask To Activate".

@jippi
jippi / Makefile
Last active October 12, 2017 07:52
CakePHP inside a Phar file. NOTE: Change "ROOT" constant in paths.php to "."
SHELL := /bin/bash
.PHONY: phar clean help
.DEFAULT_GOAL := help
phar: ## Build a phar file
mkdir -p dist/
rm -f dist/bownty-infra.phar
php build.php
chmod 0775 dist/bownty-infra.phar
@alirobe
alirobe / reclaimWindows10.ps1
Last active June 10, 2025 00:59
This Windows 10 Setup Script turns off a bunch of unnecessary Windows 10 telemetery, bloatware, & privacy things. Not guaranteed to catch everything. Review and tweak before running. Reboot after running. Scripts for reversing are included and commented. Fork of https://github.com/Disassembler0/Win10-Initial-Setup-Script (different defaults). N.…
###
###
### UPDATE: For Win 11, I recommend using this tool in place of this script:
### https://christitus.com/windows-tool/
### https://github.com/ChrisTitusTech/winutil
### https://www.youtube.com/watch?v=6UQZ5oQg8XA
### iwr -useb https://christitus.com/win | iex
###
### OR take a look at
### https://github.com/HotCakeX/Harden-Windows-Security
@CMCDragonkai
CMCDragonkai / job_control_zsh_bash.md
Last active June 18, 2025 05:31
CLI: Job Control in ZSH and Bash

Job Control in ZSH and Bash

All processes in ZSH/Bash under job control are in 3 states: foregrounded, backgrounded and suspended.

# run command in the foreground
command
# run commend in the background