Skip to content

Instantly share code, notes, and snippets.

View georgeoftown's full-sized avatar
🎯
Focusing

Jorge Guerra georgeoftown

🎯
Focusing
View GitHub Profile
@spyesx
spyesx / readme.md
Last active July 16, 2024 11:38
Clean up old linux kernels

Remove old linux kernels

Script way

# Dry run to check
bash remove-old-kernels.sh

# Run
bash remove-old-kernels.sh exec
@iliion
iliion / sync_date.sh
Created June 16, 2021 13:30
Update date/time in ubuntu
#! /bin/bash
sudo date -s "$(wget -qSO- --max-redirect=0 google.com 2>&1 | grep Date: | cut -d' ' -f5-8)Z"
@xirixiz
xirixiz / pihole-macvlan-synology-docker.txt
Last active June 10, 2024 08:44
Add a PiHole instance on a macvlan enabled Docker network (Synology eth0 example)
#!/bin/bash
# NAS IP: 192.168.1.10 in this example
# DHCP scope reservation for macvlan: 192.168.1.210/28 (Details below)
## Network: 192.168.1.210/28
## HostMin: 192.168.1.211
## HostMax: 192.168.1.224
## Hosts/Net: 14
# Create a Synology macvlan0 bridge network attached to the physical eth0, and add the ip range scope (sudo)
@bendews
bendews / pihole-dnsmasq-cloudflared.conf
Created April 5, 2018 09:17
Ansible Playbook to set up PiHole with DNS-Over-HTTPS via cloudflared
server=127.0.0.1#5053
@vanzod
vanzod / R-3.4.4-intel-2018a-X11-20180131_partial.log
Created March 29, 2018 19:02
(partial) EasyBuild log for failed build of /tmp/eb-gSVgiQ/files_pr6083/r/R/R-3.4.4-intel-2018a-X11-20180131.eb (PR #6083)
from ftgl.cpp(5):
ext/ftgl/FTCharToGlyphIndexMap.h(99): warning #858: type qualifier on return type is meaningless
const GlyphIndex find(CharacterCode c)
^
In file included from ext/ftgl/FTFace.cpp(30),
from ftgl.cpp(6):
ext/ftgl/FTLibrary.h(69): warning #858: type qualifier on return type is meaningless
const FT_Library* const GetLibrary() const { return library; }
^

Free O'Reilly books and convenient script to just download them.

Thanks /u/FallenAege/ and /u/ShPavel/ from this Reddit post

How to use:

  1. Take the download.sh file and put it into a directory where you want the files to be saved.
  2. cd into the directory and make sure that it has executable permissions (chmod +x download.sh should do it)
  3. Run ./download.sh and wee there it goes. Also if you do not want all the files, just simply comment the ones you do not want.
@justincbagley
justincbagley / How_to_Convert_Markdown_to_PDF.md
Last active June 14, 2024 22:42
How To Convert Markdown to PDF

How to convert markdown to PDF:

This post reviews several methods for converting a Markdown (.md) formatted file to PDF, from UNIX or Linux machines.

Using Pandoc:

$ pandoc How_I_got_svg-resizer_working_on_Mac_OSX.md -s -o test1.pdf
@juampynr
juampynr / guzzle_post.php
Last active May 1, 2023 19:52
Sample POST request with Guzzle
<?php
require 'vendor/autoload.php';
use GuzzleHttp\Client;
$client = new Client([
'base_uri' => 'http://example.com',
]);