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
@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)
@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

@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"
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
@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
@torch2424
torch2424 / systemDAsUser.service
Last active May 6, 2024 18:12
Run a systemd service as a user
# How to create systemd services: http://neilwebber.com/notes/2016/02/10/making-a-simple-systemd-file-for-raspberry-pi-jessie/
# Digital ocean on a mongodb service: https://www.digitalocean.com/community/tutorials/how-to-install-mongodb-on-ubuntu-16-04
[Unit]
Description=Run SystemD as users
After=network.target
[Service]
Type=simple
User=[USER HERE]
WorkingDirectory=[USER HOME]
@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.
@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)
@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
@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