Skip to content

Instantly share code, notes, and snippets.

View nicck's full-sized avatar
🚜

Nikolai Abdrafikov nicck

🚜
  • ubio
  • United Kingdom
  • 17:40 (UTC +01:00)
View GitHub Profile
@nicck
nicck / AW3423DWF.txt
Created April 30, 2023 18:20
AW3423DWF ControlMyMonitor file
==================================================
VCP Code : 02
VCP Code Name : New Control Value
Read-Write : Read+Write
Current Value : 2
Maximum Value : 255
Possible Values :
==================================================
==================================================

Keybase proof

I hereby claim:

  • I am nicck on github.
  • I am nicck (https://keybase.io/nicck) on keybase.
  • I have a public key whose fingerprint is 6E3C CF71 4688 AFB6 C071 A1B7 8A1F C53E 618A 58B6

To claim this, I am signing this object:

module Counter exposing (view, update, Msg)
import Data exposing (Model)
import Html exposing (Html, body, div, button, text)
import Html.Attributes exposing (attribute, class)
-- import Html.Events exposing (onClick)
type Msg
= Increment Int
| Decrement Int
@nicck
nicck / git-remove-branch.cr
Created May 5, 2016 22:45
git-remove-branch.cr
def keep_branches_config
branches = `git config --get 'remove-branch.keep'`
.split(/[\s,]/)
.select { |b| !b.empty? }
if branches.empty?
`git config --add 'remove-branch.keep' 'master, production'`
puts "Configuration added to .git/config"
puts %{
---
# ^^^ YAML documents must begin with the document separator "---"
#
#### Example docblock, I like to put a descriptive comment at the top of my
#### playbooks.
#
# Overview: Playbook to bootstrap a new host for configuration management.
# Applies to: production
# Description:
# Ensures that a host is configured for management with Ansible.

Each of these commands will run an ad hoc http static server in your current (or specified) directory, available at http://localhost:8000. Use this power wisely.

Discussion on reddit.

Python 2.x

$ python -m SimpleHTTPServer 8000
'use strict';
//npm install gulp gulp-minify-css gulp-uglify gulp-clean gulp-cleanhtml gulp-jshint gulp-strip-debug gulp-zip --save-dev
var gulp = require('gulp'),
clean = require('gulp-clean'),
cleanhtml = require('gulp-cleanhtml'),
minifycss = require('gulp-minify-css'),
jshint = require('gulp-jshint'),
stripdebug = require('gulp-strip-debug'),
@nicck
nicck / git-rm-ds-store
Created December 16, 2014 08:19
remove .DS_Store from git repo
find . -name .DS_Store -print0 | xargs -0 git rm -f --ignore-unmatch
@nicck
nicck / hosts
Last active March 22, 2022 22:52
configure pptp vpn server on ubuntu via ansible
[vpshost]
xxx.xxx.xx.xx
@nicck
nicck / inversecustom.css
Last active August 29, 2015 13:56
try remarks
.inversecustom.remark-slide-content p {
color: red;
}
.inversecustom p {
color: lime;
}
.remark-slide-content.inversecustom h1 {
color: orange;
}