Skip to content

Instantly share code, notes, and snippets.

View mgalgs's full-sized avatar
🍔
pizza

Mitchel Humpherys mgalgs

🍔
pizza
View GitHub Profile
ALTER TABLE "tracking_rewardprogram" ALTER COLUMN "public_id" SET DEFAULT 319902060
ALTER TABLE "tracking_rewardprogram" ALTER COLUMN "public_id" DROP DEFAULT
@mgalgs
mgalgs / gist:7fa53d787d30bdeff87a661d7d1188a3
Created January 12, 2018 02:57
django QuerySet.__or__
In [27]: qs1 = User.objects.filter(pk__in=[1, 2])
In [28]: qs2 = User.objects.filter(pk__in=[2, 5])
In [29]: qs3 = qs1 | qs2
In [30]: print qs3.query
SELECT "auth_user"."id", "auth_user"."password", "auth_user"."last_login", "auth_user"."is_superuser", "auth_user"."username", "auth_user"."first_name", "auth_user"."last_name", "auth_user"."email", "auth_user"."is_staff", "auth_user"."is_active", "auth_user"."date_joined" FROM "auth_user" WHERE ("auth_user"."id" IN (1, 2) OR "auth_user"."id" IN (2, 5))

Environment

Bundler       1.16.1
  Platforms   ruby, x86_64-linux
Ruby          2.4.2p198 (2017-09-14 revision 59899) [x86_64-linux]
  Full Path   /usr/bin/ruby
  Config Dir  /etc
RubyGems      2.6.13
  Gem Home    /home/mgalgs/.gem/ruby/2.4.0
## Environment
```
Bundler 1.16.1
Platforms ruby, x86_64-linux
Ruby 2.4.2p198 (2017-09-14 revision 59899) [x86_64-linux]
Full Path /usr/bin/ruby
Config Dir /etc
RubyGems 2.6.13
Gem Home /home/mgalgs/.gem/ruby/2.4.0
$ bundle info middleman
* middleman (4.2.1)
Summary: Hand-crafted frontend development
Homepage: http://middlemanapp.com
Path: /home/mgalgs/.gem/ruby/2.4.0/gems/middleman-4.2.1
$ bundle exec middleman build --clean
bundler: command not found: middleman
Install missing gem executables with `bundle install`
[Pipeline] sh
[unicorn-to-gitops_develop-56B3NODHE6IW53ESCRWKYZ6B4GRZ5ARDAKEZNGPEW6GUDVW4KDNA] Running shell script
sh: 1: cannot create /home/jenkins/workspace/unicorn-to-gitops_develop-56B3NODHE6IW53ESCRWKYZ6B4GRZ5ARDAKEZNGPEW6GUDVW4KDNA@tmp/durable-54cdd48b/jenkins-log.txt: Permission denied
sh: 1: cannot create /home/jenkins/workspace/unicorn-to-gitops_develop-56B3NODHE6IW53ESCRWKYZ6B4GRZ5ARDAKEZNGPEW6GUDVW4KDNA@tmp/durable-54cdd48b/jenkins-result.txt: Permission denied
touch: cannot touch '/home/jenkins/workspace/unicorn-to-gitops_develop-56B3NODHE6IW53ESCRWKYZ6B4GRZ5ARDAKEZNGPEW6GUDVW4KDNA@tmp/durable-54cdd48b/jenkins-log.txt': Permission denied
touch: cannot touch '/home/jenkins/workspace/unicorn-to-gitops_develop-56B3NODHE6IW53ESCRWKYZ6B4GRZ5ARDAKEZNGPEW6GUDVW4KDNA@tmp/durable-54cdd48b/jenkins-log.txt': Permission denied
touch: cannot touch '/home/jenkins/workspace/unicorn-to-gitops_develop-56B3NODHE6IW53ESCRWKYZ6B4GRZ5ARDAKEZNGPEW6GUDVW4KDNA@tmp/durable-54cdd48b/jenkins-log.txt': Permission denied
to
[Pipeline] {
[Pipeline] git
Cloning the remote Git repository
Cloning repository git@github.com:directangular/testrepo.git
> git init /home/jenkins/workspace/unicorn-to-gitops_develop-56B3NODHE6IW53ESCRWKYZ6B4GRZ5ARDAKEZNGPEW6GUDVW4KDNA/gitops-unicorn # timeout=10
Fetching upstream changes from git@github.com:directangular/testrepo.git
> git --version # timeout=10
using GIT_ASKPASS to set credentials Direcbot
> git fetch --tags --progress git@github.com:directangular/testrepo.git +refs/heads/*:refs/remotes/origin/*
ERROR: Error cloning remote repo 'origin'
@mgalgs
mgalgs / bindings.json
Last active November 14, 2017 03:57
custom reviewable keybindings
[
["f", "Show next/latest diffs", "setProposedRevRanges()"],
["n", "Next unreviewed file", "nextUnreviewedFile()"],
["p", "Previous unreviewed file", "prevUnreviewedFile()"],
[null, "Next personally unreviewed file", "nextPersonallyUnreviewedFile()"],
[null, "Previous personally unreviewed file", "prevPersonallyUnreviewedFile()"],
["shift+n", "Next changed file", "nextChangedFile()"],
["shift+p", "Previous changed file", "prevChangedFile()"],
[null, "Next visible file", "nextVisibleFile()"],

Keybase proof

I hereby claim:

  • I am mgalgs on github.
  • I am mgalgs (https://keybase.io/mgalgs) on keybase.
  • I have a public key ASCHjcAu_MxkbyeAWBc61Gq8LDaaxRSb6G-74TAQ6YtsoQo

To claim this, I am signing this object:

$ sudo dnf install gtk3-devel
Last metadata expiration check: 0:09:36 ago on Mon Mar 6 10:19:29 2017.
Error: package gtk3-devel-3.22.2-2.fc25.x86_64 requires gtk3(x86-64) = 3.22.2-2.fc25, but none of the providers can be installed
(try to add '--allowerasing' to command line to replace conflicting packages)
$ rpm -qa | grep -e '^gtk3'
gtk3-3.22.9-2.fc25.x86_64