Skip to content

Instantly share code, notes, and snippets.

Studying at college

Travis FootballFan141

Studying at college
View GitHub Profile
llbbl /
Last active Jan 7, 2021
fix missing openssl files in catalina
echo 'update brew'
brew update
echo 'upgrade brew'
brew upgrade
bradtraversy /
Last active Jan 26, 2021
Docker Commands, Help & Tips

Docker Commands, Help & Tips

Show commands & management commands

$ docker

Docker version info

cecilemuller /
Last active Jan 24, 2021
How to create an HTTPS certificate for localhost domains

How to create an HTTPS certificate for localhost domains

This focuses on generating the certificates for loading local virtual hosts hosted on your computer, for development only.

Do not use self-signed certificates in production ! For online certificates, use Let's Encrypt instead (tutorial).

petarGitNik / http-get-dos.conf
Last active Oct 15, 2020
Fail2ban Configuration
View http-get-dos.conf
# Fail2Ban configuration file
# You should set up in the jail.conf file, the maxretry and findtime carefully in order to avoid false positives.
# Author:
# Modified by:
# * Mon 6 Jun 2016 - Updated failregex to capture HOST group correctly
budidino / string-truncate.swift
Last active Jan 10, 2021 — forked from vicc/string-truncate.swift
String truncate extension for Swift 4
View string-truncate.swift
extension String {
Truncates the string to the specified length number of characters and appends an optional trailing string if longer.
- Parameter length: Desired maximum lengths of a string
- Parameter trailing: A 'String' that will be appended after the truncation.
- Returns: 'String' object.
func trunc(length: Int, trailing: String = "") -> String {
return (self.count > length) ? self.prefix(length) + trailing : self
ianchen06 / end.gcode
Last active Oct 3, 2020
Anet A8 start end gcode
View end.gcode
;End GCode
M104 S0 ;extruder heater off
M140 S0 ;heated bed heater off (if you have it)
G91 ;relative positioning
G1 E-1 F300 ;retract the filament a bit before lifting the nozzle, to release some of the pressure
G1 Z+0.5 E-5 X-20 Y-20 F{travel_speed} ;move Z up a bit and retract filament even more
G28 X0 Y0 ;move X/Y to min endstops, so the head is out of the way
M84 ;steppers off

Installed plugins for Sublime Text 3

2017.05.20 update.

  • A File Icon
  • AdvancedNewFile
  • All Autocomplete
  • ApacheConf.tmLanguage
  • AutoFileName
  • Babel
View animalcrossing_webscraper.js
// Originally used on to extract fish data
returnedObj = '[\n';
function scrapeFish() {
for (var i = 0; i < 56; i++) {
fishName = document.body.children[7].children[0].children[0].children[1].children[0].children[1].children[1].children[4].children[3].children[0].children[2].children[0].children[1].children[i].children[1].children[0].innerHTML;
returnedObj += `\t{'task_name': '${fishName}', 'task_complete': false},\n`;
returnedObj += '\n]';
return returnedObj;
mseemann / reactiveform.component.ts
Last active Oct 13, 2019
Reactive Forms Example(ts)
View reactiveform.component.ts
import {
} from '@angular/core';
import { flyInOutTrigger } from './../animations/flyInOutTrigger-animation';
import { hostConfig } from './../animations/flyInOutTrigger-animation';
import {