Skip to content

Instantly share code, notes, and snippets.

View amenpunk's full-sized avatar
🌌

Edgar Rolando Cosajay Campos amenpunk

🌌
View GitHub Profile
@amenpunk
amenpunk / config.py
Created April 19, 2019 19:38 — forked from Ape/config.py
My qutebrowser config
import setproctitle
setproctitle.setproctitle("qutebrowser")
# Bindings
config.bind("gi", "hint inputs")
config.bind("<f12>", "inspector")
config.unbind("+")
config.unbind("-")
config.unbind("=")
@amenpunk
amenpunk / config
Created May 1, 2019 02:10 — forked from PaxPlay/config
powerline polybar config
;==========================================================
;
;
; ██████╗ ██████╗ ██╗ ██╗ ██╗██████╗ █████╗ ██████╗
; ██╔══██╗██╔═══██╗██║ ╚██╗ ██╔╝██╔══██╗██╔══██╗██╔══██╗
; ██████╔╝██║ ██║██║ ╚████╔╝ ██████╔╝███████║██████╔╝
; ██╔═══╝ ██║ ██║██║ ╚██╔╝ ██╔══██╗██╔══██║██╔══██╗
; ██║ ╚██████╔╝███████╗██║ ██████╔╝██║ ██║██║ ██║
; ╚═╝ ╚═════╝ ╚══════╝╚═╝ ╚═════╝ ╚═╝ ╚═╝╚═╝ ╚═╝
;
#!/bin/bash
# Si no tienes un playlist generado puedes generarlo de la siguiente manera:
# updatedb -l 0 -U [Music PATH] -o music.db
# Ejemplo: update -l 0 -u $HOME/Music -o music.db
#Adapted from by https://moc.daper.net/comment/6080#comment-6080
if [[ -z $(pgrep mocp) ]]; then
sh $HOME/.moc/mocp-tee && mocp -c
fi
@amenpunk
amenpunk / audio.sh
Created September 6, 2019 02:17
script para subir el volumen en multiples tarjetas de audio a la vez
#!/bin/bash
op=$1
#Este es el número de tu tarjeta
#en mi caso la 0 es la interna
#la numero dos es el bluez
#puedes identificarla con el comando
#pactl list
tar=0
tartwo=1
function doGet(e){
var ss = SpreadsheetApp.openByUrl("¿");
var sheet = ss.getSheetByName("Hoja1");
return insert(e,sheet);
}
function doPost(e){
ex ()
{
if [ -f $1 ] ; then
case $1 in
*.tar.bz2) tar xjf $1 ;;
*.tar.gz) tar xzf $1 ;;
*.bz2) bunzip2 $1 ;;
*.rar) unrar x $1 ;;
*.gz) gunzip $1 ;;
*.tar) tar xf $1 ;;
listen=NO
listen_ipv6=YES
anonymous_enable=NO
local_enable=YES
write_enable=YES
anon_upload_enable=NO
anon_mkdir_write_enable=NO
dirmessage_enable=YES
use_localtime=YES
xferlog_enable=YES
@P=split//,".URRUU\c8R";@d=split//,"\nrekcah xinU / lreP rehtona tsuJ";sub p{
@p{"r$p","u$p"}=(P,P);pipe"r$p","u$p";++$p;($q*=2)+=$f=!fork;map{$P=$P[$f^ord
($p{$_})&6];$p{$_}=/ ^$P/ix?$P:close$_}keys%p}p;p;p;p;p;map{$p{$_}=~/^[P.]/&&
close$_}%p;wait until$?;map{/^r/&&<$_>}%p;$_=$d[$q];sleep rand(2)if/\S/;print
#include <iostream>
using namespace std;
int main(){
cout<<"Content-type:text/html; charset:UTF-8"<<endl<<endl;
cout<<"<html> <head> <title>CGI DESDE DEBIAN</title></head>"<<endl;
cout<<"<style> "<<endl;
cout<<"th,tr,td{ border 1px solid #1e1e1e; "<<endl;
cout<<".tg {border-collapse:collapse;border-spacing:0;} "<<endl;
cout<<".tg td{border-color:black;border-style:solid;border-width:1px;font-family:Arial, sans-serif;font-size:14px; "<<endl;
#!/bin/sh
echo "Content-type: text/html"
echo ""
echo '<html>'
echo '<head>'
echo '<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">'
echo '<meta name="viewport" content="width=device-width, initial-scale=1.0">'
echo '<title>Hello World</title>'