Skip to content

Instantly share code, notes, and snippets.

View ch1c0t's full-sized avatar

Anatoly Chernov ch1c0t

View GitHub Profile
@ch1c0t
ch1c0t / gist:10dc5764a0f8646d080aac03e0b0e9da
Created September 10, 2025 19:30
grml-live.log 20250910
------------------------------------------------------------------------------
Starting grml-live [0.54.1] run on Wed Sep 10 17:30:19 UTC 2025
Using local config file:
Executed grml-live command line:
/sbin/grml-live -s trixie -a amd64 -c GRML_FULL -o /mnt/shared/output
Executed FAI command line:
/sbin/..//lib/grml-live/minifai /usr/share/grml-live/config DEBIAN_TRIXIE,GRMLBASE,GRML_FULL,RELEASE,AMD64 dirinstall /mnt/shared/output/grml_chroot /tmp/tmp.0LutqAmWG3 trixie http://deb.debian.org/debian
I: /sbin/..//lib/grml-live/minifai started with argv=['/sbin/..//lib/grml-live/minifai', '/usr/share/grml-live/config', 'DEBIAN_TRIXIE,GRMLBASE,GRML_FULL,RELEASE,AMD64', 'dirinstall', '/mnt/shared/output/grml_chroot', '/tmp/tmp.0LutqAmWG3', 'trixie', 'http://deb.debian.org/debian']
I: /sbin/..//lib/grml-live/minifai parsed args: Namespace(config=PosixPath('/usr/share/grml-live/config'), classes='DEBIAN_TRIXIE,GRMLBASE,GRML_FULL,RELEASE,AMD64', action='dirinstall', chroot_dir=PosixPath('/mnt/shared/output/grml_chroo
# Returns a new Array containing only those elements that occur
# twice or more times in the original Array.
Array::recurrences = ->
FirstOccurrences = [] # of the recurring elements
# in the original Array
occurrences = {} # from an element to an Array of indexes
# where it occurs
for element, index in @
camera = new THREE.PerspectiveCamera 75, (window.innerWidth / window.innerHeight), 0.1, 1000
camera = new THREE.PerspectiveCamera(
75
window.innerWidth / window.innerHeight
0.1
1000
)
gulp = require 'gulp'
pipeline = (streams) ->
streams.reduce (former, latter) -> former.pipe latter
gulp.task 'default', ->
console.log 'from default task'
if defined? PryByebug
Pry.commands.alias_command 'c', 'continue'
Pry.commands.alias_command 's', 'step'
Pry.commands.alias_command 'n', 'next'
Pry.commands.alias_command 'f', 'finish'
end
begin
require 'awesome_print'
AwesomePrint.defaults = { raw: true }
require 'mail'
sender = ''
receiver = ''
password = ''
Mail.defaults do
delivery_method :smtp,
address: 'smtp.mail.yahoo.com',
port: 587,
require 'watir'
class LoginPage
def initialize browser, url = 'https://www.linkedin.com/uas/login'
@browser, @url = browser, url
end
def sign_in_with login, password
@browser.goto @url
@browser.input(id: 'session_key-login').send_keys login
# i3status configuration file.
# see "man i3status" for documentation.
# It is important that this file is edited as UTF-8.
# The following line should contain a sharp s:
# ß
# If the above line is not correctly displayed, fix your editor first!
general {
colors = true
setxkbmap -layout "us,ru" -option "grp:caps_toggle,compose:ralt"
xrandr --output LVDS1 --brightness 0.7
xset b off
exec i3
@ch1c0t
ch1c0t / local_mongo
Created October 19, 2017 20:50
local_mongo
mongod --dbpath=/home/user/mongo_experiments/db2 --bind_ip 127.0.0.1