Skip to content

Instantly share code, notes, and snippets.

Avatar
🎓
Studying at college

Travis FootballFan141

🎓
Studying at college
View GitHub Profile
@llbbl
llbbl / fix_openssl_catalina.sh
Last active Jan 7, 2021
fix missing openssl files in catalina
View fix_openssl_catalina.sh
#!/bin/bash
echo 'update brew'
brew update
echo 'upgrade brew'
brew upgrade
@bradtraversy
bradtraversy / docker-help.md
Last active Jan 26, 2021
Docker Commands, Help & Tips
View docker-help.md

Docker Commands, Help & Tips

Show commands & management commands

$ docker

Docker version info

@cecilemuller
cecilemuller / 2019-https-localhost.md
Last active Jan 24, 2021
How to create an HTTPS certificate for localhost domains
View 2019-https-localhost.md

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
petarGitNik / http-get-dos.conf
Last active Oct 15, 2020
Fail2ban Configuration
View http-get-dos.conf
# Fail2Ban configuration file
#
# NOTE
# You should set up in the jail.conf file, the maxretry and findtime carefully in order to avoid false positives.
#
# Author: http://www.go2linux.org
# Modified by: samnicholls.net
# * Mon 6 Jun 2016 - Updated failregex to capture HOST group correctly
[Definition]
@budidino
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
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
View Installed-plugins.md

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 https://nookipedia.com/wiki/Fish/Animal_Crossing:_Wild_World 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;
}
View ide-plugins.md
@mseemann
mseemann / reactiveform.component.ts
Last active Oct 13, 2019
Reactive Forms Example(ts)
View reactiveform.component.ts
import {
Component,
OnInit
} from '@angular/core';
import { flyInOutTrigger } from './../animations/flyInOutTrigger-animation';
import { hostConfig } from './../animations/flyInOutTrigger-animation';
import {
FormGroup,
FormControl,
Validators,