Skip to content

Instantly share code, notes, and snippets.

Avatar
🎯
Focusing

ILMostro ILMostro

🎯
Focusing
View GitHub Profile
@ILMostro
ILMostro / # mirrorselect -s3 -b10 -D -d 7;
Created Apr 9, 2021
# mirrorselect -s3 -b10 -D -d 7;
View # mirrorselect -s3 -b10 -D -d 7;
# mirrorselect -s3 -b10 -D -d 7
main(); config_path = /etc/portage/make.conf
main(); rsync = False
get_filesystem_mirrors(): config_path = /etc/portage/make.conf
get_filesystem_mirrors(): mirrorlist = ['http://mirror.rackspace.com/gentoo/', 'https://gentoo.osuosl.org/', 'http://mirrors.rit.edu/gentoo/']
get_filesystem_mirrors(): ignoring non-accessible mirror = https://gentoo.osuosl.org/
get_filesystem_mirrors(): fsmirrors = []
using url: https://api.gentoo.org/mirrors/distfiles.xml
* Using url: https://api.gentoo.org/mirrors/distfiles.xml
getlist(): fetching https://api.gentoo.org/mirrors/distfiles.xml
View mirrorselect_with_python3.9
mirrorselect -s3 -b10 -D
* Using url: https://api.gentoo.org/mirrors/distfiles.xml
* Downloading a list of mirrors...
Got 196 mirrors.
* Downloading mirrorselect-test files from each mirror... [71 of 196]Traceback (most recent call last):
File "/usr/lib/python-exec/python3.9/mirrorselect", line 61, in <module>
MirrorSelect().main(sys.argv)
File "/usr/lib/python3.9/site-packages/mirrorselect/main.py", line 380, in main
urls = self.select_urls(hosts, options)
File "/usr/lib/python3.9/site-packages/mirrorselect/main.py", line 329, in select_urls
View Gentoo_ruby-2.4-removal-issues
emerge -avuDN @world
WARNING: One or more updates/rebuilds have been skipped due to a dependency conflict:
dev-ruby/xmlrpc:0
(dev-ruby/xmlrpc-0.3.0:0/0::gentoo, ebuild scheduled for merge) USE="-doc -test" ABI_X86="(64)" RUBY_TARGETS="ruby25 -ruby24 (-ruby26) (-ruby27)" conflicts with
>=dev-ruby/xmlrpc-0.2.1[ruby_targets_ruby24] required by (dev-lang/ruby-2.4.10:2.4/2.4::gentoo, installed) USE="berkdb gdbm ipv6 rdoc ssl -debug -doc -examples -jemalloc -libressl -rubytests -socks5 -static-libs -tk -xemacs" ABI_X86="(
64)"
^^^^^^^^^^^^^^^^^^^
@ILMostro
ILMostro / borgitup
Created Apr 13, 2020
Borg backup systemd timer, service, and logging config
View borgitup
# cat /etc/systemd/system/borgitup.service
[Unit]
Description=Create a backup using borg
[Service]
Type=oneshot
Environment=BORG_LOGGING_CONF=/etc/borg/logging.conf
; ExecStart=/usr/local/bin/borgitup
; 20200413 -- preprend a hyphen (-) to ignore error return value
@ILMostro
ILMostro / profile-overrides
Created Mar 2, 2020
/etc/portage/profile/overrides
View profile-overrides
package.mask
-net-firewall/firewalld
package.use.mask
### 20191230 -- negates the instruction set in
### /usr/portage/profiles/features/selinux/package.use.mask
net-wireless/bluez -user-session
use.mask
-systemd
@ILMostro
ILMostro / dropdown.md
Created Dec 16, 2019 — forked from citrusui/dropdown.md
"Dropdowns" in Markdown
View dropdown.md
How do I dropdown?
This is how you dropdown.

<details>
<summary>How do I dropdown?</summary>
<br>
This is how you dropdown.
@ILMostro
ILMostro / lxc-arch2
Last active Feb 11, 2018 — forked from lilydjwg/lxc-arch2
lxc-arch2: a script to create a copy of my Arch Linux system in LXC for testing
View lxc-arch2
#!/bin/zsh -e
cd ~/tmpfs
mkdir -p .lxc-root .lxc-data/etc .lxc-data/home/lilydjwg/{.vim,.cache} .lxc-work
sudo GDK_DPI_SCALE=$GDK_DPI_SCALE zsh -e - <<'EOF'
modprobe overlay
mountpoint .lxc-root || mount -t overlay -o lowerdir=/,upperdir=$PWD/.lxc-data,workdir=$PWD/.lxc-root overlayfs $PWD/.lxc-root
# .lxc-root/etc/resolv.conf is protected
@ILMostro
ILMostro / gentoo-wip-systemd-selinux.md
Last active Dec 18, 2019
Documenting the work done and/or needed on a Gentoo system to make SELinux work with systemd
View gentoo-wip-systemd-selinux.md
IRC Logs from the #gentoo-hardened and #selinux IRC channels on FreeNode
2018-01-27 23:13:50	-->	ilmostro (~ilmostro@unaffiliated/ilmostro) has joined #gentoo-hardened
2018-01-27 23:13:50	--	Topic set by Zorry (~quassel@gentoo/developer/zorry) on Wed, 06 Dec 2017 19:01:01
2018-01-27 23:13:51	--	Channel #gentoo-hardened: 270 nicks (9 ops, 38 voices, 223 normals)
2018-01-27 23:13:52	--	Channel created on Sun, 26 Nov 2006 00:42:49
2018-01-27 23:54:23	ilmostro	Does anyone here know why the 17.0 SELinux profile is in "dev" still? I'm on a 17.0 systemd desktop profile right now.  AFAICT, the stable selinux profile is part of the hardened, unversioned profile set.  Has anyone used the 17.0 selinux profile successfully?
2018-01-28 00:29:20	ilmostro	I come from a RHEL background, where, AFAIK, the default SELinux setup is "targeted" with "unconfined" domain enabled.  After reading the wiki page for SELinux/Installation, I realize that might not be as secure as I had assumed. Alterna
@ILMostro
ILMostro / get_oracle_jdk_linux_x64.sh
Created Apr 25, 2017 — forked from n0ts/get_oracle_jdk_x64.sh
Get latest Oracle JDK package bash shell script
View get_oracle_jdk_linux_x64.sh
#!/bin/bash
# You must accept the Oracle Binary Code License
# http://www.oracle.com/technetwork/java/javase/terms/license/index.html
# usage: get_jdk.sh <ext> <jdk_version>
# ext: rpm
# jdk_version: default 8
ext=rpm
jdk_version=8
@ILMostro
ILMostro / example-subtree-usage.md
Created Apr 1, 2017 — forked from kvnsmth/example-subtree-usage.md
A real world usage for git subtrees.
View example-subtree-usage.md

Let's say you have an iOS project, and you want to use some external library, like AFNetworking. How do you integrate it?

With submodules

Add the project to your repo:

git submodule add git@github.com:AFNetworking/AFNetworking.git Vendor/AFNetworking

or something to that effect.