in random order:
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
# sync everything excluding things in .gitignore | |
# delete anything on target not in source | |
# include dotfiles and symlinks, also use compression | |
rsync -azP --delete --filter=":- .gitignore" . my-target-host:/my/target/directory | |
# sync back from server | |
mkdir -p "$SANDBOX" | |
cd "$SANDBOX" | |
rsync -xvazP --delete "$RSYNC_REMOTE"/.git/ .git | |
rsync -xvazP --delete "$RSYNC_REMOTE"/.gitignore .gitignore |
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
var dbs = db.getMongo().getDBNames() | |
for (var i in dbs) { db = db.getMongo().getDB( dbs[i] ); if(db.getName().length == 8) { db.dropDatabase(); } } |
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
CREATE TABLE IF NOT EXISTS journal ( | |
ordering BIGSERIAL, | |
persistence_id VARCHAR(255) NOT NULL, | |
sequence_number BIGINT NOT NULL, | |
deleted BOOLEAN DEFAULT FALSE, | |
tags VARCHAR(255) DEFAULT NULL, | |
message BYTEA NOT NULL, | |
PRIMARY KEY(persistence_id, sequence_number) | |
); |
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
Verifying my Blockstack ID is secured with the address 1GcBc8v319t6KFQACkLApatURcFSHSH9E1 https://explorer.blockstack.org/address/1GcBc8v319t6KFQACkLApatURcFSHSH9E1 |
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 Control | |
GotoDefinition | |
GitGutter | |
bracket highlighter | |
autofilename | |
boxy theme | |
sidebar enhancement | |
gutter color | |
All autocomplete | |
color highlighter |
I hereby claim:
- I am mohithg on github.
- I am mohithg (https://keybase.io/mohithg) on keybase.
- I have a public key whose fingerprint is 638E A22E 19FA A8E8 5294 A873 56E0 B170 5C2B 3598
To claim this, I am signing this object:
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
# include <stdio.h> | |
# include <conio.h> | |
# include <stdlib.h> | |
struct heapstruct | |
{ | |
int capacity; | |
int size; | |
int *a; | |
}; | |
int i=0; |
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 test.decodethecode; | |
import java.util.HashMap; | |
import java.util.regex.Pattern; | |
import java.util.regex.Matcher; | |
public class DecodeTheCode { | |
HashMap<String, String> encodings = new HashMap<String, String>(); | |
public void hashInit() { |
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
# include <stdio.h> | |
# include <conio.h> | |
# include <string.h> | |
void main() | |
{ | |
char s[10],a[3][20],x[20],e[10]; | |
int i,j=0,n,z,y=0; | |
clrscr(); | |
for(i=0;i<3;i++) | |
{ |
NewerOlder