Skip to content

Instantly share code, notes, and snippets.

View ljcucc's full-sized avatar
🐺
woof

the IT.Wolf ljcucc

🐺
woof
View GitHub Profile
@Pristavkin
Pristavkin / Ansible mass rename of Pi users.md
Last active February 1, 2022 13:57
Ansible mass rename of Pi users

Nice ansible playbook and supplemental Makefile for bulk change of default username on raspberry pi running on raspbian distribution. It can be easily modified for mass changing passwords on any templated virtual machines or devices. For use just run: make rename_pi_user i=10.0.0.1,10.0.0.2,10.0.3

sudo apt install chromium-browser
@bergie
bergie / README.md
Last active July 4, 2024 00:48
Arduino CLI with ESP8266
  • Install Arduino IDE to /opt/arduino
  • Install PubSubClient and MsgFlo
  • Edit /opt/arduino/libraries/PubSubClient/src/PubSubClient.h and set a bigger buffer size (for example 512)
  • Add ESP8266 board URL:
/opt/arduino/arduino --pref "boardsmanager.additional.urls=http://arduino.esp8266.com/stable/package_esp8266com_index.json" --save-prefs
  • Install board package
@T-Kuhn
T-Kuhn / .vimrc
Last active June 10, 2020 11:26
vimrc for raspberry pi
" When started as "evim", evim.vim will already have done these settings.
if v:progname =~? "evim"
finish
endif
" Use Vim settings, rather than Vi settings (much better!).
" This must be first, because it changes other options as a side effect.
set nocompatible
" allow backspacing over everything in insert mode
@ryerh
ryerh / tmux-cheatsheet.markdown
Last active September 10, 2024 02:31 — forked from MohamedAlaa/tmux-cheatsheet.markdown
Tmux 快捷键 & 速查表 & 简明教程

注意:本文内容适用于 Tmux 2.3 及以上的版本,但是绝大部分的特性低版本也都适用,鼠标支持、VI 模式、插件管理在低版本可能会与本文不兼容。

Tmux 快捷键 & 速查表 & 简明教程

启动新会话:

tmux [new -s 会话名 -n 窗口名]

恢复会话:

@rachelmyers
rachelmyers / Chromebook_setup.md
Last active October 25, 2023 10:00
How I set up my Chromebooks' dev environment

Chromebook Setup Options

Option 1: Stay in Chrome OS

If you're writing bare-bones javascript for the browser, creating Chrome Apps and Extensions, or using remote coding apps like cloud9, Koding, or Nitrous, you may not need to install Ubuntu. Some tutorials can be done entirely within the browser. The tradeoff is that you won't have a full-featured command line, and you may hit a point where you can't install something that you need.

To start coding within Chrome OS, install Text or Caret as a text editor. (Text stores files in Google Docs and Caret stores the files locally on your machine, which may help you choose.) After that, you're good to go, since Chromebooks come with a browser installed.

Optio

wget http://apt.puppetlabs.com/puppetlabs-release-precise.deb
sudo dpkg -i puppetlabs-release-precise.deb
sudo apt-get update
sudo apt-get update
sudo apt-get install gcc g++ make libpcre3-dev libssl-dev tmux emacs libncurses5-dev libreadline-dev libffi-dev libyaml-dev valgrind git libxml2-dev libxslt-dev clang ntp libexpat4-dev gettext
sudo apt-get install gcc g++ make libpcre3-dev libssl-dev tmux emacs libncurses5-dev libreadline-dev libffi-dev libyaml-dev valgrind git-core libxml2-dev libxslt-dev ntp sqlite3 libsqlite3-dev
sudo apt-get install openjdk-7-jdk