Skip to content

Instantly share code, notes, and snippets.

Artem Yakimenko Temikus

Block or report user

Report or block Temikus

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
@Temikus
Temikus / tf_graph
Last active Aug 29, 2015
Terraform draw cycles
View tf_graph
terraform graph -draw-cycles -module-depth=-1 plan.tf | dot -Tpng > graph.png`
View gist:2ea2e79dae9862315499
λ vagrant plugin install --debug /Users/temikus/Code/vagrant-dev/vagrant-google/pkg/vagrant-google-0.1.4.gem (1)
INFO global: Vagrant version: 1.7.2
INFO global: Ruby version: 2.0.0
INFO global: RubyGems version: 2.0.14
INFO global: VAGRANT_EXECUTABLE="/opt/vagrant/bin/../embedded/gems/gems/vagrant-1.7.2/bin/vagrant"
INFO global: VAGRANT_INSTALLER_EMBEDDED_DIR="/opt/vagrant/bin/../embedded"
INFO global: VAGRANT_INSTALLER_VERSION="2"
INFO global: VAGRANT_DETECTED_OS="Darwin"
INFO global: VAGRANT_INSTALLER_ENV="1"
INFO global: VAGRANT_INTERNAL_BUNDLERIZED="1"
View keybase.md

Keybase proof

I hereby claim:

  • I am temikus on github.
  • I am temikus (https://keybase.io/temikus) on keybase.
  • I have a public key whose fingerprint is 75EA 0B04 1004 8AE5 C833 E73C 1818 2EDE 9A18 AA88

To claim this, I am signing this object:

@Temikus
Temikus / update_do.sh
Last active May 1, 2019
OpenWRT DDNS using DigitalOcean API
View update_do.sh
# Script for sending user defined updates using DO API
# 2015 Artem Yakimenko <code at temik dot me>
#
# activated inside /etc/config/ddns by setting
#
# option update_script '/usr/lib/ddns/update_do.sh'
#
# the script is parsed (not executed) inside send_update() function
# of /usr/lib/ddns/dynamic_dns_functions.sh
# so you can use all available functions and global variables inside this script
@Temikus
Temikus / break_bluetooth.sh
Created Jan 14, 2015
Mac break bluetooth
View break_bluetooth.sh
#!/bin/bash
# The following commands effectively break bluetooth on a mac. Menu is stuck in an "off" state that cannot be toggled back.
# Can be used when bluetooth needs to be disabled for security reasons.
echo "Powering bluetooth off"
sudo defaults write /Library/Preferences/com.apple.Bluetooth.plist "ControllerPowerState" 0
echo "Disabling services"
sudo /bin/launchctl unload -w /System/Library/LaunchDaemons/com.apple.blued.plist'
@Temikus
Temikus / gist:a0b459b41568f37ecefa
Created Nov 30, 2014
Kickstart post redirection to see progress
View gist:a0b459b41568f37ecefa
%post
# Change to a vt to see progress
exec < /dev/tty3 > /dev/tty3
chvt 3
# redirect output to ks-post.log including stdout and stderr
(
@Temikus
Temikus / rogue
Last active Dec 22, 2015
rogue.awk - Find files that are not accounted for in RPMdb. Usage: awk -f rogue.awk
View rogue
#!/bin/awk -f
#
# rogue.awk - Find files that are not accounted for
#
# awk -f rogue.awk
#
# Rogue is called from a cron job on an hourly basis.
# It parses files in the filesystem and checks to see
# that they belong to an rpm. Then it prints the
# output of rpm -Va to verify those files that do
View check_devs
#! /bin/bash
#Retrieve the list of devices, an IPA file was built for by parsing the embedded.mobileprovision.
[[ -n "$1" ]] || { echo "Usage: ./check_devs.sh sample.ipa"; exit 0 ; }
LANG=C
IPAFILE=$1
TMPDIR=tmp$$.tmp
mkdir $TMPDIR
unzip -qq $IPAFILE -d $TMPDIR
@Temikus
Temikus / gist:5895078
Created Jun 30, 2013
Check Apple MDM certificate validity.
View gist:5895078
openssl s_client -connect gateway.push.apple.com:2195 -cert mdm_push_cert.pem
@Temikus
Temikus / dhcp_pretty.sh
Created May 11, 2013
Awk script to make the dhcp.leases more readable
View dhcp_pretty.sh
awk ' { out = ""} \
{ $1=="lease"||$1=="client-hostname" ? out=" " $2 : out=out } \
{ $1=="binding"||$1=="hardware" ? out= " " $3: out=out } \
{ $1=="ends"? out=" " $3 " " $4: out=out } \
{ $1=="}"? out="\n": out=out } \
{ printf out," " }' dhcpd.leases \
| grep active \
| sed -e s/'[{};" ]'/\ /g \
| awk '{ printf "%-15s %-17s %-10s %-5s\n", $1, $5, $2, $3 }'
You can’t perform that action at this time.