Skip to content

Instantly share code, notes, and snippets.

View asakura42's full-sized avatar
🌲
scripting scripting bashing bashing loving leaving pulling pushing

asakura42

🌲
scripting scripting bashing bashing loving leaving pulling pushing
  • Japan
View GitHub Profile
@KM-200
KM-200 / bm_menu.sh
Created July 17, 2018 11:04
a convenient bash menu to install pyBitmessage and bitboard in 15 seconds only
#!/bin/bash
########################################################################################
#kate: bom off;
# usage example: menu pwd whoami ls ps
# giving you a menu with 4 options to execute in bash shell / Konsole
# call in bash as: . menu1 # if menu1 is the file name with this script in it
# usage e.g.:
# menu ls "ls -l" "echo list dir ; clear ; ls -la " clear
@ynkdir
ynkdir / wdiff.vim
Created January 18, 2012 14:28
wdiff.vim
" Usage:
" Copy this file to your ~/.vim/autoload directory.
" :edit oldfile
" :new newfile
" :call wdiff#highlight(2, 1) " wdiff#highlight(winnr1, winnr2)
let s:save_cpo = &cpo
set cpo&vim
function wdiff#highlight(Awinnr, Bwinnr)
@windwp
windwp / i3-swallow.py
Last active January 4, 2023 11:27
i3-swallow used to swallow a terminal window in i3
#!/usr/bin/env python3
#-----------------------------------------------
# used to swallow a terminal window in i3
#
# INSTALL
# Install python 3 and install i3ipc libary
# pip3 install i3ipc
# download this scrript and put it to your i3 config folder and run
anonymous
anonymous / IRC client in pure bash 4
Created March 28, 2016 16:57
IRC client written in pure bash using only bash builtin commands and no other binaries.
#!/bin/bash
#no PATH, no way to accidently run any programs
PATH=''
#useful variables
term_height=0
term_width=0
term_scroll_height=0
status_line_row=0
@wgallios
wgallios / .muttrc
Created November 11, 2014 06:42
Example Muttrc File
set imap_user = "username@gmail.com"
set imap_pass = ""
set smtp_url = "smtp://username@smtp.gmail.com:587"
set smtp_pass = ""
set from = "username@gmail.com"
set realname = "FirstName LastName"
set folder = "imaps://imap.gmail.com:993"
set spoolfile = "+INBOX"
@LukeSmithxyz
LukeSmithxyz / deusex_arch_linux.md
Created May 21, 2018 18:28
Installing and Running Deus Ex on Arch Linux

Installing Deus Ex on Arch Linux

These directions are partial modeled from this video by Ironclaw, so props to him.

Wine must be installed. Run winecfg, and in the Graphics tab, pick the Emulate a virtual desktop option with a resolution smaller than your screen for now.

pacman -S wine
winecfg
@Prajjwal
Prajjwal / ephemeral-file-sharing-services.md
Last active November 22, 2023 17:36
A List of Ephemeral File Sharing Services

A List of Ephemeral File Sharing Services

Contributions welcome.

~ Prajjwal Singh

Service CLI? Max Size Direct Access Files Expire? Can Limit Download Count? Password Protection HTTPS
c-v.sh curl -F 4 GB Yes Yes, by Mister Alg. No No Enforced
FileIO Yes 5 GB Yes Optionally Fixed @ 1 No Yes
@crittermike
crittermike / wget.sh
Last active March 26, 2024 22:49
Download an entire website with wget, along with assets.
# One liner
wget --recursive --page-requisites --adjust-extension --span-hosts --convert-links --restrict-file-names=windows --domains yoursite.com --no-parent yoursite.com
# Explained
wget \
--recursive \ # Download the whole site.
--page-requisites \ # Get all assets/elements (CSS/JS/images).
--adjust-extension \ # Save files with .html on the end.
--span-hosts \ # Include necessary assets from offsite as well.
--convert-links \ # Update links to still work in the static version.
@nanomad
nanomad / obs-arch-openjdk-howto.md
Created October 16, 2014 07:46
How to build openjdk ArchLinux packages on OBS

How to build openjdk ArchLinux packages on OBS

Set-up a projectHow to build openjdk ArchLinux packages on OBS

Set-up a project

@francoism90
francoism90 / retrieve.py
Last active April 12, 2024 21:16
libtorrent - get seeds/peers + metadata without downloading (DHT/magnet)
#!/usr/bin/env python3
import libtorrent as lt
import time
import json
import os
def write_json(path, contents):
with open(path, 'w', encoding='utf-8') as f:
json.dump(contents, f, default=str, indent=4, sort_keys=True)