Skip to content

Instantly share code, notes, and snippets.

View aberranthacker's full-sized avatar
👾

Oleg Tsymbalyuk aberranthacker

👾
  • Moscow
  • 13:34 (UTC +03:00)
View GitHub Profile
@@ -54,12 +54,12 @@ int asm_option[ASM_OPT_NUM];
/* These chars start a comment anywhere in a source file (except inside
another comment. */
-const char comment_chars[] = "#/";
+const char comment_chars[] = ";";
/* These chars only start a comment at the beginning of a line. */
-const char line_comment_chars[] = "#/";
+const char line_comment_chars[] = ";";
.nolist
.TITLE AY Test
.include "macros.s"
.include "hwdefs.s"
.=040; .word start # program’s relative start address
.=042; .word 01000 # initial location of stack pointer
; vim: set fileformat=dos filetype=asmpdp11 tabstop=8 noexpandtab shiftwidth=8 autoindent :
.Title SRAMT
.Ident /V0.01/
.MCall .TTYIn, .TTYOut, .Print, .Exit
PR7 = 7*40 ; highest priority to CPU
PR0 = 0 ; lowest priority to CPU
@aberranthacker
aberranthacker / bootstrap_form_builder.rb
Created August 25, 2016 13:02 — forked from cbmeeks/bootstrap_form_builder.rb
Twitter Bootstrap Form Builder
class BootstrapFormBuilder < ActionView::Helpers::FormBuilder
delegate :capture, :content_tag, :tag, to: :@template
%w[text_field text_area password_field collection_select].each do |method_name|
define_method(method_name) do |name, *args|
errors = object.errors[name].any?? " error" : ""
error_msg = object.errors[name].any?? content_tag(:span, object.errors[name].join(","), class: "help-inline") : ""
content_tag :div, class: "clearfix#{errors}" do
@aberranthacker
aberranthacker / hotkey.sh
Last active April 28, 2018 08:09
Modified version of script from http://akuederle.com/windows-like-appshortcuts-in-linux to set Win+n keybindings to behave like in Windows
#!/bin/sh
desk_id=$(xdotool get_desktop)
apps_table=$(wmctrl -lx | awk -v desk_id=$desk_id '$2==desk_id {print $0}')
win_id=$(printf '%x' $(xdotool getactivewindow))
active_window_class=$(echo "$apps_table" | awk -v id=$win_id '$0 ~ id {print $3}')
if [[ "$active_window_class" = "$2" ]];
then
xdotool getactivewindow windowminimize;
else
{
"builders":
[
{
"type": "qemu",
"iso_url": "http://mirror.yandex.ru/centos/7/isos/x86_64/CentOS-7-x86_64-Minimal-1511.iso",
"iso_checksum": "88c0437f0a14c6e2c94426df9d43cd67",
"iso_checksum_type": "md5",
"output_directory": "output_centos_tdhtest",
"shutdown_command": "sudo shutdown -P now",
@aberranthacker
aberranthacker / ks.cfg
Last active May 2, 2018 00:24
CentOS 7.2 kickstart file
# System authorization information
auth --enableshadow --passalgo=sha512
# Use CDROM installation media
cdrom
# Perform the kickstart installation in text mode
text
# X will not be configured
skipx
# Don't run the Setup Agent on first boot
firstboot --disable