Skip to content

Instantly share code, notes, and snippets.

View miawgogo's full-sized avatar
🐧
Processing Gender, Please Wait

nyangogo miawgogo

🐧
Processing Gender, Please Wait
View GitHub Profile
@miawgogo
miawgogo / git.md
Created November 4, 2019 14:17
Git

How to Git

to help people who have not worked with git before, or struggle to use it in a multi person project here are some guidelines and commands to follow. Also here are some links:

Guidelines

@miawgogo
miawgogo / openpgp.txt
Created February 19, 2019 01:25
OpenKeychain Linked Identity
This Gist confirms the Linked Identity in my OpenPGP key, and links it to this GitHub account.
Token for proof:
[Verifying my OpenPGP key: openpgp4fpr:0597c4e384d6d33f2459a85839c612df10d3e188]
@miawgogo
miawgogo / tweet.md
Last active January 21, 2019 16:28
Tweet to discord

@discordapp I may go back to IRC from Discord due to your neglect of the Linux platform, and others may follow (1/11)

So to preface this, I have been a Full time Linux user since 2016 and a Discord user Since about the same time too. August last year decided to pay for nitro as Discord was becoming a heavy part of the communitys i am in, But this is when the issues began. (2/11)

I started to notice that the feature parity of the discord client on Linux began to drift from windows, We had weird bugs that are never fixed(some a year old, see attached image) even though some are one line long. But more recently I have had to go through your support, and it is awful. (3/11)

It used to be good, there was a dev at your company who cared about linux and was active in the Discord Linux server, but since he left in 2017 to go work for someone else, getting support and getting bugs fixed has been awful, and we are beginning to miss out on features. (4/11)

We have to go through people who have no idea of any info ab

@miawgogo
miawgogo / coc.txt
Created September 28, 2018 13:30
my CoC
They should be no harassment of the committer themselves around the approval of commits. Critisim must be wholey based on issues with the code(ignoring of style guidlines, terrible hacks and bad security practices are examples of issues) and not about the committer. Any critisim that falls outside of code should be reported to the board of conduct
any actions preformed on social media or in other public places that could negatively impact the view of the project, such as hate speech, harassment and Illegal activity, will be disciplined depending on severity. Displinary actions may include a short email explaining what was wrong with your behaviour(there will be a max of 3 of these and reset after a clean 2 months), temporary removal of committing rights, to an outright ban from commiting
@miawgogo
miawgogo / mastermindloop.c
Created November 14, 2017 16:06
Mastermind
while ((BLACKPEGS(workingCandidate.score) < PEGS) && currentListOfCandidates.indexOfLastEntryAdded >= 0) {
/////your code here
//If (working candidate is not infeasible)
//Generate all 1-step offspring and add to openList
/// loop through pegs
printf("Run");
for(int i = 0; i<4; i++){
/// save old val
int oldval = workingCandidate.variableValues[i];
/// loop throgugh colours
[pip]
profile-desc="Shows the video in macosx style picture in picture window, defults to a 320x200 window"
ontop
no-border
on-all-workspaces
autofit=480
geometry=99%:95%
def wiki(info,usrs):
link="https://en.wikipedia.org/w/api.php"
payload = {'action': 'query', 'list': 'search', 'format': 'json', 'srsea$
page = requests.get(link, headers=headers, timeout=5, params=payload)
page.encoding = 'UTF-8'
response = json.loads(page.text)
result = response['query']['search'][0]
url = "https://en.wikipedia.org/wiki/" + result['title'].replace(" ", "_$
msg = "{}: {}... {}".format(result['title'], cleanhtml(result['snippet'].split(".")[0]), url)
say(msg)
device_tracker:
- platform: owntracks
max_gps_accuracy: 100
- platform: snmp
host: 192.168.1.1
community: public
baseoid: 1.3.6.1.2.1.4.22.1.2
track_new_devices: false
17-04-23 22:40:16 ERROR (MainThread) [homeassistant.components.sensor] Error while setting up platform netatmo
Traceback (most recent call last):
File "/srv/homeassistant/lib/python3.6/site-packages/homeassistant/helpers/entity_component.py", line 155, in _async_setup_platform
entity_platform.schedule_add_entities, discovery_info
File "/usr/lib/python3.6/concurrent/futures/thread.py", line 55, in run
result = self.fn(*self.args, **self.kwargs)
File "/srv/homeassistant/lib/python3.6/site-packages/homeassistant/components/sensor/netatmo.py", line 90, in setup_platform
dev.append(NetAtmoSensor(data, module_name, variable))
File "/srv/homeassistant/lib/python3.6/site-packages/homeassistant/components/sensor/netatmo.py", line 103, in __init__
SENSOR_TYPES[sensor_type][0])
@miawgogo
miawgogo / rules.md
Last active July 23, 2020 13:37
Rules and guidelines for the JB unoffical Matrix Room

RULES and stuff

Rules

  • No Drama, Civil disccustion of drama is ok, but flamewars is not allowed.
  • No Polarising politics, well researched debate and comedy is allowed. This boils down to the rule above, No Flamewars
  • Just respect each other and dont be a jerk
  • No NSFW Images due to the fact that matrix shows all images inline at full size. Links must be marked

As per the unspoken JB IRC Rule, the mods will also make it up as they go along if they want, Really it doesnt matter, its just to prevent arguments