Skip to content

Instantly share code, notes, and snippets.

View nhooyr's full-sized avatar

Anmol Sethi nhooyr

View GitHub Profile
environment.systemPackages = [
(pkgs.buildEnv {
name = "gpg";
paths = [
(pkgs.writeScriptBin "gpg-agent"
''
mkdir /run/user/1000/gnupg
ln -s ~/.gnupg/S.gpg-agent /run/user/1000/gnupg/S.gpg-agent
'')
pkgs.gnupg
// get list of announcements
$http.get("https://radiograydon.aubble.com/announcements").then(function(response) {
$scope.announcements = response.data
console.log("success")
// delete all announcements
for (var i = 0; i < response.data.length; i++) {
$http.delete("https://radiograydon.aubble.com/announcements/" + response.data[i].id, {
headers: {
Authorization: "Basic b21hcjp4eER4eER4eA=="
}
// get list of announcements
$http.get("https://radiograydon.aubble.com/announcements").then(function(response) {
$scope.announcements = response.data
console.log("success")
// delete all announcements
for (var i = 0; i < response.data.length; i++) {
$http.delete("https://radiograydon.aubble.com/announcements/" + response.data[i].id, {
headers: {
Authorization: "Basic b21hcjp4eER4eER4eA=="
}
<html ng-app="radioGraydonApp">
<head>
<meta charset="utf-8">
<title>Announcements</title>
<link rel="stylesheet" href="https://maxcdn.bootstrapcdn.com/bootstrap/3.3.7/css/bootstrap.min.css" integrity="sha384-BVYiiSIFeK1dGmJRAkycuHAHRg32OmUcww7on3RYdg4Va+PmSTsz/K68vbdEjh4u" crossorigin="anonymous">
<script src="http://ajax.googleapis.com/ajax/libs/angularjs/1.2.26/angular.min.js"></script>
<script>
var radioGraydonApp = angular.module('radioGraydonApp', [])
{
packageOverrides = pkgs: {
neovim = pkgs.lib.overrideDerivation (pkgs.neovim.override {
withJemalloc = false;}
) (attrs: rec {
name = "neovim-${version}";
version = "0.1.6";
src = pkgs.fetchFromGitHub {
owner = "neovim";
repo = "neovim";
{
packageOverrides = pkgs: {
neovim = pkgs.neovim.override {
withJemalloc = false;
src = lib.fetchFromGitHub {
owner = "neovim";
repo = "libvterm";
rev = "487f21dbf65f1c28962fef3f064603f415fbaeb2";
sha256 = "1fig6v0qk0ylr7lqqk0d6x5yywb9ymh85vay4spw5b5r5p0ky7yx";
};
This file has been truncated, but you can view the full file.
installing ‘iterm2-3.0.4’
these derivations will be built:
/nix/store/hmfzv75r6vwgif1smy3jwi93lg121182-iterm2-3.0.4.drv
building path(s) ‘/nix/store/yiml94rd19jsvsm13va68jfgfw6v8df8-iterm2-3.0.4’
unpacking sources
unpacking source archive /nix/store/m0qh028s34pz5pn64pj0r4szcgkfc1wh-iTerm2-v3.0.4-src
source root is iTerm2-v3.0.4-src
patching sources
applying patch /nix/store/fwdhwxd3qs62k9w8gddl45q6wk88fiyk-disable_updates.patch
patching file sources/iTermPreferences.m
@nhooyr
nhooyr / main.c
Last active October 2, 2016 03:20
#include <arpa/inet.h>
#include <netdb.h>
#include <stdio.h>
#include <stdlib.h>
int main(int argc, char* argv[])
{
if (argc < 2)
exit(1);
[$] nc localhost 3000 -v
found 0 associations
found 1 connections:
1: flags=82<CONNECTED,PREFERRED>
outif lo0
src 127.0.0.1 port 61677
dst 127.0.0.1 port 3000
rank info not available
TCP aux info available
hosts = [
"aubble.com",
"www.aubble.com",
]
email = "[email protected]"
protos = {
h2 = {
fallback = "localhost:8080"