Skip to content

Instantly share code, notes, and snippets.

@bluecloudy
bluecloudy / hotspot.md
Created April 23, 2021 15:34 — forked from robertov8/hotspot.md
Install Hotspot + Mysql + Portal Captive + WifiDog + Authpuppy

Hotspot + Portal Captive

Dependencias

  • Header Kernel - GCC

sudo apt-get install linux-headers

  • Pacotes essenciais

This is a quick set-up guide on how to install Icecast for Mp3 and Ogg streaming, sort of online radio. Tested on Debian Wheezy. Probably works on Ubuntu, etc. Icecast is a "server-like". It offers the HTTP URL/port through which end-users can play the media. However, Icecast itself does not serve the files. It must get its input from other "client-like" software. For example, Ices0 sends mp3 input to Icecast and then Icecast delivers to the end user. Similarly, Ices2 sends ogg input to Icecast and then Icecast delivers to the end user.

Set up icecast

Start by installing:

sudo apt-get install icecast2
@bluecloudy
bluecloudy / manjaro_kde_ntfs.md
Last active July 24, 2019 14:52
Manjaro KDE Auto mount NTFS
  1. Auto mount NTFS

    • list [List disk by uuid: "ls -l /dev/disk/by-uuid"]
    • edit [Add to fstab: "/dev/disk/by-uuid/{UUID} /mnt/{name} auto nosuid,nodev,nofail,x-gvfs-show 0 0"]
    • execute [Execute command: "sudo mount -a"]
  2. Fix NTFS mount problem

    • list [List disk by label: "ls -l /dev/disk/by-label"]
    • execute [Execute command: "sudo ntfsfix /dev/sdXY"]
@bluecloudy
bluecloudy / doom.txt
Created June 13, 2019 09:12 — forked from hjertnes/doom.txt
Doom Emacs Cheatsheet
SPC
SPC: find file
, switch buffer
. browse files
: MX
; EX
< switch buffer
` eval
u universal arg
x pop up scratch
@bluecloudy
bluecloudy / wsl_vscode_git_and_gitlens.md
Last active April 9, 2019 11:51
WSL: VSCode git and gitlens support

WSL

VSCode git and gitlens support

  1. VSCode git and gitlens
    • download [WSLGit at https://github.com/andy-5/wslgit/releases]
    • rename [wslgit.exe or wslgit-mount-at-root.exe to git.exe]
    • edit [edit window environment variables to add C:\CHANGE\TO\PATH\TO\git.exe to Path]
    • edit [edit window environment variables to add WSLGIT_USE_INTERACTIVE_SHELL with value false or 0]
    • edit [edit VSCode settings.json to add/edit "git.path": "C:\CHANGE\TO\PATH\TO\git.exe"]
@bluecloudy
bluecloudy / WSL Install Guide.md
Last active February 2, 2020 10:37 — forked from kevbost/WSL Install Guide.md
WSL Install Guide Windows

Ubuntu

Windows Subsystem for Linux [Very Easy Installation]

  1. https://msdn.microsoft.com/commandline/wsl/install_guide
    • [Follow instructions carefully and remember your password]
    • [it will prompt for password]
    • [password will not appear while you type, just push enter when finished]
  2. Open "Bash on Ubuntu on Windows"
  3. Run the commands formatted as code separately
  • (they will take a while to complete)
@bluecloudy
bluecloudy / docker_for_wsl.md
Last active March 12, 2024 01:22
WSL: Docker for WSL
require 'rails_event_store'
require 'aggregate_root'
PaymentAuthorized = Class.new(RailsEventStore::Event)
PaymentSuccessed = Class.new(RailsEventStore::Event)
PaymentFailed = Class.new(RailsEventStore::Event)
PaymentCaptured = Class.new(RailsEventStore::Event)
class Payment
InvalidOperation = Class.new(StandardError)
@bluecloudy
bluecloudy / gql-directives.js
Created June 11, 2017 15:54 — forked from voodooattack/gql-directives.js
GraphQL-Sequelize auto-model functionality. Directly translates the schema language into database models via directives.
const { parse, visit, print, Kind, BREAK } = require('graphql/language');
const { buildASTSchema } = require('graphql/utilities');
const { addResolveFunctionsToSchema } = require('graphql-tools');
const Sequelize = require('sequelize');
const { graphql } = require('graphql');
const jexl = require('jexl');
const deepAssign = require('deep-assign');
const { resolver: sequelizeResolver } = require('graphql-sequelize');
const { inspect } = require('util');