Skip to content

Instantly share code, notes, and snippets.

@troggy
troggy / gist:eb5f80e84ac3f8a2c85d
Created June 24, 2014 21:39
Testing bitcoinj P2SH support with WalletTool
# Create first wallet
$ wallet-tool --wallet=first --net=REGTEST create --seed="7f7f7f7f7f7f7f7f7f7f7f7f7f7f7f7f"
# Create second wallet
$ wallet-tool --wallet=second --net=REGTEST create --seed="7f7f7f7f7f7f7f7f7f7f7f7f7f7f7f00"
# Get xpub of the second wallet
$ wallet-tool --wallet=second --net=REGTEST dump
...omitted...
@rosylilly
rosylilly / gist:3401612
Created August 20, 2012 06:40
先輩と覚える HTTP ステータスコード

先輩に学ぶ HTTP Status Code

超雑にまとめました。修正してください。

登場人物

  • アプリケーション先輩: いつも忙しい。横に広がるのが得意(デブじゃない)。
  • 後輩: 頼んでばっかしで役に立たない。
  • サーバー先輩: アプリケーション先輩と仲がいい。Unix Socket でつながるくらい仲良し。
  • プロクシ先輩: アプリケーション先輩とかサーバー先輩と後輩の間を取り持って代わりに伝えたりしてくれる。たまに勝手にレスポンスを書き換える。
@gustavohenrique
gustavohenrique / codigos-secretos-android
Created October 16, 2012 20:35
Codigos secretos no Android
Ao digitar os códigos, digite os caracteres sem usar espaço.
* # * # 4636 # * # * – Informações sobre o smartphone (permite que você altere o número do centro de serviço SMS e muito mais).
* 2767 * 3855 # – Hard Reset (USE COM CUIDADO, pois apaga todos os dados e restaura o firmware).
* # * # 34971539 # * # * Mostra informações completas sobre a câmera.
* # * # 7594 # * # * Mudando o comportamento do botão de energia.
* # * # 273283 * 255 * 663282 * # * # * Para um backup rápido de todos os seus arquivos de mídia.
* # * # 197328640 # * # * Ativar modo de teste para a atividade de serviço
* # * # 232339 # * # * OU * # * # 526 # * # * OU * # * # 528 # * # * Testes Wireless Lan
* # * # 232338 # * # * Apresenta Wi-Fi Mac-address
@MarshySwamp
MarshySwamp / Expand or Collapse Layer Sets.jsx
Last active April 19, 2024 00:57
Expand or Collapse Layer Sets
// Expand ALL layer groups/sets
openAllLayerSets(app.activeDocument);
function openAllLayerSets(parent) {
// https://forums.adobe.com/message/5764024#5764024
for (var setIndex = 0; setIndex < parent.layerSets.length; setIndex++) {
app.activeDocument.activeLayer = parent.layerSets[setIndex].layers[0];
openAllLayerSets(parent.layerSets[setIndex]);
}
}
@GzuPark
GzuPark / pytorch.Dockerfile
Created February 3, 2022 08:20
Sample Dockerfiles for TensorFlow & PyTorch
ARG UBUNTU_VERSION=20.04
ARG CUDA_VERSION=11.3.1
ARG CUDA=11.3
ARG CUDNN_VERSION=8
FROM nvidia/cuda:${CUDA_VERSION}-cudnn${CUDNN_VERSION}-devel-ubuntu${UBUNTU_VERSION}
LABEL maintainer "http://gzupark.dev"
ARG CUDA_VERSION
ARG CUDA
@EndlessEden
EndlessEden / 0001-fix-option-string.patch
Created April 24, 2018 20:47
htop downstream patch(arch)
From 731acc8bced18c90fbe0e18381c32f007f71e0d9 Mon Sep 17 00:00:00 2001
From: Christian Hesse <mail@eworm.de>
Date: Tue, 10 Apr 2018 16:21:46 +0200
Subject: [PATCH 1/1] fix option string
This broke with commit db05ba61065f64b59d0014518be0786b5439e54c.
Signed-off-by: Christian Hesse <mail@eworm.de>
---
htop.c | 2 +-
@EndlessEden
EndlessEden / hdrprobe
Last active April 19, 2024 00:56
hdrprobe - bash script to probe a file with ffprobe and detect if file is in HDR. (Supports notify-send for toaster notifications)
#!/bin/bash
if [ ! -z $DISPLAY ]; then
if [ $(notify-send -u normal -a hdrprobe -t 3000 -v | sed -e 's| |\n|g' | head -1 | grep -c 'notify-send') -gt 0 ]; then
NOTIFY="1"
else
NOTIFY="0"
fi
else
NOTIFY="0"
fi
@jarvisschultz
jarvisschultz / CMakeLists.txt
Last active April 19, 2024 00:56
Simple Float32MultiArray +Eigen Demo
cmake_minimum_required(VERSION 3.5.1)
project(matrix_demo)
find_package(catkin REQUIRED
rospy
roscpp
std_msgs
)
include_directories(
@memphys
memphys / shortcuts.md
Created March 28, 2012 12:22
Bash Shortcuts For Maximum Productivity

source: http://www.skorks.com/2009/09/bash-shortcuts-for-maximum-productivity/

Command Editing Shortcuts

  • Ctrl + a – go to the start of the command line
  • Ctrl + e – go to the end of the command line
  • Ctrl + k – delete from cursor to the end of the command line
  • Ctrl + u – delete from cursor to the start of the command line
  • Ctrl + w – delete from cursor to start of word (i.e. delete backwards one word)
  • Ctrl + y – paste word or text that was cut using one of the deletion shortcuts (such as the one above) after the cursor