Skip to content

Instantly share code, notes, and snippets.

View ff6347's full-sized avatar
🤖
updating status…

Fabian Morón Zirfas ff6347

🤖
updating status…
View GitHub Profile
@ff6347
ff6347 / wifi-on-ubuntu-server-18.md
Created April 9, 2020 13:14 — forked from austinjp/wifi-on-ubuntu-server-18.md
Enabling wifi on Ubuntu server 18

Wifi on Ubuntu 18 server

TLDR

  1. Install wpasupplicant
  2. Turn on wifi radios: sudo nmcli radio wifi on
  3. Check your devices are recognised even if they're not "managed": sudo iwconfig
  4. Check your wifi (here called "wlp3s0") is capable of detecting nearby routers: sudo iwlist wlp3s0 scan
  5. Configure netplan by dropping a file called 01-netcfg.yaml into /etc/netplan/ or edit existing file there. See example below.
  6. netplan try, netplan generate, netplan apply.
@ff6347
ff6347 / index.html
Created April 3, 2020 05:06
burger menu with html and css #css #html
<!doctype html>
<html lang="en">
<head>
<meta charset="utf-8">
<meta http-equiv="x-ua-compatible" content="ie=edge">
<!-- <meta name="viewport" content="width=device-width, initial-scale=1"> -->
<!-- The above 3 meta tags *must* come first in the head; any other head content must come *after* these tags -->
<style>
/**
@ff6347
ff6347 / is-this-port-used-somehow.sh
Created April 2, 2020 07:25
Quick call to see if a specific port is used by a application you normally use #bash
curl https://www.iana.org/assignments/service-names-port-numbers/service-names-port-numbers.csv | awk -F ',' '$2 > 0 {print $1, $2}' | grep "\s4004"
@ff6347
ff6347 / .vimrc
Last active May 25, 2020 10:27
Some basic vimrc so I can curl it into a ubuntu box
call plug#begin(expand('~/.vim/plugged'))
Plug 'arcticicestudio/nord-vim'
Plug 'sheerun/vim-polyglot'
call plug#end()
filetype indent plugin on
colorscheme nord
syntax on
set autoindent
set backspace=2
set cursorline
{
"extends": [
"config:base"
],
"packageRules": [
{
"updateTypes": ["minor", "patch", "pin", "digest"],
"automerge": true
}
]
@ff6347
ff6347 / chain.js
Last active April 2, 2020 07:28
JS Method Chaining example #js
const chain = {
value: 0,
up () {
this.value = this.value + 1;
return this;
},
down (){
this.value = this.value - 1;
return this;
@ff6347
ff6347 / react-confirm.js
Created February 6, 2020 14:11 — forked from primaryobjects/react-confirm.js
A simple example of a confirm alert dialog in ReactJs / React.
<div className='delete-button' onClick={() => { if (window.confirm('Are you sure you wish to delete this item?')) this.onCancel(item) } } />
curl -H "Authorization: token $OAUTH_TOKEN" --data '{"archived": true}' https://api.github.com/repos/:user/:repo
curl -H "Authorization: token $OAUTH_TOKEN" https://api.github.com/repos/:user/:repo/pulls/:pullId/merge
String str = "BBBBBhuhuhuhuhuhssdsdf";
void setup() {
for(int i = 0; i < str.length();i++){
println(lookUpChar(str.charAt(i)));
}
//char foo = 'a';
/*
..- --.- ..- -.... -..-- .-..-. -.-..---.-.-....--.-- -....-.... -..-- .-.-..-.-.... .- .--
B A S I L . J S
Bringing the spirit of the Processing visualization language to Adobe InDesign.
License - MIT
Core