This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# nmcli con add type wifi ifname wlp3s0 con-name work-wifi ssid work-ssid | |
# nmcli con edit id work-wifi | |
nmcli> set ipv4.method auto | |
nmcli> set 802-1x.eap peap | |
nmcli> set 802-1x.phase2-auth mschapv2 | |
nmcli> set 802-1x.identity myusername | |
nmcli> set 802-1x.password mypassword | |
nmcli> set wifi-sec.key-mgmt wpa-eap | |
nmcli> save | |
nmcli> activate |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# taken from here: | |
# https://www.reddit.com/r/Piracy/comments/4kn6rq/comprehensive_guide_to_blocking_ads_on_spotify/ | |
0.0.0.0 adclick.g.doublecklick.net | |
0.0.0.0 adeventtracker.spotify.com | |
0.0.0.0 ads-fa.spotify.com | |
0.0.0.0 analytics.spotify.com | |
0.0.0.0 audio2.spotify.com | |
0.0.0.0 b.scorecardresearch.com | |
0.0.0.0 bounceexchange.com | |
0.0.0.0 bs.serving-sys.com |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
TILCD::TILCD(uint8_t ce, uint8_t di, uint8_t wr, uint8_t rst, uint8_t d0, uint8_t d1, uint8_t d2, uint8_t d3, uint8_t d4, uint8_t d5, uint8_t d6, uint8_t d7) | |
{ | |
_ce = ce; | |
_di = di; | |
_wr = wr; | |
_rst = rst; | |
_d0 = d0; | |
_d1 = d1; | |
_d2 = d2; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/bash | |
# A script to configure Lattice iCE40 FPGA by SPI from Raspberry Pi | |
# | |
# Copyright (C) 2015 Jan Marjanovic <jan@marjanovic.pro> | |
# | |
# This program is free software: you can redistribute it and/or modify | |
# it under the terms of the GNU General Public License as published by | |
# the Free Software Foundation, either version 3 of the License, or | |
# (at your option) any later version. |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
class SCDQ5541 { | |
private: | |
int m_clock, m_data, m_load; | |
void bitbang(unsigned char code) | |
{ | |
digitalWrite(m_load, LOW); | |
for (int i = 0; i < 8; i++) { | |
digitalWrite(m_clock, LOW); | |
digitalWrite(m_data, code & 0x01); |