Skip to content

Instantly share code, notes, and snippets.

haakov / CMakeLists.txt
Created Mar 3, 2018
CMake file to compile GNU Radio display_qt C++ example standalone
View CMakeLists.txt
find_package(Qt5Widgets REQUIRED)
nepsilon /
Created Jul 12, 2017
How to output a range of lines from a file? — First published in issue #107

How to output a range of lines from a file?

Easy enough with sed:

sed -n	123,230p filename

This will output filename content, from line 123 to line 230, inclusives. Notice the p letter after the last line number, this is what instruct sed to print to stdout.

import time
from telethon import InteractiveTelegramClient
from import InputPeerChat
from import SetTypingRequest
from import SendMessageTypingAction
client = InteractiveTelegramClient('session_name','+8613400000000',api_id=123456,api_hash='752f79bb39d8004006f00f761dab7f00')
peer = InputPeerChat(14884418)
act = SendMessageTypingAction()
View quick-sort.elv
fn quick-sort [li]{
if <= (count $li) 1; then
put $@li
quick-sort [(each { if <= $0 $li[0]; then put $0; fi } $li[1:])]
put $li[0]
quick-sort [(each { if > $0 $li[0]; then put $0; fi} $li[1:])]
alick / isatap
Created Apr 14, 2016
Bring up IPv6 through ISATAP tunnel.
View isatap
# vim730: set tw=80 cc=+1:
# Bring up IPv6 through ISATAP tunnel.
usage() {
cat <<EOF
acgotaku / baidupan
Last active Mar 25, 2021
新版百度云盘aria2c导出下载 ,目前只实现了核心功能.
View baidupan
// ==UserScript==
// @name 百度网盘aria2导出工具
// @author acgotaku311
// @description 一个方便吧百度网盘的Aria2rpc导出的脚本。
// @encoding utf-8
// @include http://**
// @include http://**
// @include http://**
// @include https://**
// @include https://**
xguse /
Last active Mar 19, 2019 — forked from rsvp/
#!/usr/bin/env bash
# bash 4.1.5(1) Linux Ubuntu 10.04 Date : 2011-10-04
# _______________| noise : ambient Brown noise generator (cf. white noise).
# Usage: noise [minutes=59] [band-pass freq center=1786] [wave]
# ^minutes can be any positive integer.
# Command "noise 1" will display peak-level meter.
# Dependencies: play (from sox package)