Not intended as a guide for newbies, more like a "cheat sheet" for the somewhat experienced IRC user, especially one who wields some power over a channel.
/join #channel
- Joins the specified channel.
/part #channel
- Leaves the specified channel.
G1 F2700 E2067.18279 | |
M140 S0 | |
M107 | |
G91 ;Relative positioning | |
G1 E-2 F2700 ;Retract a bit | |
G1 E-2 Z0.2 F2400 ;Retract and raise Z | |
G1 X5 Y5 F3000 ;Wipe out | |
G1 Z10 ;Raise Z more | |
G90 ;Absolute positioning |
KEYMAPOPTS="us us" | |
HOSTNAMEOPTS="-n alpine" | |
INTERFACESOPTS="auto lo | |
iface lo inet loopback | |
auto eth0 | |
iface eth0 inet dhcp | |
hostname alpine | |
" | |
TIMEZONEOPTS="-z UTC" |
I hereby claim:
To claim this, I am signing this object:
# getting uptime stdout | |
str = `uptime` | |
pp(str); | |
# parsing uptime | |
str.match( | |
/^(?<current>\d+:\d+)\s+(?<message>up (?<amount>\d+) (?<unit>days|minutes|seconds)),\s+(?<boot_at>\d+:\d+),\s+(?<users>(?<user_count>\d+) user|users),\s+(?<load_avgs>.*)\s$/ | |
) |
first=$1
second=$2
# Replace
find -name *.cpp -or -name *.h | xargs grep "$first" -l | xargs perl -pi -e "s/$first/$second/g"
a=getDefaultIncludes; b=get_include_dirs_def; find -name "*.py" -or -name "SC*" | xargs grep "$a" -l | xargs perl -pi -e "s/$a/$b/g"
a=abc; b=def; find -name "*.cpp" -or -name "*.h" | xargs grep "$a" -l | xargs perl -pi -e "s/$a/$b/g"
{ | |
"workbench.startupEditor": "newUntitledFile", | |
"editor.fontSize": 14, | |
"editor.lineHeight": 1.8, | |
"javascript.suggest.autoImports": true, | |
"javascript.updateImportsOnFileMove.enabled": "always", | |
"editor.rulers": [80, 120], | |
"extensions.ignoreRecommendations": true, | |
"typescript.tsserver.log": "off", | |
"files.associations": { |
#!/usr/bin/env ruby | |
# _ _ | |
# | |__ ___| |_ | |
# | '_ \ _ \ _| | |
# |_.__\___/\__| | |
# Ruby ChatGPT CLI to ask things without leave terminal | |
# by dvinciguerra | |
require 'bundler/inline' |
# frozen_string_literal: true | |
require 'faraday' | |
require 'json' | |
require 'logger' | |
require 'oga' | |
require 'pastel' | |
module Twitch | |
module PageLoader |
@import url('https://fonts.googleapis.com/css2?family=Fira+Sans:ital,wght@0,300;0,400;0,500;1,300;1,400;1,500&display=swap'); | |
:root { | |
--background: #282a36; | |
--light-background: #343746; | |
--lighter-background: #424450; | |
--dark-background: #21222c; | |
--darker-background: #191a21; | |
--foreground: #f8f8f2; | |
--current-line: #44475a; |