Skip to content

Instantly share code, notes, and snippets.

💜
(dev 💜 ops witching)

Igor Galić igalic

💜
(dev 💜 ops witching)
Block or report user

Report or block igalic

Hide content and notifications from this user.

Learn more about blocking users

Contact Support about this user’s behavior.

Learn more about reporting abuse

Report abuse
View GitHub Profile
View foo.rs
match req {
Ok(mut res) => {
if let Ok(text) = &res.text() {
if let Ok(ap_sign) = serde_json::from_str::<ApSignature>(text) {
if let Ok(mut json) = serde_json::from_str::<CustomPerson>(text) {
json.custom_props = ap_sign; // without this workaround, publicKey is not correctly deserialized
Some(json)
} else {
None
}
@igalic
igalic / zpool failure
Created Nov 14, 2018
zpool cmdline != zpool
View zpool failure
======================================================================
FAIL: tests.unittests.test_handler.test_handler_resizefs.TestResizefs.test_handle_modern_zfsroot
----------------------------------------------------------------------
Traceback (most recent call last):
File "/home/meena/src/cloud/cloud-init/.tox/py3/lib/python3.7/site-packages/mock/mock.py", line 1305, in patched
return func(*args, **keywargs)
File "/home/meena/src/cloud/cloud-init/tests/unittests/test_handler/test_handler_resizefs.py", line 207, in test_handle_modern_zfsroot
dresize.call_args[0][0][0])
AssertionError: ('zpool', 'online', '-e', 'zroot', '/dev/da0p3') != 'zpool'
@igalic
igalic / gsd-backlight-helper: wat?
Created Oct 28, 2018
what's gsd-backlight-helper doing, and how is that *helping* ?
View gsd-backlight-helper: wat?
Okt 28 16:41:34 sinix pkexec[13151]: meena: Executing command [USER=root] [TTY=unknown] [CWD=/home/meena] [COMMAND=/usr/lib/gnome-settings-daemon/gsd-backlight-helper --set-brightness 637]
Okt 28 16:41:35 sinix pkexec[13156]: pam_unix(polkit-1:session): session opened for user root by (uid=1000)
Okt 28 16:41:35 sinix pkexec[13156]: meena: Executing command [USER=root] [TTY=unknown] [CWD=/home/meena] [COMMAND=/usr/lib/gnome-settings-daemon/gsd-backlight-helper --set-brightness 646]
Okt 28 16:41:35 sinix pkexec[13161]: pam_unix(polkit-1:session): session opened for user root by (uid=1000)
Okt 28 16:41:35 sinix pkexec[13161]: meena: Executing command [USER=root] [TTY=unknown] [CWD=/home/meena] [COMMAND=/usr/lib/gnome-settings-daemon/gsd-backlight-helper --set-brightness 637]
Okt 28 16:41:36 sinix pkexec[13166]: pam_unix(polkit-1:session): session opened for user root by (uid=1000)
Okt 28 16:41:36 sinix pkexec[13166]: meena: Executing command [USER=root] [TTY=unknown] [CWD=/home/meena] [COMMAND=/usr/lib/gnome-set
View foo.rb
newproperty(:rlimits) do
desc <<-EOM
A Hash of rlimits for this jail
Example:
jail { xforkb:
ensure => present,
rlimits => { nproc => {action => deny, amount => 50}}
}
View hiera_backend.pp
# replace hiera-file with a custom lookeup_key backend
function profiles::file::hiera_backend(
String $key,
Hash $options,
Puppet::LookupContext $context,
) {
$contents = inline_template("<%= File.read('${options[path]}/${key}', mode: 'rb') {|f| f.read } if File.exists?('${options[path]}/${key}') %>")
if $contents == '' or $contents == undef {
$context.not_found
}
View -
diff --git a/metadata.json b/metadata.json
index 1e5b260..06c4320 100644
--- a/metadata.json
+++ b/metadata.json
@@ -1,6 +1,6 @@
{
"name": "puppet-network",
- "version": "0.7.1-rc0",
+ "version": "0.8.0",
"author": "Vox Pupuli",
View -
402181258
282362601
2345460642
2923118128
849619826741985280
22647621
52971106
52544275
824704312530141184
850332336583393281
@igalic
igalic / keybase.md
Created Nov 24, 2016
keybase proof
View keybase.md

Keybase proof

I hereby claim:

  • I am igalic on github.
  • I am igalic (https://keybase.io/igalic) on keybase.
  • I have a public key ASBw80yrrPMwDj84rOkBTu_e8gcLB6ZSV39A04qAvgSktgo

To claim this, I am signing this object:

@igalic
igalic / raco pkg -l
Created Jun 22, 2016
tulip is installed as user specific… for root???????
View raco pkg -l
 ╍╍  raco pkg show -l 4s 512ms ┃
Installation-wide:
Package Checksum Source
main-distribution 8802f8e0d53f2d0c8cc79249197ead05ea9d81e1 (catalog "main-distribution")
racket-lib 78e54839a012a8aa75ddaeed045665108ec81a62 (catalog "racket-lib")
[184 auto-installed packages not shown]
User-specific for installation "6.5":
[none]
 ╍╍  sudo -H raco pkg show -l 500ms ┃
Installation-wide:
View -
igalic@levix ~> fisher up new
INFO Updating 1 plugin
Username for 'https://github.com': ARGH Fetch new
OKAY Done in 1s 116ms
igalic@levix ~>
You can’t perform that action at this time.