Why is .gitignore not ignoring my files?

Gunnard/ January 18, 2022/ Development/ 0 comments

.gitignore only ignores files that are not part of the repository yet. If you already git added some files, their changes will still be tracked. To remove those files from your repository (but not from your file system) use git rm –cached on them.

Create a Discord Bot Using Asynchronous PHP in 4 steps

Gunnard/ December 8, 2021/ PHP/ 0 comments

Intro The landscape right now for Discord bots is filled with python and javascript. These work well but what about our beloved PHP? There is a project named Discord-PHP which bridges the gap for us using asynchronous PHP to keep our bot alive. Prerequisites PHP 7.2 or higher Composer ext-json ext-zlib 1. Create a new application The first thing you

Read More

Create your own Discord bot with Python

Gunnard/ November 16, 2021/ Development, Learning/ 0 comments

What is the best way to develop a Discord bot? You’ve always wondered about this, and we’re here to walk you through the process of creating your own Discord bot. You may make a Discord bot on any platform, including smartphones, tablets, and computers. We’ll use repl.it to run the bot in this tutorial, but you may also run it

Read More

Bootstrap breakpoint show / hide cheatsheet

Gunnard/ June 11, 2021/ css, Development/ 0 comments

I have been working on a project for a little while now and I have kept a tab open to this list the ENTIRE time. This has helped with every situation I have come across when it involves Bootstrap 5 breakpoints and how to show or hide elements easily. This list shows how to hide elements at a certain point “and down” i.e. show at large but hide at anything medium and down. Also the reverse is listed — show from extra small to medium and then hide.

How to Autosign git commits

Gunnard/ April 7, 2021/ PHP/ 0 comments

In the light of the recent PHP Git server situation, teams are double-downing on signing commits. Signing your commit with your GPG key lets your team know that this code came from the person whose name is on the commit and the code has not been tampered with. Normally you would just use: git commit -S -m’My Git message‘ This

Read More

How to patch Sudo

Gunnard/ January 28, 2021/ Devops, Security/ 0 comments

CVE-2021-3156: Heap-Based Buffer Overflow in Sudo (Baron Samedit) made itself known over the past few days and admins everywhere are rushing to patch it. Ill skip the analysis, watch the video below for that, and get right to patching.

JetBrains software Teamcity possibly used in Solarwinds hack

Gunnard/ January 7, 2021/ Development, hacking, PHP, Security/ 0 comments

In a New York Times article released on January 6, 2021, JetBrains and their Continuous Integration / Continuous Deployment (CI/C) application Teamcity were confirmed to be used by recently hacked software company SolarWinds.

Cryptocurrency Users Targeted in Cross-Platform ElectroRAT Malware

Gunnard/ January 6, 2021/ Cryptocurrency, hacking, Security/ 0 comments

Using Pastebin unique visitor counts for tracking, over 6,500 victims are estimated to be affected after detection of this malware in December. These numbers may be off and definatly will grow in the coming days. Called ElectroRAT by Intezer, the RAT is written from ground-up in Golang and designed to target multiple operating systems such as Windows, Linux, and macOS. https://thehackernews.com/2021/01/warning-cross-platform-electrorat.html “Cybersecurity

Read More

Stop spammers commenting on WordPress media files

Gunnard/ January 5, 2021/ Security/ 0 comments

A website I worked on last year, recently had a wave of media spam comments hit my inbox. There is no easy way within WordPress to turn off commenting for media items, especially if you have >100 items and just want it DONE! The solution I found was a quick SQL query:

British court rejects extradition to U.S. of Julian Assange

Gunnard/ January 4, 2021/ Security/ 0 comments

The U.S. government has been waiting the British court’s ruling for some time now and on Monday (1/4/21) the court made their announcement. No extradition for Julian Assange on charges pertaining to illegally obtaining and sharing classified material related to national security.