Skip to content

Instantly share code, notes, and snippets.

View ValdasK's full-sized avatar

Valdas ValdasK

  • Satalia
  • Lithuania
View GitHub Profile
@mobilemind
mobilemind / git-tag-delete-local-and-remote.sh
Last active July 30, 2024 13:51
how to delete a git tag locally and remote
# delete local tag '12345'
git tag -d 12345
# delete remote tag '12345' (eg, GitHub version too)
git push origin :refs/tags/12345
# alternative approach
git push --delete origin tagName
git tag -d tagName
@ValdasK
ValdasK / angular autocomplete fix
Last active August 29, 2015 14:13
AngularJS directive to fix autocomplete (without jQuery)
(function() {
angular
.module('xApp')
.directive('triggerChange', triggerChangeDirective);
function triggerChangeDirective() {
return {
restrict: 'A',
priority: -10,
link: function (scope, element) {
#!/bin/sh
BOOT2DOCKER_CERTS_DIR=/var/lib/boot2docker/certs
CERTS_DIR=/etc/ssl/certs
CAFILE=${CERTS_DIR}/ca-certificates.crt
for cert in $(/bin/ls -1 ${BOOT2DOCKER_CERTS_DIR}); do
SRC_CERT_FILE=${BOOT2DOCKER_CERTS_DIR}/${cert}
CERT_FILE=${CERTS_DIR}/${cert}
HASH_FILE=${CERTS_DIR}/$(/usr/local/bin/openssl x509 -noout -hash -in ${SRC_CERT_FILE} 2>/dev/null)
@haasn
haasn / about:config.md
Last active July 29, 2024 21:03
Firefox bullshit removal via about:config

Firefox bullshit removal

Updated: Just use qutebrowser (and disable javascript). The web is done for.