This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# accompanying blog - https://kaushikc.org/posts/matrix-jitsi-nixos.html | |
# /etc/nixos/configuration.nix | |
imports = | |
let | |
nur-no-pkgs = | |
import ( | |
builtins.fetchTarball | |
"https://github.com/nix-community/NUR/archive/master.tar.gz" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
"scripts": { | |
"relay": "node scripts/relayCompiler.js" | |
}, |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
package rose | |
import org.scalacheck._ | |
import scalaz._ | |
import Scalaz._ | |
import scalaz.scalacheck.ScalazArbitrary._ | |
import rose.Rose._ | |
object RoseTest extends Properties("RoseTest") { |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/usr/bin/env bash | |
# | |
# This script is useful to setup additional users in EC2 instances who can login with their own public keys rather than using a global public key | |
# We should do it via OpsWorks but sometimes when OpsWorks go crazy, we have to take things in our hand | |
# There will be bugs | |
# | |
declare -r script_name="add-user" | |
log () { echo >&2 "$@"; } |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
/** | |
* We don't need any private projects, it's a disgrace to the development community | |
* Every project should be open and free (free as in freedom) | |
* This here is an attempt to curb such misdemeanours : | |
* | |
* * This script is going to pick every Private project in a Gitlab distribution and | |
* * clinically convert them to Internal so that everyone inside an organisation can | |
* * see it, fork it, contribute to it & enjoy the freedom of open source development | |
* | |
* Now to some technical details: |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
installing | |
/private/var/folders/4m/8lbd4pzn2z73b5zjzbbpc0tc0000gn/T/nix-build-python3.7-docutils-0.14.drv-0/docutils-0.14/dist /private/var/folders/4m/8lbd4pzn2z73b5zjzbbpc0tc0000gn/T/nix-build-python3.7-docutils-0.14.drv-0/docutils-0.14 | |
Processing ./docutils-0.14-py3-none-any.whl | |
Installing collected packages: docutils | |
Successfully installed docutils-0.14 | |
/private/var/folders/4m/8lbd4pzn2z73b5zjzbbpc0tc0000gn/T/nix-build-python3.7-docutils-0.14.drv-0/docutils-0.14 | |
post-installation fixup | |
strip is /nix/store/rk3p99jbj4idl3dkkg1rxja5gz0qgs98-cctools-binutils-darwin/bin/strip | |
stripping (with command strip and flags -S) in /nix/store/48ar23qv0j3lc75dyidy7m1llij783wg-python3.7-docutils-0.14/lib /nix/store/48ar23qv0j3lc75dyidy7m1llij783wg-python3.7-docutils-0.14/bin | |
patching script interpreter paths in /nix/store/48ar23qv0j3lc75dyidy7m1llij783wg-python3.7-docutils-0.14 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
/** | |
* We don't need any private projects, it's a disgrace to the development community | |
* Every project should be open and free (free as in freedom) | |
* This here is an attempt to curb such misdemeanours : | |
* | |
* * This script is going to pick every Private project in a Gitlab distribution and | |
* * clinically convert them to Internal so that everyone inside an organisation can | |
* * see it, fork it, contribute to it & enjoy the freedom of open source development | |
* | |
* Now to some technical details: |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
trait Feedtype | |
trait Atom extends Feedtype | |
trait Rss2 extends Feedtype | |
case object Atom extends Atom | |
case object Rss2 extends Rss2 | |
trait Encoding | |
trait Xml extends Encoding | |
trait Json | |
case object Json extends Json |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import org.w3.banana.{Sesame,RDF,RDFModule,RDFOpsModule,TurtleWriterModule} | |
import org.apache.spark.rdd.RDD | |
// My Code | |
trait BlazeSesame extends Sesame | |
trait BlazeSesameModule extends SesameModule { | |
type Rdf = BlazeSesame | |
} | |
trait MyDependencies extends RDFModule with RDFOpsModule with TurtleWriterModule with Serializable |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// Framework Code | |
trait X { | |
type T1 | |
} | |
trait X1 extends X { | |
type T1 = SomeConcreteClassT | |
} | |
type Module { |
NewerOlder