Skip to content

Instantly share code, notes, and snippets.

View desyncr's full-sized avatar

DC* desyncr

View GitHub Profile
diff --git a/zpm.t b/zpm.t
index 1448bd3..095e33b 100644
--- a/zpm.t
+++ b/zpm.t
@@ -115,15 +115,15 @@ Plugin directory is properly unlinked after remove
$ zpm "zsh-users/zsh-syntax-highlighting" > /dev/null
$ zpm remove "zsh-users/zsh-syntax-highlighting" > /dev/null
$ ls ~/.zpm/plugins/zsh-users/zsh-syntax-highlighting
- ls: cannot access '.*/.zpm/plugins/zsh-users/zsh-syntax-highlighting': No such file or directory (re)
- [2]
@desyncr
desyncr / .travis.yml
Last active February 7, 2017 00:11
basic travis support
language: c
compiler:
- clang
- gcc
before_script:
- sudo apt-get install zsh
install:
@desyncr
desyncr / github_search_cli.sh
Created December 17, 2016 23:25 — forked from defel/github_search_cli.sh
Search Github for Projects which README file contains "antigen bundle"
curl https://api.github.com/search/repositories\?q\=antigen bundle+in:readme | json -a items| json -a id name full_name html_url
@desyncr
desyncr / release
Created December 10, 2016 16:59 — forked from foca/release
Small shell script to create GitHub releases from the command line
#!/usr/bin/env bash
set -e
[ -z "$DEBUG" ] || set -x;
usage() {
echo "$0 <repo> <tag> [<release name>] [-- <asset>...]" >&2;
}
if [ "$1" = "-h" -o "$1" = "--help" ]; then
@desyncr
desyncr / README
Created December 10, 2016 05:54
Notes on making a signed software release
Notes on making a signed software release
=========================================
Create a signed tag called NAME-VERSION with
git tag --message=NAME-VERSION --sign NAME-VERSION
Generate a release tar.gz and signature with
git archive --output=NAME-VERSION.tar.gz --prefix=NAME-VERSION/ NAME-VERSION
@desyncr
desyncr / gist:ecb12d59b27c3501a2fffbf6db4b1775
Created November 21, 2016 17:13
VirtualBox kernel not loaded/compiled
1- sudo su - ; sh /home/dario/Playground/update_grub.sh
2- dnf install VirtualBox
3- sudo akmods; sudo systemctl restart systemd-modules-load.service
@desyncr
desyncr / AuthServiceProvider.php
Created September 27, 2016 19:57 — forked from gbuckingham89/AuthServiceProvider.php
Blog: Laravel Authentication Customer User Provider Demo
<?php
namespace App\Authentication;
use Auth;
use App\Authentication\UserProvider;
use Illuminate\Support\ServiceProvider;
class AuthServiceProvider extends ServiceProvider
{
#!/bin/bash
rm -f /tmp/mtime.$$
for x in {1..10}
do
/usr/bin/time -f "real %e user %U sys %S" -a -o /tmp/mtime.$$ $@
tail -1 /tmp/mtime.$$
done
@desyncr
desyncr / insert-file
Created July 13, 2016 20:49 — forked from xor-freenet/insert-file
bash script to insert a file into Freenet (using FCP) (works on OS X)
#!/bin/bash
#
# GUID:F9FC4F74-501A-46BC-B57E-F9D8B4EFB83E
function client_hello() {
echo "ClientHello"
echo "Name=${1}"
echo "ExpectedVersion=2.0"
echo "EndMessage"
}
@desyncr
desyncr / .gitconfig
Created June 8, 2016 14:48
.gitconfig with aliases
# This is Git's per-user configuration file.
[user]
# Please adapt and uncomment the following lines:
name = Your name
email = Your email
[push]
default = simple
[core]
excludesfile = /path/to/your/.global_ignore
pager = less