Skip to content

Instantly share code, notes, and snippets.

@IanColdwater
IanColdwater / twittermute.txt
Last active Jan 26, 2023
Here are some terms to mute on Twitter to clean your timeline up a bit.
View twittermute.txt
Mute these words in your settings here: https://twitter.com/settings/muted_keywords
ActivityTweet
generic_activity_highlights
generic_activity_momentsbreaking
RankedOrganicTweet
suggest_activity
suggest_activity_feed
suggest_activity_highlights
suggest_activity_tweet
@sgup
sgup / recommended-routine.md
Last active Jan 13, 2023
Recommended Routine - Reddit BodyweightFitness
View recommended-routine.md
@coolbrg
coolbrg / powershell.go
Last active Oct 26, 2022
Playing PowerShell command via Golang
View powershell.go
package main
import (
"bytes"
"fmt"
"os/exec"
"strings"
)
// PowerShell struct
@sandeepraju
sandeepraju / ttfb.sh
Created Jul 20, 2016
curl command to check the time to first byte
View ttfb.sh
#!/bin/bash
# file: ttfb.sh
# curl command to check the time to first byte
# ** usage **
# 1. ./ttfb.sh "https://google.com"
# 2. seq 10 | xargs -Iz ./ttfb.sh "https://google.com"
curl -o /dev/null \
-H 'Cache-Control: no-cache' \
-s \
@robinvdvleuten
robinvdvleuten / lambda-helloWorld.php
Last active Mar 2, 2022
Invoke sample Lambda function through PHP
View lambda-helloWorld.php
<?php
require_once __DIR__.'/vendor/autoload.php';
use Aws\Lambda\LambdaClient;
$client = LambdaClient::factory([
'version' => 'latest',
// The region where you have created your Lambda
'region' => 'eu-west-1',
View alert.js
alert('hello ' + document.location.href);
@MaPePeR
MaPePeR / TutorialCondom.cs
Created Aug 24, 2013
Mod to first ask before starting the Tutorial
View TutorialCondom.cs
using System;
using ScrollsModLoader.Interfaces;
using UnityEngine;
using Mono.Cecil;
namespace Template.mod
{
public class MyMod : BaseMod, IOkCancelCallback
{
@nodesocket
nodesocket / bootstrap.flatten.css
Last active Apr 1, 2021
Below are simple styles to "flatten" bootstrap. I didn't go through every control and widget that bootstrap offers, only what was required for https://commando.io, so your milage may vary.
View bootstrap.flatten.css
/* Flatten das boostrap */
.well, .navbar-inner, .popover, .btn, .tooltip, input, select, textarea, pre, .progress, .modal, .add-on, .alert, .table-bordered, .nav>.active>a, .dropdown-menu, .tooltip-inner, .badge, .label, .img-polaroid {
-moz-box-shadow: none !important;
-webkit-box-shadow: none !important;
box-shadow: none !important;
-webkit-border-radius: 0px !important;
-moz-border-radius: 0px !important;
border-radius: 0px !important;
border-collapse: collapse !important;
background-image: none !important;
View mgoExample.go
package main
import (
"fmt"
"labix.org/v2/mgo"
"labix.org/v2/mgo/bson"
"time"
)
type Person struct {
@markusfisch
markusfisch / gist:3136580
Created Jul 18, 2012
Pan and zoom/pinch images with MOAI
View gist:3136580
------------------------------------------------------------------------------
-- local members
------------------------------------------------------------------------------
local devWidth, devHeight = 0, 0
local viewport = nil
local layer = nil
local quad = nil
local prop = nil
local imgWidth, imgHeight = 0, 0